[[https://www.revelation.com/|Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community]]
==== Radio Button Controls (OpenInsight Specific) ====
=== At 03 MAR 1999 06:28:20PM Greg James, ISIS, Inc. wrote: ===
{{tag>"OpenInsight Specific"}}
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
[url=http://www.srpcs.com]SRP Computer Solutions[/url]
[img]http://www.srpcs.com/srpicon1.gif[/img]
----
=== 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
[url=http://www.srpcs.com]SRP Computer Solutions[/url]
[img]http://www.srpcs.com/srpicon1.gif[/img]
----
=== 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= value
or
stat=SET_PROPERTY(@WINDOW:".RADIO_CONTROL.ORIGINAL_TEXT","PROPERTY",value)
For example. If I have a radio button called RADIO that has 2 buttons
Option 1
Option 2
I 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 Pekse
ALDATA 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 [i]any[/i] 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 [b]created[/b] dynamically on a development copy of OI not a runtime.
amcauley@sprezzatura.com
[url=http://www.sprezzatura.com" ]Sprezzatura Ltd[/url]
[i]World Leaders in all things RevSoft[/i]
[img]http://www.sprezzatura.com/zz.gif[/img]
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=E02FB25DFF5310AA852567290080EFFE|View this thread on the forum...]]