LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

changing the color of the drop-down box of a ring control

(this subject has not been discussed here since 2001)

is there any way of changing the background color of the drop-down part of a ring control ?

 

we can change any color of the non-dorp-down part of the control, but accessing the drop-down in the editor is impossible: the drop-down disappears when i try to click on the paint button. or there my be an attribute to change that, but i can't find it.

 

0 Kudos
Message 1 of 5
(4,226 Views)

It is possible to change the color of the modern & classic-style menu's. However, it is not possible to change it programmaticaly using property nodes, custom controls. Please see the following KB article:

 

http://digital.ni.com/public.nsf/allkb/D82D09A31648E9CE86256A07008038C6?OpenDocument

 

Best Regards

Michiel
Applications Engineer
NI Belgium
0 Kudos
Message 2 of 5
(4,194 Views)

thanks for the link. unfortunately, this article refers to LabVIEW when i am using LabWindows/CVI.

 

the closest i can find is in the Options/Preferences menu, but there is no option to control the color of menus. plus, those settings seems to apply permanently (i mean, apply to new projects too), when i only need that color for one single project.

0 Kudos
Message 3 of 5
(4,187 Views)

Small mistake, the above explanation was for Labview, not CVI. Basically, it is the same principle, meaning that the color of the drop-down menu is determined by the 'menu' color you set in windows. So you can change the color by changing the windows default menu color. More information in this forum post:

 

http://forums.ni.com/ni/board/message?board.id=180&message.id=3865&requireLogin=Fals

 

So basically, you are not able to change the menu color from CVI directly. Also keep in mind that when changing the menu color, it changes troughout windows completely.

Message Edited by Michiel Herman on 12-08-2008 09:52 AM
Best Regards

Michiel
Applications Engineer
NI Belgium
0 Kudos
Message 4 of 5
(4,186 Views)

thanks for the new link. i already read this article, which is dating back 2001. i hoped something had changed since then. changing the menu color for the WHOLE system is not an option for me, so i will stick with the default color for the moment.

 

now, if i understand correctly, the ring control drop down box is, in fact, a standard Windows menu, right ? if it is, can't we get control of the menu background color through an attribute ? setting the attribute would call Windows SetMenuInfo() function, with the correct background brush to adjust the background color. is it possible ?

Message Edited by dummy_decoy on 12-08-2008 03:56 AM
0 Kudos
Message 5 of 5
(4,182 Views)