Forum > Translations
[SOLVED] .Text property ot TComboBox
(1/1)
CM630:
I just had some troubles - I changed the index of a combo during startup (applying the settings), but the combo showed a wrong value.
Then I figured out, that the reason is that the combo had its .Text property <> '' and this value was applied when setting the localisation (from .PO).
I set .Text to '' and now the combo shows what it should.
Shall I take care that Combos shall always have empty .Text properties or shall I do sth. else?
If it is the first case, maybe I shall take care of emptying some properties of other controls, too? Which are they?
Thaddy:
Basically e.g. TMemo too. The designer adds a default value. I always clear them out. So, yes, call clear.
munair:
It also depends on whether you want those controls read only. When setting up combos (and memos), I clear the default text in the IDE and often make them read only unless preferred otherwise. Then I populate them and set the default index in a form create or later, depending on desired behavior.
CM630:
Thanks, I added the info in the wiki:
https://wiki.freepascal.org/Step-by-step_instructions_for_creating_multi-language_applications#Additional_information
Navigation
[0] Message Index