How to change button caption/text align

How to change button caption/text align

Postby ShumingWang » Fri Dec 09, 2016 6:42 am

Hi!
How to change the button caption/text align.
The button caption/text default is center align, I want some button caption left align .
Best regard !
Shuming Wang
http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Re: How to change button caption/text align

Postby nageswaragunupudi » Fri Dec 09, 2016 7:48 am

I guess you are asking about normal button ( TButton ) and not buttonbmp or btnbmp.

Code: Select all  Expand view
  @ nRow,nCol BUTTON oBtn PROMPT "LeftAlign" SIZE 300,90 PIXEL OF oDlg
   if Empty( oBtn:hWnd )
      oBtn:nStyle += BS_LEFT
   else
      oBtn:WinStyle( BS_LEFT, .t. )
   endif
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10632
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: How to change button caption/text align

Postby ShumingWang » Fri Dec 09, 2016 9:22 am

Mr Rao,
Thank you !
But tsbutton can not be changed.

Shuming Wang
http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Carles and 111 guests