Not exactly like RBBtn, but these are the possible configurations. Optionally, you can specify the position of the bitmap with oBtn:aBmpRect := { t, l, b, r }
#include "fivewin.ch"
Function Main()
Local oDlg, oBtn, oFont
Local bGradColors:= { | lInvert | If( lInvert, ;
{ { 1, nRgb (255,225,131), nRgb (255,225,131) }, }, ;
{ { 1, CLR_WHITE, CLR_WHITE }, };
);
}
DEFINE FONT oFont NAME GetSysFont() SIZE 0,12 POINTS
DEFINE DIALOG oDlg SIZE 400,500 PIXEL TITLE "Prueba TBtnBmp" FONT oFont TRUEPIXEL
@ 10,10 RBBTN oBtn BITMAP "..\bitmaps\alphabmp\windows.bmp" SIZE 300,80 ACTION oDlg:End() PROMPT "Prueba TRbtn";
LEFT BORDER FONT oFont
@ 100,10 BTNBMP oBtn FILE "..\bitmaps\alphabmp\windows.bmp" SIZE 300,80 ACTION oDlg:End() PROMPT "Prueba TBtnBmp";
LEFT GRADIENT bGradColors 2007 FONT oFont
@ 190,10 BTNBMP oBtn FILE "..\bitmaps\alphabmp\windows.bmp" SIZE 300,80 ACTION oDlg:End() PROMPT "Prueba TBtnBmp ";
LEFT GRADIENT bGradColors 2007 FONT oFont
@ 280,10 BTNBMP oBtn FILE "..\bitmaps\alphabmp\windows.bmp" SIZE 300,80 ACTION oDlg:End() PROMPT " Prueba TBtnBmp ";
LEFT GRADIENT bGradColors 2007 FONT oFont
@ 370,10 BTNBMP oBtn FILE "..\bitmaps\alphabmp\windows.bmp" SIZE 300,80 ACTION oDlg:End() PROMPT " Prueba TBtnBmp ";
LEFT GRADIENT bGradColors 2007 FONT oFont
oBtn:aBmpRect := { 0, 50, 80, 80 }
ACTIVATE DIALOG oDlg CENTERED
RELEASE FONT oFont
Return (nil)