How to make a label on the button in a few lines
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
How to make a label on the button in a few lines
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
Use DCPUSHBUTTONXP.
Example:
Example:
Code: Select all
@ 0,0 DCPUSHBUTTONXP CAPTION 'This;Is;My;Label' SIZE 10,3
The eXpress train is coming - and it has more cars.
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
Re: How to make a label on the button in a few lines
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
DCPUSHBUTTONXP is fully configurable to make any kind of button you want with gradients, bitmaps, icons, etc.
Look at \exp20\samples\buttonxp\buttonxp.prg
Look at \exp20\samples\buttonxp\buttonxp.prg
The eXpress train is coming - and it has more cars.
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
Re: How to make a label on the button in a few lines
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
hi,
what about Line 2194 in x:\exp20\Source\Dclipx\_dcxbutt.prg
i use it this Way to "pimp" a XbpPushbutton() to have multi lines
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
greetings by OHR
Jimmy
Jimmy
Re: How to make a label on the button in a few lines
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
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
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
Re: How to make a label on the button in a few lines
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