FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Vertical Adjustment (TOP/BOTTOM) in ButtonBMP ?
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Vertical Adjustment (TOP/BOTTOM) in ButtonBMP ?
Posted: Thu Sep 24, 2009 03:33 PM
Hello,

is it possible, to get a Vertical BMP / Text- Adjustment using BUTTONBMP ?
The Text is vertical centered and the BMP is placed on TOP or BOTTOM.

REDEFINE BUTTONBMP oBtn3 ID 130 OF oDlg70 ;
ACTION MsgAlert("Test" ) ;
BITMAP aPICTURES[3][3] PROMPT TRIM(aBTNTEXT[3][1]) TEXTBOTTOM

REDEFINE BUTTONBMP oBtn6 ID 220 OF oDlg70 ;
ACTION MsgAlert("Test" ) ;
BITMAP aPICTURES[6][3] PROMPT TRIM(aBTNTEXT[6][1]) TEXTTOP



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.
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Vertical Adjustment (TOP/BOTTOM) in ButtonBMP ?
Posted: Sun Oct 18, 2009 06:29 AM

Uwe,

Do you mean to place the text besides the bitmap, and both vertically centered ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Vertical Adjustment (TOP/BOTTOM) in ButtonBMP ?
Posted: Sun Oct 18, 2009 10:58 AM
Antonio,

there is a different Results of TOP and BOTTOM in Class BTNBMP and BUTTONBMP.
In BUTTONBMP, the Text is vertical centered.
The Calculation in BTNBMP is Ok.

A better Screenshot, to show the Problem


Code (fw): Select all Collapse
// Bitmap on Top-Position
// ----------------------------
@ 20, 50 BTNBMP oBtn50 SIZE 150, 100 OF oWnd  2007 ;
FILENAME c_path + "\Images\select.bmp" ;
TOP ;
PROMPT "  &VTitle-Painter  " ;
FONT oButtFont ;
ACTION MsgAlert("Test" ) 

@ 20, 250  BUTTONBMP oBtn1  SIZE 150, 100 OF oWnd ADJUST PIXEL ;
ACTION MsgAlert("Test" ) ;
FONT oButtFont ;
BITMAP c_path + "\Images\select.bmp" PROMPT "  &VTitle-Painter  "  TEXTBOTTOM

// Bitmap on Bottom-Position
// --------------------------------
@ 150, 50 BTNBMP oBtn50 SIZE 150, 100 OF oWnd  2007 ;
FILENAME c_path + "\Images\select.bmp" ;
BOTTOM ;
PROMPT "  &VTitle-Painter  " ;
FONT oButtFont ;
ACTION MsgAlert("Test" 

@ 150, 250  BUTTONBMP oBtn1  SIZE 150, 100 OF oWnd ADJUST PIXEL ;
ACTION MsgAlert("Test" ) ;
FONT oButtFont ;
BITMAP c_path + "\Images\select.bmp" PROMPT "  &VTitle-Painter  "  TEXTTOP


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