Programación General > C++ Builder
Alinear El Texto De Un Tedit A La Derecha
(1/1)
neg1414:
Buenas:
Como se puede alinear el Texto de un Edit a la derecha en tiempo de Ejecucion
Gracias
Ithilien:
Hola, por lo que he visto de la ayuda, existe una propiedad Alignment que indica la alineación del texto del Edit. Concretamente:
--- Código: Text --- Determines how the text in the edit component is aligned. __property TAlignment Alignment = {read=GetAlignement, write=SetAlignment, default=taLeftJustify}; Description Use Alignment to indicate text alignment in the edit box. These are the possible values: Value Meaning taLeftJustify Align text on the left side in the edit control.taCenter Center the text in the edit control.taRightJustify Align text on the right side in the edit control.
Dice que es heredada de TCustomEdit. Al probar con un Edit normal, no me aparece, así podrías crearte un TCustomEdit con las mismas medidas / propiedades que tu edit, y establecerle la propiedad Alignment a taRigthJustify.
Espero que te sirva.
Saludos!
Navegación
Ir a la versión completa