Button-Text not adjusted to BMP (TEXTRIGHT) ?

Button-Text not adjusted to BMP (TEXTRIGHT) ?

Postby ukoenig » Thu Sep 17, 2009 12:26 pm

Hello,

I noticed, using :

REDEFINE BUTTONBMP oBtn1 ID 110 OF oFld:aDialogs[1] ;
ACTION MsgAlert("Test" ) ;
BITMAP aPICTURES[1][3] PROMPT aBTNTEXT[1][1] TEXTRIGHT
oBtn1:cToolTip = { "TButtonBMP","Test", 1, CLR_BLACK, 14089979 }
oBtn1:oFont := oTextFont

the Button-Text is not adjusted in Relation to the included BMP, always centered.
As long the Buttontext is short in Relation to the Buttonwidth, there is no Problem.
To make it working, I have to add some left Spaces.
I think using < TEXTRIGHT >, the left Start-Text-Position must be calculated with the BMP:nWidth() + some Space.

( always centered )

Image

Best Regards
uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: cmsoft and 67 guests