Hello,
To draw fonts like this on a bitmap, you have to do calculations.
For each char of the text, you have to calculate the position
inside a bitmap to get the text vertical centered.
There is no standard for this.
For the moment, the tools can do the needed calculation for you.
My next project will be a < button-creator > for Fivewin,
there i want to make it possible, that the user can create buttons like these, you are looking for.
About splitters, you can find some samples in FWH/samples/
For the calculation you can use the VTOOLS.
Inside the application is a button : < PRG > to get the source for the calculation.
You have to add :
< oBmp:bLClicked := {|| Msgalert( "Your action" ) } >,
because the BMP is used as Titels and not as a button.
The function < OnPaintV > you will find in the source.
Code: Select all
REDEFINE BITMAP oBmp ID 110 ADJUST RESOURCE "Blanc" OF oDlg
oBmp:bLClicked := {|| Msgalert( "Your action" ) }
oBMP:bPainted := { |hDC|OnPaintV( hDC,oBMP, ;
13003573,15779475,16777215, ;
"Vertical-Text Button ", ;
oBfont1, 0 ,"TEST.BMP" ,3 ) }
Download :
http://www.pflegeplus.com/fw_downloads/vtools.zip
If you still need more informations, just tell me.
Regards
Uwe