RadioButtons Script

"pprotcmd [email protected] [power-pro]" <[email protected]>
Newsgroups gmane.comp.windows.power-pro
Message-ID <[email protected]>
PowerPro can handle such control as: edit, combobox, button, checkbox, progress bar, and slider. But radio button control is not realized that is somewhat sad.

I've made a sample script to emulate the radio button control:

https://yadi.sk/d/0LDr1I-Y3MdYKW

The archive contains 4 files:

RadioButtons.powerpro - script itself;

RadioButtons.ini - configuration file;

On.ico - icon with active radio button;

Off.ico - icon with inactive radio button.

All files must be located in the scripts directory of PowerPro.

The ini plugin by Alan Campbell

https://yadi.sk/d/RyalhEQ33KKFqx

is also required locating in the plugins directory.

Script takes no parameters. After its execution a simple 3-choice radio button control is shown. Clicking a button activates it (in fact, emulates its activation). After the choice is made, click the "Get Result" button, and the win.debug command shows the choice made.

Keys in the RadioButtons.ini have the following meanings:

Keep=1/0 - keep/don't keep the last state;

Active=1/2/3 - First/Second/Third radio button is active if Keep=1. If Keep=0, no button is active.

The visual drawback if this script is that when the mouse hovers over a single radio button it is "lifted" though the standard radio button is not. I could not manage to avoid some king of "visual activation", or "lifting" when hovered. My questions to Mr Switzer are:

* Can you realize the radio button control internally?

* If not, how can the "non-hovering" behavior of any bar button can be achieved?

Thanks.

__._,_.___

----------

Posted by: pprotcmd <[email protected]>
----------

PowerPro's download site: http://powerpro.cresadu.com/

Visit Your Group

https://groups.yahoo.com/neo;_ylc=X3oDMTJkMG8yN3N1BF9TAzk3NDc2NTkwBGdycElkAzI0ODc3NzcEZ3Jwc3BJZAMxNzA2MDMwNDA5BHNlYwNmdHIEc2xrA2dmcARzdGltZQMxNTA0NjM3MDY0

• Privacy • Unsubscribe • Terms of Use

__,_._,___
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.