Difference between revisions of "Talk:TDBLookupComboBox"
From Lazarus wiki
Jump to navigationJump to searchm (Arent moved page Talk:dblookupcombobox to Talk:TDBLookupComboBox) |
(comment from article page) |
||
Line 1: | Line 1: | ||
How can i set the selected value in box? e.g. in a "new book" form i need the "language_code" to be preselected to "en" and i use a dblookupcombobox to display language names... | How can i set the selected value in box? e.g. in a "new book" form i need the "language_code" to be preselected to "en" and i use a dblookupcombobox to display language names... | ||
By a thousand to one chance, I answered this question when I updated this page. Have a look at the example, didn't notice there was a discussion item. MT 18 June 2014 | By a thousand to one chance, I answered this question when I updated this page. Have a look at the example, didn't notice there was a discussion item. MT 18 June 2014 | ||
+ | |||
+ | Notes | ||
+ | # I cannot get unbound mode to display any text without setting '''KeyField''' (see below) - Mike Thompson 05 June 2014<br/> | ||
+ | # If '''DBLookupCombo.ScrollListDataset''' is set, then the component will only scroll the dataset when the user interacts with it.<br/> | ||
+ | Setting '''DBLookupCombo.KeyValue''' in code will '''not''' cause the DBLookupCombo to scroll the dataset. |
Latest revision as of 12:32, 5 August 2016
How can i set the selected value in box? e.g. in a "new book" form i need the "language_code" to be preselected to "en" and i use a dblookupcombobox to display language names... By a thousand to one chance, I answered this question when I updated this page. Have a look at the example, didn't notice there was a discussion item. MT 18 June 2014
Notes
- I cannot get unbound mode to display any text without setting KeyField (see below) - Mike Thompson 05 June 2014
- If DBLookupCombo.ScrollListDataset is set, then the component will only scroll the dataset when the user interacts with it.
Setting DBLookupCombo.KeyValue in code will not cause the DBLookupCombo to scroll the dataset.