Discussion:
Vertical (String) TextBox
(too old to reply)
machzender
2008-08-12 12:40:06 UTC
Permalink
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
cschneider
2008-08-12 13:10:06 UTC
Permalink
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 helpsChristian
Ben
2008-08-12 13:10:07 UTC
Permalink
Christian!
You were so close to the mark! :smileywink:
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. :smileyvery-happy:
Ben
falkpl
2008-08-12 13:10:08 UTC
Permalink
I always wondered why text.vertical arangement was not allowed outside of lables, captions or free lables
 
Wiebe@CARYA
2008-08-12 16:20:13 UTC
Permalink
Post by falkpl
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.
cschneider
2008-08-12 13:40:19 UTC
Permalink
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
tst
2008-08-12 15:10:14 UTC
Permalink
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).
Wiebe@CARYA
2008-08-12 16:44:55 UTC
Permalink
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.
machzender
2008-08-12 16:10:07 UTC
Permalink
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
falkpl
2008-08-12 17:40:10 UTC
Permalink
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?).
Wiebe@CARYA
2008-08-13 14:09:42 UTC
Permalink
Post by falkpl
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?).

I think XControls are still way to heavy for serious use. I also had crashes
when I put XControls on frontpanels that where closed with VIServer. So I
stay away from them for now...

But using free labels is a good idea. Too bad they still don't have
labels... Jet another thing that people have been asking for for years.

Regards,

Wiebe.
falkpl
2008-08-13 15:40:07 UTC
Permalink
Some day we might just get free lables and decorations which can be named and referenced, this would solve so many issues.  Yes I never use Xcontrols outside of internal projects.  They take way too long to make and have seen some side effects that were unpredictable.  Conceptually XControlls are a a great solution to many UI problems.
Continue reading on narkive:
Loading...