LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

can i edit a string on a text message control progratically ?

I want to know can I  edit a string on a Text message and update it programatically ( i.e erasing and then editing) .Plz reply .
 
Subrata
0 Kudos
Message 1 of 2
(2,783 Views)

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

    char line [256] = "Some new string data";
    ...
    SetCtrlVal (panel_handle, PANEL_TEXT, line);

If you need the operator to edit the text directly, rather than generate new text within your program, it might be better to use a String control.

JR

Message 2 of 2
(2,778 Views)