Vertical text

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
seoman
Posts: 7
Joined: Mon Jan 27, 2020 7:26 am

Vertical text

Post by seoman »

I want to write vertical text and if i use static text wordwrap and multiline seems to be doing the trick

But if I want to show strings coming from a Tag ie string(10) then I cannot get the string to be shown vertical.

If i dynamicly draw the text like this:

Code: Select all

formGraphics.DrawString(
						Globals.Tags.myText.Value,
						drawFont,
						currentBrush,
						new Rectangle(
						Globals.Tags.x1.Value,
						Globals.Tags.y1.Value,
						20,
						800));
the text will be drawn into the rectangle and the rectangle is about as wide as the font. So it will draw the text vertical

BUT BUT only when i run (F5) the program.
If i download it to the X2 Pro it will draw the text outside the box and therefore horizontal.

Were is this difference between a simulation and a real panel comming from.
and How do i draw strings vertical?

User avatar
Russ C.
Posts: 213
Joined: Thu Nov 16, 2017 3:32 pm
Contact:

Re: Vertical text

Post by Russ C. »

Hi Seoman,

So to clarify, the main the difference between the PC runtime and the panel runtime, is the panel runtime is limited to the 3.5 Compact Framework.

Attached is a 2.40 SP4 project, that demonstrates how you could display text from a tag vertically on a panel.
I tested on an X2 Pro 10, and it works as expected.
VerticalTextFromTag.zip
(32.32 KiB) Downloaded 697 times
Best regards,

Russ
(801) 708-6690
Technical Support
Contact Us

Beijer Electronics AB
http://www.beijerelectronics.us

Post Reply