|
Tips
|
|
Written by ADRIAN MCGILLY | Saturday, 01 May 2010 11:21
|
|
In the default LAFs, if you put a form in readOnly mode (form.controller.readOnly = true) then an annoying thing happens to your comboboxes - they become difficult to read because they become grey text against a grey background like so:

This is the OS's way of signalling to the user that the combobox is not 'active' at the moment. It would be nice if we could achieve that without making the data hard to read. Well Sanneke Aleman sent me this line of code which ensures that the text will remain black even if the background goes gray:
Please login or register to see the full article |
Comments
And thanks for the utility, Patrick!
And if you want to know all the available L&F properties and their default values, check out the little utility I just made...
You can download it from the FAQ section - on the Servoy-Stuff site.
RSS feed for comments to this post.