// testget3.prg Model.
#include "fivewin.ch"
function main()
FromCode()
//FromrES()
return Nil
Function FromCode()
local oDlg
local oGet1, oGet2, oGet3, oGet4
local cVar1, cVar2, cVar3, cVar4, oHand
local lActive := .f.
cVar1 := 0
cVar2 := 0
cVar3 := 0
cVar4 := 0
DEFINE CURSOR oHand HAND
define dialog oDlg title "From Code" pixel size 300,300
Set( _SET_INSERT, ! Set( _SET_INSERT ) )
@ 10,10 get oGet1 var cVar1 bitmap "..\bitmaps\on.bmp" ;
action( msginfo( "With Transparent" ) ) of oDlg pixel size 60,12 ;
CURSOR oHand
@ 40,10 get oGet2 var cVar2 bitmap "..\bitmaps\on.bmp" ;
action( msginfo( "Without Transparent" ) ) of oDlg pixel size 60,12 ;
CURSOR oHand
@ 70,10 get oGet3 var cVar3 bitmap "..\bitmaps\chkyes.bmp" ;
action( msginfo( "With Adjust-Transparent" ) ) of oDlg pixel size 120,12 ;
CURSOR oHand
@ 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 ;
CURSOR oHand
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
Set( _SET_INSERT, ! Set( _SET_INSERT ) )
return nil
Function FromRes()
local oDlg
local oGet1, oGet2, oGet3, oGet4
local cVar1, cVar2, cVar3, cVar4, oHand
local lActive := .f.
cVar1 := 0
cVar2 := 0
cVar3 := 0
cVar4 := 0
DEFINE CURSOR oHand RESOURCE "Dedo"
define dialog oDlg resource "fromres"
Set( _SET_INSERT, ! Set( _SET_INSERT ) )
redefine get oGet1 var cVar1 id 100 bitmap "on" ;
action( msginfo( "With Transparent" ) ) of oDlg ;
CURSOR oHand
redefine get oGet2 var cVar2 id 101 bitmap "on" ;
action( msginfo( "Without Transparent" ) ) of oDlg ;
CURSOR oHand
redefine get oGet3 var cVar3 id 102 bitmap "chkyes" ;
action( msginfo( "With Adjust-Transparent" ) ) ;
COLOR CLR_BLACK, CLR_CYAN of oDlg ;
CURSOR oHand
redefine get oGet4 var cVar4 id 103 bitmap "chkyes" ;
action( if( lActive,oGet3:disable(),oGet3:enable()), ;
lActive:= !lActive, oDlg:update() ) of oDlg ;
CURSOR oHand
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
Set( _SET_INSERT, ! Set( _SET_INSERT ) )
return nil