TGComboBox
Revision as of 13:06, 7 March 2013 by Tintinux (talk | contribs) (Created page with "This control is a TCombobox, with a TLabel to display the caption, and a Translate procedure, as in all other data entry components You w...")
This control is a TCombobox, with a TLabel to display the caption, and a Translate procedure, as in all other data entry components
You will have to override de Translate procedure of the TGForm containing this TGComboBox, to fill items with translations in the current language. See examples.
If the items are sorted, the item index will depend on the language. You must not use the ItemIndex only, but you should store in the Objects property some constant independant of the language, to indicate the exact meaning of the item.
Note that the button is on the right size of the box, unlike TGEditButton component. If possible, we will move it between the label and the box.