Difference between revisions of "TGRadioGroup"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
There is as many column as item, some they are displayed horizontally. | 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 | + | 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 !