LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I put a text in a string on the Panel?

Solved!
Go to solution

I know this question sounds maybe somewhat basic. I cannot type anything in the string box that I have on the panel.

In the code there is only one line that calls the string box from the panel which is:

GetCtrlVal(sPanels.P_Hauptmenue,P_MAIN_Orderdata,cOrderdata);

Here are the settings of the box:

Unbenannt.PNG

There is only this string box where we can put text in, but after compiling and starting the program nothing can be written in the box.

Thanks a lot in advance!

0 Kudos
Message 1 of 2
(1,146 Views)
Solution
Accepted by topic author Ramles97

I just found the problem. it was this line:

SetCtrlAttribute (sPanels.P_Hauptmenue, P_MAIN_Orderdata, ATTR_MAX_ENTRY_LENGTH, scOrderdata);

  the ATTR_MAX_ENTRY_LENGTH (which is -1) made the typing of text in the string impossible.

 

0 Kudos
Message 2 of 2
(1,130 Views)