tget class:
1.METHOD Spinner( bUp, bDown, bMin, bMax ) CLASS TGet
::oVScroll:bGoUp := {|| If( GetFocus() != ::hWnd, ::SetFocus(),),;
Eval( bUp ),::refresh() }
::oVScroll:bGoDown := {|| If( GetFocus() != ::hWnd, ::SetFocus(),),;
Eval( bDown ),::refresh() }
should replace as:
::oVScroll:bGoUp := {|| If( GetFocus() != ::hWnd, ::SetFocus(),),;
Eval( bUp ),::refresh() }
::oVScroll:bGoDown := {|| If( GetFocus() != ::hWnd, ::SetFocus(),),;
Eval( bDown ),::refresh() }
to force bup, bdown work.
redefine myvar id 101 of odlg spinner on up (myvar++) on down (myvar --)
If variable is date type without define bup nor bdown,it always ++ -- year not to day .
-
method move()
should add
IF ::oBtn != Nil
::oBtn:Move( 0, ::nWidth() - ::nHeight() - If( ::lSpinner, 20, 0 ),::nHeight() - 4,::nHeight() - 4 )
endif
-
method createbutton ()
ACTION (EVAL( oThis:bAction, oThis ), oThis:SetFocus()) ;
should replaced with
local bwhen := ::bwhen
ACTION (if(empty(bwhen).or.EVAL(bwhen), (EVAL( oThis:bAction, oThis ), oThis:SetFocus()),) ) ;
- method keychar()
nKey = Asc( CharUpper( nKey ) )
This changes Chinese word code , should return to pre version
nKey = Asc( UPPER( Chr( nKey )) )
Shuming Wang