WMassey Posted November 10, 2005 Report Posted November 10, 2005 For a listbox control/indicator is it possible to specify the color used to highlight the selected item(s)? Quote
Yair Posted November 11, 2005 Report 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
WMassey Posted November 11, 2005 Author Report 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
DredPirate Posted November 11, 2005 Report Posted November 11, 2005 You could use a Multicolumn Listbox. Quote
WMassey Posted November 11, 2005 Author Report 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
DredPirate Posted November 11, 2005 Report 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
WMassey Posted November 11, 2005 Author Report 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
Michael Aivaliotis Posted December 17, 2005 Report 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
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.