#include "fivewin.ch"
#include "ribbon.ch"
function main()
local oWnd
local oBtn, oBtn2
define window oWnd color nil, nrgb(199,213,239)
@ 15,5 btnbmp oBtn of oWnd size 65, 65 file "btnw.bmp", NIL, NIL, "btng.bmp" 2007 NOBORDER pixel;
action msginfo( "ACTION" )
oBtn:bClrGrad := { | lInvert | If( lInvert, ;
{ { 1, nRGB( 199,213,239 ), nRGB( 199,213,239 ) }, ;
}, ;
{ { 1, nRGB( 199,213,239 ), nRGB( 199,213,239 ) } ;
} ) }
oBtn:lBoxSelect = .f.
@ 15, 100 RBBTN oBtn2 of oWnd size 65, 65 transparent bitmap "btng.bmp" CENTER;
action msginfo( "ACTION" )
oBtn2:bClrGradNormal := { | lPressed | if ( lPressed,;
{ { 1, nRGB( 199,213,239 ), nRGB( 199,213,239 ) }, ;
}, ;
{ { 1, nRGB( 199,213,239 ), nRGB( 199,213,239 ) } ;
} ) }
activate window oWnd
return nil
REDEFINE SBUTTON oBtn ID 101 OF oDlg RESOURCE "Boton","Boton2",,"Boton2","Boton1" PROMPT Menue->Item ACTION MsgInfo("Accion");
COLOR {|oBtn| If(oBtn:lPressed,CLR_GREEN,If(oBtn:lMouseOver,(MuestraImagen(),CLR_HBLUE),CLR_BLACK))}
REDEFINE BTNBMP [<oBtn>] ;
[ ID <nId> ] ;
[ <bar: OF, BUTTONBAR > <oBar> ] ;
[ <resource: NAME, RESNAME, RESOURCE> <cResName1> ;
[,<cResName2>[,<cResName3>][,<cResName4>] ] ] ;
[ <file: FILE, FILENAME, DISK> <cBmpFile1> ;
[,<cBmpFile2>[,<cBmpFile3>[,<cBmpFile4>] ] ] ] ;
[ <action:ACTION,EXEC,ON CLICK> <uAction,...> ] ;
[ MESSAGE <cMsg> ] ;
[ <adjust: ADJUST > ] ;
[ WHEN <uWhen> ] ;
[ <lUpdate: UPDATE> ] ;
[ TOOLTIP <cToolTip> ] ;
[ PROMPT <cPrompt> ] ;
[ FONT <oFont> ] ;
[ <lNoBorder: NOBORDER> ] ;
[ <layout: CENTER, TOP, LEFT, BOTTOM, RIGHT> ] ;
[ <l2007: 2007> ] ;
[ <lTrans: TRANSPARENT> ] ;
New FTDN March/Marzo 2009 (9.03) wrote:* Nuevo: Nuevas DATAs en la clase TBTNBMP, para permitir una cuarta imagen, que se mostrará cuando el puntero del ratón
esté sobre el botón. Los comandos de TBTNBMP han sido mejorados para soportar esta cuarta imagen.
[ <resource: NAME, RESNAME, RESOURCE> <cResName1> ;
[,<cResName2>[,<cResName3>][,<cResName4>] ] ] ;
REDEFINE BTNBMP oBtn ID 101 OF oDlg RESNAME "Boton","Boton1","Boton2" PROMPT Menue->Item ACTION funcion() NOBORDER 2007
REDEFINE BTNBMP oBtn ID 101 OF oDlg RESNAME "Boton1",NIL,NIL,"Boton2" PROMPT Menue->Item ACTION Funcion() CENTER
acuellar wrote:
- Code: Select all Expand view RUN
REDEFINE BTNBMP oBtn ID 101 OF oDlg RESNAME "Boton1",NIL,NIL,"Boton2" PROMPT Menue->Item ACTION Funcion() CENTER
REDEFINE BTNBMP oBtn ID 101 OF oDlg RESNAME "Boton1", "", "","Boton2" PROMPT Menue->Item ACTION Funcion() CENTER
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: No registered users and 100 guests