jahlxx Posted March 22, 2017 Share Posted March 22, 2017 Hi. How can modify the quantity of items showed when drop down a unicombobox? Thanks. Link to comment Share on other sites More sharing options...
Sherzod Posted March 22, 2017 Share Posted March 22, 2017 Hi, Can you try this approach for now?!: UniComboBox -> ClientEvents -> ExtEvents -> function beforerender: function beforerender(sender, eOpts) { sender.defaultListConfig.maxHeight = 50; } Best regards. Link to comment Share on other sites More sharing options...
jahlxx Posted March 22, 2017 Author Share Posted March 22, 2017 Ok. Thanks. Link to comment Share on other sites More sharing options...
jahlxx Posted October 31, 2017 Author Share Posted October 31, 2017 Hi. I have 2 more questions about unicombobox: 1. How can give a custom witwd when the combo is displayed? 2. When I set a value tothe text property, in run time, the combo value is not refreshed. How can I do? Thanks. Link to comment Share on other sites More sharing options...
Sherzod Posted October 31, 2017 Share Posted October 31, 2017 Hi, 1. How can give a custom witwd when the combo is displayed? Custom width ?! 2. When I set a value tothe text property, in run time, the combo value is not refreshed. How can I do? Make a testcase, how do you do that ? Link to comment Share on other sites More sharing options...
Sherzod Posted October 31, 2017 Share Posted October 31, 2017 Custom width ?! If yes, then you can try this approach: UniComboBox -> : 1. MatchFieldWidth -> False 2. function beforeInit: function beforeInit(sender, config) { sender.defaultListConfig.width = 300; } Link to comment Share on other sites More sharing options...
jahlxx Posted October 31, 2017 Author Share Posted October 31, 2017 Ok. Works. But I think could be better as a property of yhe unicombobox. Is only an idea. About the 2nd. question, just take the combotrig demo, and do these changes: in combo's items put this: A - letter aB - letter bC - letter cD - letter dE - letter e And in the mainform onshow event, this line: unicombobox1.text := 'D'; I think that because D match an item of the combox, the text should be updated automatically to "D - letter d" Link to comment Share on other sites More sharing options...
Sherzod Posted October 31, 2017 Share Posted October 31, 2017 I think that because D match an item of the combox, the text should be updated automatically to "D - letter d" How it works in the VCL, have you checked ?! Link to comment Share on other sites More sharing options...
Sherzod Posted October 31, 2017 Share Posted October 31, 2017 How it works in the VCL, have you checked ?! You can try it with this config: function beforeInit(sender, config) { config.typeAhead=true; } Link to comment Share on other sites More sharing options...
jahlxx Posted October 31, 2017 Author Share Posted October 31, 2017 Almost. The text property are updated when match any value, but does nothing when assign a value directly. Link to comment Share on other sites More sharing options...
jahlxx Posted November 2, 2017 Author Share Posted November 2, 2017 Ok. I've workarounded this. Other question about this. Has unicombobox has equivalent to selectall procedure? Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now