Radio Button Controls (OpenInsight Specific)
At 03 MAR 1999 06:28:20PM Greg James, ISIS, Inc. wrote:
I have a script that is executed during a form's create event that reads the *INDEXES record from a '!':TableName table. I would like to create and/or update a Radio control to have a button for each indexed column (from the *INDEXES record).
Any ideas? Perhaps a listbox rather than a Radio control would be easier?
Thanks,
Greg
At 03 MAR 1999 07:38PM Don Bakke wrote:
Greg,
For sheer ease of management the listbox would be better.
dbakke@srpcs.com
At 03 MAR 1999 11:06PM Greg James, ISIS, Inc. wrote:
Ok..I think you are right, but since we are on the subject, can radio buttons be modified programmatically?
At 04 MAR 1999 12:19AM Don Bakke wrote:
Greg,
Yes I'm sure they can, but you have to deal with creating/destroying objects since the number of buttons is unknown until runtime. Also, you have to allow for enough space for these buttons dependent on the most indexed column in the table.
dbakke@srpcs.com
At 04 MAR 1999 10:21AM Duane ALDATA wrote:
Greg,
Radio buttons can be modified at runtime just like any other control. The trick is that the individual buttons are referenced using the following format.RADIO_CONTROL.ORIGINAL_TEXT-]PROPERTY= valueorstat=SET_PROPERTY(@WINDOW:".RADIO_CONTROL.ORIGINAL_TEXT","PROPERTY",value)
For example. If I have a radio button called RADIO that has 2 buttonsOption 1Option 2I could change the name of the first one by using.RADIO.OPTION 1-]TEXT=Yes"I know that both the enabled and visible properties also work this way as well. The only problem is that the amount of space allocated for text for this radio button is dependant on the original text of the radio button, so in the example above, the radio button could only be assigned a text value of about 8 characters in length.Duane PekseALDATA Software Management Inc.duanep@aldatasoftware.com
At 07 MAR 1999 10:28AM Peter Farabaugh, WinWin Solutions wrote:
I have been wrestling with creating radio buttons on the fly for six months now. If anyone has some code, I'd really appreciate it.
Right now I'm faking the whole thing with a listbox and bitmaps of radio buttons.
Peter Farabaugh
WinWin Solutions Inc.
pete@winwinsol.com
At 07 MAR 1999 10:04PM amcauley@sprezzatura.com onmouseover=window.status=why not click here to send me email?;return(true)", [url=http://www.sprezzatura.com" onMouseOver=window.status=Why not click here to visit our web site?';return(true)]Sprezzatura Group[/url] wrote:
By definition any control can be created programmatically. Just a case of knowing the structure. With RBs you have the parent and the individual button controls.
Remember however that in line with the latest SENL's understanding of RevSoft's position - it would seem that controls may only be created dynamically on a development copy of OI not a runtime.
amcauley@sprezzatura.com
World Leaders in all things RevSoft