LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to change colour of color numeric ?

Hi ,
Plz tell me how can I change the colour of a color numeric .If the function is SetCtrlAttribute( ); then what is the controlID .
 
subrata
0 Kudos
Message 1 of 3
(3,279 Views)

Hello Subrata,

The colour can be changed the same way that you change the value of any control, like a regular numeric control:

SetCtrlVal (pnlHandle, PNL_COLORNUM, VAL_BLACK);

Instead of VAL_BLACK or any of the predefined RGB colors in userint.h, you can enter your own RGB color, like 0xA0523C.

Message 2 of 3
(3,274 Views)

Hello Subrata,

Edit : Nevermind, just made a mistake (moreover, the answer's already been given Smiley Happy )

Regards,

Message Edité par Mathieu Steiner le 02-23-2007 07:48 AM

Message Edité par Mathieu Steiner le 02-23-2007 07:51 AM

0 Kudos
Message 3 of 3
(3,275 Views)