LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

HOW CAN I EDIT A STRING IN TEXT MESSAGE AND DECORATION ?

 I am new to LabWindows / CVI .I want to edit a string to a Text Message with a particular colour . I also want to know can I edit a string on a decoration  box . Plz reply me as early as possible .
 
with Regards
subrata
0 Kudos
Message 1 of 2
(2,941 Views)

You can change the colour of text in a Text Message control by using code along the following lines:

    SetCtrlAttribute (panel_handle, PANEL_TEXT, ATTR_TEXT_COLOR, VAL_RED);

(Use ATTR_TEXT_BGCOLOR to change the colour of the background.) There is a choice of standard colours, or you can make your own if you prefer. There is no text associated with the Decoration controls.

JR

0 Kudos
Message 2 of 2
(2,937 Views)