FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to change button caption/text align
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
How to change button caption/text align
Posted: Fri Dec 09, 2016 06: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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: How to change button caption/text align
Posted: Fri Dec 09, 2016 07:48 AM
I guess you are asking about normal button ( TButton ) and not buttonbmp or btnbmp.

Code (fw): Select all Collapse
   @ 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
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
Re: How to change button caption/text align
Posted: Fri Dec 09, 2016 09: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

Continue the discussion