Difference between revisions of "Gambas/controls/RadioButton"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
(Created page with "==Notes== There doesn't seem to be any way to query a set of RadioButtons as to which of them is selected, or even to query a specific RadioButton as to whether it is activate...")
 
(more explanation)
 
Line 1: Line 1:
 
==Notes==
 
==Notes==
There doesn't seem to be any way to query a set of RadioButtons as to which of them is selected, or even to query a specific RadioButton as to whether it is activated. You have to track this in code by responding to the Click event, which is also triggered when the control's value changes by means ''other'' than a mouse-click.
+
There doesn't seem to be any way to:
 +
* query a set of RadioButtons as to which of them is selected
 +
* query a specific RadioButton as to whether it is selected
 +
* select or deselect a specific RadioButton from code
 +
 
 +
In order to determine which RadioButton in a set is selected, you have to track it in code by responding to the Click event, which is also triggered when the control's value changes by means ''other'' than a mouse-click. You also have to know which one is set by default by running the program and examining which radio button displays as selected.
 
==Links==
 
==Links==
 
===Official===
 
===Official===
 
* [http://gambaswiki.org/wiki/comp/gb.qt4/radiobutton RadioButton (gb.qt4)]
 
* [http://gambaswiki.org/wiki/comp/gb.qt4/radiobutton RadioButton (gb.qt4)]

Latest revision as of 21:05, 26 April 2015

Notes

There doesn't seem to be any way to:

  • query a set of RadioButtons as to which of them is selected
  • query a specific RadioButton as to whether it is selected
  • select or deselect a specific RadioButton from code

In order to determine which RadioButton in a set is selected, you have to track it in code by responding to the Click event, which is also triggered when the control's value changes by means other than a mouse-click. You also have to know which one is set by default by running the program and examining which radio button displays as selected.

Links

Official