Página 1 de 1

Justificar Texto

Publicado: 08 Jul 2015 03:16
por Gettzel
Buenas amigos, apenas estoy empezando a usar AMS8 y pues como lo dice el asunto, necesito saber como justificar texto, he probado guardando el texto justificado como RTF, pero al ingresarlo AMS siempre me sale a la izquierda.

Re: Justificar Texto

Publicado: 08 Jul 2015 15:26
por dionizio1589
¿Qué versión de AMS está usando?

Descargue la versión 8.5 AMS aquí en el sitio (Programas).

"AUTOPLAY MEDIA STUDIO 8.5.0.0 + SERIAL NUMBER (probado)"

======================================================================================
Ejemplo:

RichText.LoadFromFile("ObjectName", "AutoPlay\\location of the text file in the folder autoplay.rtf");

RichText.SetParagraphFormat("ObjectName", {Alignment = 4});


OBS:

The paragraph alignment to set:
PFA_LEFT (1) - Align paragraphs with the left margin.
PFA_RIGHT (2) - Align paragraphs with the right margin.
PFA_CENTER (3) - Center paragraphs.
PFA_JUSTIFY (4) - Justify paragraphs (Rich Edit 2.0). This value is included for compatibility with TOM interfaces; rich edit controls earlier than Rich Edit 3.0 display the text aligned with the left margin.

Espero que eso te ayude.

Re: Justificar Texto

Publicado: 25 Sep 2018 02:37
por EDGAMA
Quiero informarles que en esta fecha, esta solución fue la idónea en mi caso para justificar el texto en un Rich Text Oject.

Muchas gracias por la información.