I would like to open a specific folder ON INIT .. in this example I have 3 folders and I want to have the second folder open and be in focus ON INIT. This code does not seem to work.
Rick Lipkin
- Code: Select all Expand view
ACTIVATE DIALOG oSchA NOWAIT ;
ON INIT ( _XbrGoToCol( oLbxA, 2),_XbrGoToCol( oLbxB, 2),_XbrGoToCol( oLbxC, 2),;
IF( (xSUPER = 'Y'.or. xMGR = 'Y' .or. xADMIN = 'Y' .or. xDispatch = "Y"), ,oBTN7:HIDE() )) ; // change motorpool hide
VALID(!GETKEYSTATE( 27 ))
ACTIVATE WINDOW oWNDCHILD ;
ON INIT ( oSchA:Move( 0,0, oWndChildA:nWidth, oWndChildA:nHeight, .T. ), ;
oWndChildA:bResized := {|| _ReSizeUm( oSchA,oWndChildA,oLbxA,oFld ) }, ;
oFld:aDialogs[2]:SetFocus()); // <---- HERE
VALID ( IIF( !lOK, _CloseRes(.T.,oFontB, oFontB1, oRsPdisp, oLbxA, @lOk ),.F. ))