LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Vertical (String) TextBox

All-
 

I’m wondering if anyone might know how to change the orientation of a text box so that it would display vertically?

Currently using LabView 8.2

 

Thx-

-Peter

0 Kudos
Message 1 of 12
(5,700 Views)
Depends on what you mean with "vertically"...you can add a linebreak after each character, then you can use a normal string indicator to display text vertically...To turn text by 90 degree, the only solution I know is to use a picture-box, write the text by graphics-functions, then take the picture and turn it (for example by "picture to pixmap, transpose array, and then draw the pixmap again).

Hope it helps

Christian

THINK G!! 😉
------------------------------------------------------------------------------------------------
Using LabView 2010 and 2011 on Mac and Win
Programming in Microsoft Visual C++ (Win), XCode (Mac)
Message 2 of 12
(5,696 Views)

Christian!

You were so close to the mark! Smiley Wink

The "Text Orientation" input of the "Draw Text in Rectangle" allows you to specify the orientation.

(I can hear it coming) Yes your solution will also let you present text oriented at a 45 degree angle. Smiley Very Happy

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 3 of 12
(5,689 Views)
I always wondered why text.vertical arangement was not allowed outside of lables, captions or free lables
 
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 4 of 12
(5,684 Views)
Hey Ben!

Ok, only rarely used this VI...but you are right, my solution is really a bit complex if it can be sooo easy :-)...

Christian

THINK G!! 😉
------------------------------------------------------------------------------------------------
Using LabView 2010 and 2011 on Mac and Win
Programming in Microsoft Visual C++ (Win), XCode (Mac)
0 Kudos
Message 5 of 12
(5,673 Views)

Am I the only one who thinks this is rarely a good idea?

If you have to rotate a piece of text because of space issues then it probably means that you need to rethink your GUI.

(Of course, there are also valid reasons for doing this, but they are relatively rare).


___________________
Try to take over the world!
0 Kudos
Message 6 of 12
(5,654 Views)

"falkpl" <x@no.email> wrote in message
news:1218546608571-760780@exchange.ni.com...
> I always wondered why text.vertical arangement was not allowed outside of
lables, captions or free lables

Because it never had any priority to build this in... It's about time, since
it is a bit stupid that a graphical programming language isn't capable of
doing this.

Regards,

Wiebe.


0 Kudos
Message 7 of 12
(5,638 Views)

Hi All-

Thx for the quick feedback on this.  I've now played with that VI and it's going to work for me after some changes.   It'll take some planning, but I'll get there.

The reason for doing this is it's a dynamic front panel that'll display boxes based on some criteria and as more things get displayed the text will need to go vertical to accommodate all visable boxes.

 

-Peter

0 Kudos
Message 8 of 12
(5,636 Views)
I had tables with booleans where each column and row had a name. Basically a
normal table, but the data in the table is very small. Still, the table had
to be very large, becuase the column headers couldn't be rotated!

I now have my libraries to draw picture control tables (with cell merging,
coloring etc.). My guess is that most people gave up to make rotated text
controls, or made similar solutions.

Something so basic should be easy to do in a graphical language!

Regards,

Wiebe.


0 Kudos
Message 9 of 12
(5,625 Views)
Yes it just doesnt make sense that ni has had the ability to do rotated text as a property of the text reference type but doesnt expose it in their text/string controls.  Its not like they are starting from scratch.  Mayme an Xcontrol could override this, I will have to think about this one (replace the text filed in a string control with a free label?).
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 10 of 12
(5,607 Views)