METHOD GoNextCtrl( hCtrl ) CLASS TWindow
local hCtlNext
if ! Empty( ::aControls ) .and. hCtrl == ::LastActiveCtrl():hWnd .and. ;
! Empty( ::oWnd ) .and. ( ( Upper( ::oWnd:ClassName() ) $ "TFOLDER;TPAGES;TFOLDEREX" ) )
hCtlNext = NextDlgTab( ::oWnd:oWnd:hWnd, ::oWnd:hWnd )
else
hCtlNext = NextDlgTab( ::hWnd, hCtrl )
endif
::hCtlFocus = hCtrl
SetFocus( hCtlNext )
return nil
byte-one wrote:Antonio, its better!! But when the focus is on a control from tfolderex and i press TAB, the next control is outside the actual tfolderex-dialog. This is also in previsious direction.
Also a NOWAIT-Problem??
METHOD GetDlgCode( nLastKey ) CLASS TGet
if Len( ::oWnd:aControls ) == 1
return DLGC_WANTALLKEYS
endif
::oWnd:nLastKey = nLastKey
if ::oWnd:IsKindOf( 'TXBROWSE' )
return DLGC_WANTALLKEYS
else
if ::oWnd:oWnd != NIL .and. ::oWnd:oWnd:ClassName() $ "TFOLDER;TFOLDEREX"
return DLGC_WANTALLKEYS
endif
endif
return nil
#include "FiveWin.ch"
function Main()
local oDlg, oGet, cTest := "Hello world", cAnother := "Another GET"
DEFINE DIALOG oDlg SIZE 400, 300
@ 3, 5 FOLDEREX oFld PIXEL ;
PROMPT "&One", "&Two", "&Three" ;
SIZE 190, 120
@ 1, 1 GET oGet VAR cTest OF oFld:aDialogs[ 1 ]
@ 2, 1 GET cAnother OF oFld:aDialogs[ 1 ]
@ 7.2, 14 BUTTON "Ok"
ACTIVATE DIALOG oDlg CENTERED ;
ON INIT ( oGet:SetFocus(), .F. )
return nil
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 41 guests