The alignment of the text in DCPUSHBUTTON

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

The alignment of the text in DCPUSHBUTTON

#1 Post by Eugene Lutsenko »

How DCPUSHBUTTON align test left align?

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: The alignment of the text in DCPUSHBUTTON

#2 Post by rdonnay »

Code: Select all

#include "dcdialog.ch"

FUNCTION Main()

local GetList[0]

@ 0,0 dcpushbuttonxp size 100,100 pixel caption 'Hello;World' align XBPALIGN_LEFT radius 10 ;
    color GRA_CLR_WHITE, GRA_CLR_DARKCYAN FONT '16.Arial'

dcread gui fit

RETURN nil
The eXpress train is coming - and it has more cars.

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: The alignment of the text in DCPUSHBUTTON

#3 Post by Eugene Lutsenko »

Hey, Roger!

Your small example does not compile.

But I looked in dcpushbuttonxp c:\exp20\Samples\BUTTONXP\buttonxp.prg. Of course there are all the most exacting taste.

Thank you!

Post Reply