Page 1 of 1
How to make a label on the button in a few lines
Posted: Tue Jul 19, 2016 11:29 am
by Eugene Lutsenko
How to make a label on the button (DCPUSHBUTTON) in a few lines
Re: How to make a label on the button in a few lines
Posted: Tue Jul 19, 2016 11:52 am
by rdonnay
Use DCPUSHBUTTONXP.
Example:
Code: Select all
@ 0,0 DCPUSHBUTTONXP CAPTION 'This;Is;My;Label' SIZE 10,3
Re: How to make a label on the button in a few lines
Posted: Tue Jul 19, 2016 12:43 pm
by Eugene Lutsenko
Thank you!
Re: How to make a label on the button in a few lines
Posted: Tue Jul 19, 2016 1:19 pm
by Eugene Lutsenko
And what parameters specify that the button DCPUSHBUTTONXP had the same form as DCPUSHBUTTON?
Re: How to make a label on the button in a few lines
Posted: Tue Jul 19, 2016 1:49 pm
by rdonnay
DCPUSHBUTTONXP is fully configurable to make any kind of button you want with gradients, bitmaps, icons, etc.
Look at \exp20\samples\buttonxp\buttonxp.prg
Re: How to make a label on the button in a few lines
Posted: Tue Jul 19, 2016 1:56 pm
by Eugene Lutsenko
I watched it. I just thought that maybe already have a ready-made set of these settings, the button looks like a standard
Re: How to make a label on the button in a few lines
Posted: Tue Jul 19, 2016 2:01 pm
by Auge_Ohr
hi,
what about Line 2194 in x:\exp20\Source\Dclipx\_dcxbutt.prg
Code: Select all
METHOD DC_XbpPushButton:create(oParent, oOwner, aPos, aSize, aPresParam, lVisible )
...
::xbpPushButton:create( oParent, oOwner, aPos, aSize, aPresParam, lVisible )
...
ELSEIF ::captionAlign == BS_MULTILINE + BS_LEFT
i use it this Way to "pimp" a XbpPushbutton() to have multi lines
Re: How to make a label on the button in a few lines
Posted: Tue Jul 19, 2016 11:50 pm
by c-tec
Hello,
or look at DCPUSHBUTTONXP and option CAPTIONARRAY , here you can set several things like color, position, font etc. in an array. This is easier to handle for you.
regards
Rudolf
Re: How to make a label on the button in a few lines
Posted: Wed Jul 20, 2016 12:39 am
by Eugene Lutsenko
Thanks, I'll try. I saw it in the c:\exp20\Samples\BUTTONXP\BUTTONXP.EXE. I just thought that maybe someone had already picked up these settings to this button looks like a standard