409 views
in GUI Development by
Dear All,

I have a text box, that should just truncate text instead of wrapping it.

The view that is used is of type AttrText. Compared to the view Text it does not have a property WrapText which can be used to disable wrapping.

Is there some kind of workaround? Maybe working with bounds values?

Any help would be appreciated.

Regards,

Bernhard

1 Answer

0 votes
by

Hello Bernhard,

just set the property WrapWidth to a value large enough for the longest text line. See also Wrap the text in multiple rows automatically. Doing this configure also the property Alignment to left align the entire text block. The default configuration centers the text. See also Align the content within the Attributed Text view area.

I hope it helps you further.

Best regards

Paul Banach

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...