Recent

Author Topic: [SOLVED] LAMW : change Text Align ??  (Read 2585 times)

majid.ebru

  • Sr. Member
  • ****
  • Posts: 388
[SOLVED] LAMW : change Text Align ??
« on: February 24, 2017, 10:40:45 am »
Hi
i create new project.
i put one jTextView in form.
i change these property of jTextView :
PosRelativeToParent = [rpBottom,rpTop,rpLeft,rpRight] ;
.
.
i think the default  text align is Top , Left .

how can change text align like top right or bottom left or bottom right or middle left or .....?

thanks 
« Last Edit: March 12, 2017, 09:47:20 am by majid.ebru »

jmpessoa

  • Hero Member
  • *****
  • Posts: 1623
Re: LAMW : change Text Align ??
« Reply #1 on: February 25, 2017, 05:06:06 am »

Please, try:

PosRelativeToParent = [rpBottom, rpLeft] ;

OR
PosRelativeToParent = [rpBottom,rpRight] ;

OR
PosRelativeToParent = [rpTop,rpRight] ;

OR
PosRelativeToParent = [rpTop,rpLeft] ;
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

majid.ebru

  • Sr. Member
  • ****
  • Posts: 388
Re: LAMW : change Text Align ??
« Reply #2 on: February 26, 2017, 04:44:21 am »

Please, try:

PosRelativeToParent = [rpBottom, rpLeft] ;

OR
PosRelativeToParent = [rpBottom,rpRight] ;

OR
PosRelativeToParent = [rpTop,rpRight] ;

OR
PosRelativeToParent = [rpTop,rpLeft] ;

with these property , i just can set "Position" of component and i can't change align of Contents?

jmpessoa

  • Hero Member
  • *****
  • Posts: 1623
Re: LAMW : change Text Align ??
« Reply #3 on: February 26, 2017, 05:19:45 am »


Please, select/click a jTextView and go to "Object Inspector"
and configure the property "Alignment" to:

taLeft,   or
taRight, or
taTop,  or
taBottom, or
taCenter,  or
taCenterHorizontal, or
taCenterVertical

Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

 

TinyPortal © 2005-2018