Testing with the source from xbrdbu.prg , i create a window (file2Brw).
In the source there is created one control : the browse.
I add some controls (10 controls are created) , control 3 to 9 are disabled (and hidden)
The second control becomes focus and can be edited , but the focus can not be moved.
Looking in the source from windows.prg i find for METHOD GoNextCtrl( hCtrl ) CLASS TWindow :
- Code: Select all Expand view
if Upper( ::ClassName() ) != "TDIALOG"
nAt = AScan( ::aControls, { | o |o:hWnd == hCtrl } )
if nAt != 0
if nAt < Len( ::aControls )
SetFocus( ::aControls[ nAt + 1 ]:hWnd )
else
SetFocus( ::aControls[ 1 ]:hWnd )
endif
return nil
endif
endif
This can not work , it finds the third control which is disabled
When i eliminate this code (IF .F.) , then it works.
What is this code in the current versions from FWH ?
Frank Demont