LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to tilt/rotate the textbox control by 90 degree in UIR?

I want to display a text from bottom to top. Is there a way to set text write pattern to the text box or the option to rotate teh text box control itself?
 
Eg: "Text in the textbox control" . I want to display this text by the way how it looks if I tilt the whole sentence by 90 degree left.
 
 
 
 
 
0 Kudos
Message 1 of 3
(3,462 Views)

Displaying a text in vertical position cannot be made natively with a text or textbox control. I can suggest you two alternatives.

1. Use a graph control: Yaxis names are written vertically so you can customize your graph hiding all elements apart axis name(s)

2. Obtain the bitmap image of the text control and rotate it or use a canvas for this. This subject has been treated a few times here in the forums: you can look for example at this thread that gives you two ideas for bitmap rotation.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 3
(3,458 Views)
Hello Vel,

To follow up Roberto's post, the following KnowledgeBase documents Roberto's first recommendation about using Graph controls to display rotated labels.
Also, the following example program demonstrates how to rotate labels using Canvas controls.

Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 3 of 3
(3,420 Views)