Difference between revisions of "TGRadioGroup"
Jump to navigation
Jump to search
(Created page with "This control is a TRadioGroup, with a TLabel to display the caption and a Translate procedure, as in all other data entry components Fill...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
This control is a TRadioGroup, with a TLabel to display the caption and a Translate procedure, as in all other [[Gestinux_util#Visual_components|data entry components]] | This control is a TRadioGroup, with a TLabel to display the caption and a Translate procedure, as in all other [[Gestinux_util#Visual_components|data entry components]] | ||
− | Fill the Items property as usual. You will have, in general, to override de ''Translate'' procedure of the TGForm containing this TGRadioGroup, to fill items | + | There is as many column as item, some they are displayed horizontally. |
+ | |||
+ | Fill the Items property as usual. You will have, in general, to override de ''Translate'' procedure of the TGForm containing this TGRadioGroup, to fill items with appropriate translations, for the current language. | ||
Use the ItemIndex property to set or get the selected item. | Use the ItemIndex property to set or get the selected item. |
Latest revision as of 13:06, 7 March 2013
This control is a TRadioGroup, with a TLabel to display the caption and a Translate procedure, as in all other data entry components
There is as many column as item, some they are displayed horizontally.
Fill the Items property as usual. You will have, in general, to override de Translate procedure of the TGForm containing this TGRadioGroup, to fill items with appropriate translations, for the current language.
Use the ItemIndex property to set or get the selected item.
Note that this component works fine for standard heights (from 30 to 50) in Windows or Linux GTK2. With other heights, display might be not good, due to some internal issues in the widgetsets. You are welcome if you can improve this !