Page 1 of 1

DCPUSHBUTTONXP

Posted: Thu Feb 28, 2013 6:18 am
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 

Re: DCPUSHBUTTONXP

Posted: Thu Feb 28, 2013 8:20 am
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.

Re: DCPUSHBUTTONXP

Posted: Thu Feb 28, 2013 8:31 am
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