How to make a label on the button in a few lines

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:

How to make a label on the button in a few lines

#1 Post by Eugene Lutsenko »

How to make a label on the button (DCPUSHBUTTON) in a few lines

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

Re: How to make a label on the button in a few lines

#2 Post by rdonnay »

Use DCPUSHBUTTONXP.
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.


User avatar
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

#4 Post by Eugene Lutsenko »

And what parameters specify that the button DCPUSHBUTTONXP had the same form as DCPUSHBUTTON?

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

Re: How to make a label on the button in a few lines

#5 Post 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
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: How to make a label on the button in a few lines

#6 Post 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

User avatar
Auge_Ohr
Posts: 1428
Joined: Wed Feb 24, 2010 3:44 pm

Re: How to make a label on the button in a few lines

#7 Post 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
Multi_PB.ZIP
Source
(1.26 KiB) Downloaded 735 times
greetings by OHR
Jimmy

c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Re: How to make a label on the button in a few lines

#8 Post 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
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

User avatar
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

#9 Post 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

Post Reply