PDA

View Full Version : New version of PopUp plugin



Mark F
October 13th, 2002, 03:55 PM
I just sent Ron a new version of hte PopUp plugin (version 1.3).

PLEASE NOTE: This is NOT the super-duper OSD everyone is looking for!

This is an update to the same popup that some are happy with. Added are the ability to change the colors of the background, border and text. Also you can place bitmaps into the popup window. A readme is included.

The source was also sent to Ron so it should appear in the developer's section of the web site soon.

Support is through the forums here.

Enjoy.

Mark F
October 13th, 2002, 03:55 PM
Hi Rick.

I was under the impression that the latest DVDSpy plugin (version 1.3) was putting the data into text register 1. Is this NOT the case?

Text registers work in every version of the OSD plugin. Just add [tregX] (where X represents the number of the text register you want to use; 1 for DVDSpy) somewhere in the OSD PopUp message text field. Text registers were added, transparently to the plugins using them, in Girder pre-release 3.0.23pre2.

In the current OSD PopUp Plugin, you can also use registers (numeric and text) in the bitmap filename field. So you could use a bitmap for "play" instead of the word, if you want. :smile:

Am I making more "enhancements"? Yes, as time permits. I'm currently re-working the plugin to not use the built in Girder OSD window. Instead, it will build it's own OSD window so the size, location and message handling can be controled a little differently.

Mark F
October 13th, 2002, 03:55 PM
Are you implying that people are not born with the knowledge of how Girder works? ??? ???

What is this world coming to? :wink:

Let me try to explain the use of Girder registers, though Ron is the real expert.

You can think of registers as places to put data (either numbers or text) that you want to use at a later time. Registers are the Girder equivilent of "Post-it" notes. The data may be used or manipulated by more than one plugin or command. The data may be used to decide on a path to take through the command tree.

A good example of using text registers is the DVDSpy plugin. It fills a text register, [treg1], with a string of information when it detects certain events in a DVD player. The DVDSpy plugin then causes an event string to be generated in Girder so that a command can be kicked off based on the event the plugin has witnessed. Any other plugin (like OSD PopUp or LCD Display) has access to the register information as soon as the register is filled by DVDSpy so any command kicked off by the event string can make use of the data in the text register.

There is also a girder command that allows you to fill a text register with a static sring which you can use as a stand-alone command or in a multi-command.

Numeric registers are used in much the same way. The big difference is numeric registers can only be used to store numbers. There are Girder commands to add, subtract, multiply, divide and compare numeric registers which allow for interesting branches through the command tree.

Finally there are Girder commands to save and load complete register sets. These could be used to extend the registers beyond the 25 that are currently available by loading a specific command set at the start of a multi-command and saving it at the end of the multi-command. This would let each multi-command maintain a certain amount of "state" data between invocations.

I hope this helps a bit. :smile: Ask more questions if it doesn't.

Mark F
October 13th, 2002, 03:55 PM
It is not possibile to move the current, built-in, OSD window. I've tried to do a MoveWindow() on it (which should re-size and move the window) but it doesn't budge. Sorry.

I don't know Ron's reasoning for this limitation; however, I can guess. :smile: When a window is re-sized, the contents must be re-drawn. Girder has no way to call the plugin which drew the current OSD contents so it doesn't allow itself to get into this situation.

BSchuler
October 13th, 2002, 03:55 PM
Thanks MARK!!! It sounds GREAT! I can't wait...

BSchuler
October 13th, 2002, 03:55 PM
Mark,
I love the new plugin and have been using it since it's release with no problems. But today I came up with a new idea..and wouldn't ya know it....

QUESTION: Is it possible to move the OSD window away from center. I would like to position all my OSD's in the top left hand corner, but can't figure out a way to do it.

waja
October 13th, 2002, 03:55 PM
Mark,
Nice enhancements.
Are you making any additional incremental changes? If so, I'd like to suggest the ability to display the text from the DVDSpy plugin. IMHO this would be a great enhancement.

Rick

waja
October 13th, 2002, 03:55 PM
Mark,
Thanks! No, I haven't tried using [tregX]. But I will. Right now I'm fairly new at using Girder, so I'm at a point where the obvious is not obvious to me.
Did I overlook any place in Girder where I should have seen the use of the text register explained? This would help me in the future as I still don't have a full grasp of the capabilities of Girder's use of registers.
Thanks again.

Rick