2.8k views
in GUI Development by
Hi,

I have an issue with Attributed Tex alignment. If I set as alignment:

Views::TextAlignment[AlignHorzCenter, AlignVertCenter]

the string defined for the Attributed Tex :

"Salvare le modifiche ({clr1}*{clr0})\neffettuate?"

is not horizontally aligned (only vertically).

What should I to do to be able to view my text aligned horizontally?

EW version:9.00

Target device: STM32 F7

Thanks.

Gianluca

1 Answer

+1 vote
by
 
Best answer

Hello Gianluca,

this is correct behavior. In case of the Attributed Text, the Alignment property affects the position of the entire text block containing the rendered attributed text. The behavior is explained in the section Align the content within the Attributed Text view area.

In order to align the paragraphs in Attributed Text the respective attributes e.g. {parc} has to be used. Please see Layout the text in paragraphs. Accordingly, just add {parc} in front of Salvare le .... Per default, the paragraphs are left aligned.

Does it help you?

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

...