Usando @,
#include "fivewin.ch"
FUNCTION Main()
local oDlg, oFont
local oGet1, oGet2, oGet3, oGet4
local cVar1, cVar2, cVar3, cVar4
local lActive := .f.
cVar1 := 0
cVar2 := 0
cVar3 := 10
cVar4 := 0
DEFINE FONT oFont NAME "Ms Sans Serif" SIZE 00, - 14 BOLD
DEFINE DIALOG oDlg FROM 05,10 TO 25, 50 ;
TITLE oemtoansi("desabilitar el aspa de Dialogo") ;
FONT oFont ;
STYLE nOr( DS_MODALFRAME, WS_POPUP, WS_CAPTION)
@10, 10 GET oGet1 VAR cVar1 OF odlg picture "999,999,999" RIGHT ;
SIZE 60,12 PIXEL UPDATE ;
VALID Eval ( { || IF (cVar1 = 0, (cVar2:=cVar2), .F. ), ;
(cVar2,( cVar2:=cVar1*cVar3), oGET2:Refresh(), .T. ) } )
@ 40,10 get oGet2 var cVar2 bitmap "..\bitmaps\on.bmp" action( msginfo( "Without Transparent" ) ) of oDlg pixel size 60,12
@ 70,10 get oGet3 var cVar3 bitmap "..\bitmaps\chkyes.bmp" ;
action( msginfo( "With Adjust-Transparent" ) ) of oDlg pixel size 120,12
@ 100,10 get oGet4 var cVar4 bitmap "..\bitmaps\chkyes.bmp" ;
action( if( lActive,oGet3:disable(),oGet3:enable()), ;
lActive:= !lActive, oDlg:update() ) of oDlg pixel size 120,12
oGet1:lBtnTransparent := .t. // transparent button get oGet1
oGet3:disable()
oGet3:lBtnTransparent := .t. // transparent button get oGet3
oGet3:lAdjustBtn := .t. // Button Get Adjust Witdh oGet3
oGet3:lDisColors := .f. // Deactive disable color
oGet3:nClrTextDis := CLR_WHITE // Color text disable status
oGet3:nClrPaneDis := CLR_BLUE // Color Pane disable status
oGet4:lAdjustBtn := .t.
activate dialog oDlg centered
oFont:End()
return nil