FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Button-Text not adjusted to BMP (TEXTRIGHT) ?
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Button-Text not adjusted to BMP (TEXTRIGHT) ?
Posted: 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 )



Best Regards
uwe :-)
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.

Continue the discussion