--- In [EMAIL PROTECTED], Alex Peters <[EMAIL PROTECTED]> wrote: > --- Dave wrote: > > > I want to add a PIN like object (or even a checkbox) to a bar so > > that if the pin is active (or the checkbox is checked) then the bar > > stays on the screen unless manually closed. > > While it would be easier to program text instead of a pin or a > checkbox to reflect the state of these workings, an image is > definitely possible. > > You would need two icons showing the two states of the pin or of the > checkbox, and you would need to set up a global variable reflecting > its state (in/out or un/checked). > > You would then need a very short script to update the image on the > button accordingly. > > Finally, you would need to add two lines or code, or one script call, > to the end of each button's command that checks the state of the pin > or checkbox and acts accordingly. > > How does this sound? > > -- > > Alex Peters / Melbourne, Australia > PowerPro v4.1.00 / Windows XP I've been experimenting along these lines, but I'm now coming up with another problem. I have set a global variable in the script file (and I am using that variable in the button's NAME) but when the button is displayed, it doesn't display anything. I don't understand it. I've tried everything (I think): *Info expr(bToggle) *Info do(bToggle) but when the button displays, it displays nothing. However, I discovered if I put a messagebox in the script (after pressing the button) the text appears in the button name as required. But as soon as the button closes, the text disappears. This is what I am thinking: Even though I have declared 'bToggle' as Global (I've tried Static as well) it is ONLY ACTIVE when the script is running. As soon as the script is not running, the button text can not find the global variable. Has anyone else come across this? I am now fiddling with the ppro flags, and that seems to be working. I am not good enough to do gfx, can we do checkboxes? Or should I just steal them like everyone else does? :D ------------------------ Yahoo! Groups Sponsor --------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/JV_rlB/TM --------------------------------------------------------------------~-> Attention: PowerPro's Web site has moved: http://www.ppro.org Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/power-pro/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
