LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Question about controls

Dear sir:
I've used Measurement Studio 6.0 for a month or so. I should say it had improved a lot comparing with the former version. But I feel a little bit unconvenience about the ring controls. The arrow block attaching with the control can't be changed. No matter how big the control is, that arrow block'width keep still. I want to make it wider,but I can't.
So I will be very appreciate if you can make some change about this sort controls! thank you very much.
0 Kudos
Message 1 of 4
(4,849 Views)
If you have a plain ring (CTRL_RING or CTRL_RING_LS), use the following code:

SetCtrlAttribute (panel, control, 20472, newWidth);

If you have a menu ring (CTRL_RECESSED_MENU_RING, CTRL_MENU_RING, CTRL_POPUP_MENU_RING, CTRL_RECESSED_MENU_RING_LS, CTRL_MENU_RING_LS, or CTRL_POPUP_MENU_RING_LS) use the following code:

SetCtrlAttribute (panel, control, 20475, newWidth);

If you want to set the height of a menu ring's arrow, use the following code:

SetCtrlAttribute (panel, control, 20476, newHeight);

These are undocumented attributes, so you won't find their description in the function panel help or online help.

Luis Gomes
NI
Message 2 of 4
(4,849 Views)

Hi Luis

Is it possible to dimm individual ring items ?

0 Kudos
Message 3 of 4
(2,911 Views)

Hi,

 

CVI2012 provides this new feature, now you can use SetRingItemAttribute (, , , ATTR_DIMMED, ), e.g.

 

SetRingItemAttribute ( PANEL, PANEL_RING_4, 2, ATTR_DIMMED, 1 );

Message 4 of 4
(2,908 Views)