Then maybe these methods should be something like this?
Code: Select all
METHOD Hide() INLINE ::lVisibile:=.F., ShowWindow( ::hWnd, SW_HIDE )
METHOD Show() INLINE ::lVisible:=.T., ShowWindow( ::hWnd, SW_SHOWNA )
James
Code: Select all
METHOD Hide() INLINE ::lVisibile:=.F., ShowWindow( ::hWnd, SW_HIDE )
METHOD Show() INLINE ::lVisible:=.T., ShowWindow( ::hWnd, SW_SHOWNA )
Antonio Linares wrote:James,
Actually DATA lVisible just stores the visible status but it does not perform any action if we change it, in example if we do oControl:lVisible := .F. then the control will not be hidden.
such functionality can be done using Methods Hide() and Show().
Ich benutze Heute das.ukoenig wrote:You can Hide a Control on Dialog-Init :
ACTIVATE DIALOG oDlg CENTERED ;
ON INIT ( GradBrush( oDlg, { { 0.50, 16314573, 14853684 }, ;
{ 0.50, 14853684, 16314573 } }, .T. ), ;
oSay1:Hide() ) ;