DCPUSHBUTTONXP

This forum is for eXpress++ general support.
Post Reply
Message
Author
c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

DCPUSHBUTTONXP

#1 Post by c-tec »

Hello,
I have a question to captionarray. It seems that the positioin and alignment of the text does not work correct. When I add XBPALIGN_HCENTER, then the position of the text changes to top of the button. Also the position of 80 of the second caption is needed to display the text at the bottom of the button, but the size is only 50 pixels.
regards
Rudolf

Code: Select all

aCaption := { ;
                         { 'T',    GRA_CLR_BLACK,40, 10,,,XBPALIGN_HCENTER,'30.Wingdings 2',,}, ;
                         { 'Exit', GRA_CLR_BLACK,80, 15,,,XBPALIGN_HCENTER,'10.Arial Bold',,} }

                    @ 0,1      DCPUSHBUTTONXP SIZE 50,50 CAPTIONARRAY aCaption action 
Attachments
button2.jpg
button2.jpg (1.7 KiB) Viewed 5636 times
button1.jpg
button1.jpg (1.75 KiB) Viewed 5636 times
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

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

Re: DCPUSHBUTTONXP

#2 Post by rdonnay »

The purpose of the caption array is to allow you to place any item on the button in the exact location you want. I don't use the alignment element. That would defeat the purpose. I probably should correct that in the docs.
The eXpress train is coming - and it has more cars.

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

Re: DCPUSHBUTTONXP

#3 Post by c-tec »

Hello Roger,
thank you, found another solution to display the cation, I put a separate button with the caption under the symbol button.
regards
Rudolf
Attachments
button3.jpg
button3.jpg (27.03 KiB) Viewed 5623 times
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

Post Reply