WMassey Posted November 10, 2005 Report Share Posted November 10, 2005 For a listbox control/indicator is it possible to specify the color used to highlight the selected item(s)? Quote Link to comment
Yair Posted November 11, 2005 Report Share Posted November 11, 2005 For a listbox control/indicator is it possible to specify the color used to highlight the selected item(s)? You can do it, but it's an OS setting, even if you use the standard listbox, and as such will affect the rest of your OS. Look at Michael's post here for the exact method. Quote Link to comment
WMassey Posted November 11, 2005 Author Report Share Posted November 11, 2005 You can do it, but it's an OS setting, even if you use the standard listbox, and as such will affect the rest of your OS. Look at Michael's post here for the exact method. Ahh. I feared as much. I was hoping to be able to change just one listbox out of several to make it stand out but if it is a windows-wide setting then that won't work. Thanks for the reply though! Quote Link to comment
DredPirate Posted November 11, 2005 Report Share Posted November 11, 2005 You could use a Multicolumn Listbox. Quote Link to comment
WMassey Posted November 11, 2005 Author Report Share Posted November 11, 2005 You could use a Multicolumn Listbox. Actually that is what I am using and in this respect a multicolumn listbox and an ordinary listbox behave exactly the same -- you select a line and the entire line is highlighted by a color that is apparently dictated by a system-wide setting. It was that specific color I was hoping to change in one particular case. It's not going to happen. Quote Link to comment
DredPirate Posted November 11, 2005 Report Share Posted November 11, 2005 Not true for multicolumn listbox. You can set the selection color. See the attached VI. Download File:post-3219-1131731871.vi Quote Link to comment
WMassey Posted November 11, 2005 Author Report Share Posted November 11, 2005 Not true for multicolumn listbox. You can set the selection color. See the attached VI. Son-of-a-gun, you are right! That's exactly what I needed. Thanks! Quote Link to comment
Michael Aivaliotis Posted December 17, 2005 Report Share Posted December 17, 2005 Son-of-a-gun, you are right! That's exactly what I needed. Thanks! Bottom-lin: You cannot change the color of any Dialog (system) controls. If you need to change the colors use non-dialog controls. Quote Link to comment
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.