LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

can I change max length for graph label in attr_xname?

1) I find that if the length is too large (more than 30 characters), the label will not be set on a graph. Is there a way around it?
2) also, can I display more than one line of text?
0 Kudos
Message 1 of 7
(3,597 Views)
Hello

You should be able to set the label with a text string greater than 30 characters, i tried this out in CVI 6. Have you tried using SetCtrlAttribute to change the label? You should be able to use \n to send it to a new line.

Let me know if I missed anything

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 7
(3,597 Views)
hi thanks for the answer
I have CVI 5.01 or something. I am able to change the label with SetCtrlVal but again, it does not work with either \n or if there are more than 30 characters.. if anyone could verify this or have a way around it, would appreciate it
0 Kudos
Message 3 of 7
(3,597 Views)
I might have misunderstood the problem, you were talking about the labels on the x-axis, I described the main control label. The axis labels are limited only to 31 characters, the only way around it would be to place a text box over the label and set that to what you need.

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 4 of 7
(3,597 Views)
thanks for the reply. I have a follow up question. Is there a way to capture all the content of a panel to a image file (bmp, jpg, or gif)?
I have found an example to save a graph to a bitmap file but it does not save any other control..

any help would be greatly appreciated
0 Kudos
Message 5 of 7
(3,597 Views)
Check out the PrintPanel function.Its part of the User Interface >> Printing library.

Hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 6 of 7
(3,597 Views)
Bilal
I am not able to make sense of PrintPanel().. if I print to a file, can it be an image file (that can be opened by an image viewer)?
I have cvi5.0 by the way.
0 Kudos
Message 7 of 7
(3,597 Views)