arilotta Posted December 4, 2017 Share Posted December 4, 2017 Hello, is there a way to put a UniListBox in readonly mode, to avoid the user changes the current selection ? If using the enabled property, the component cannot be scrolled, and the color becomes dark gray... Thanks Andrea Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 5, 2017 Share Posted December 5, 2017 Hello, Can help you, can you try this approach for now ?! procedure TMainForm.UniFormReady(Sender: TObject); begin UniListBox1.JSInterface.JSCall('boundList.getSelectionModel().setLocked', [True]); end; procedure TMainForm.UniButton1Click(Sender: TObject); begin UniListBox1.JSInterface.JSCall('boundList.getSelectionModel().setLocked', [False]); end; Best regards, Quote Link to comment Share on other sites More sharing options...
arilotta Posted December 5, 2017 Author Share Posted December 5, 2017 Thank you Delphi Dev. And to also disable trackover in UniListBox ? I always appreciate you prompt replies. Andrea Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 5, 2017 Share Posted December 5, 2017 Thank you Delphi Dev. And to also disable trackover in UniListBox ? I always appreciate you prompt replies. Andrea UniListBox1.JSInterface.JSAssign('boundList.trackOver', [False]); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.