Hello,
I have a dialog with FOLDER (and 10 dialogs)
In 2 of the folders, i have a browse .
I want to open the dbf files in the folders when it receive the focus and close the it lost the focus .
How to handle this ?
DEFINE DIALOG Odlg NAME "TEST"
REDEFINE FOLDER oFld ID 100 of oDlg ;
PROMPS "Dlg1","Dlg2" ...
DIALOG "D1","D2","D3" ....
REDEFINE LISTBOX ID 200 .... of oFld:aDialogs[2]
ACTIVATE DIALOG oDlg
Folder and Focus
Re: Folder and Focus
Hello Jack,
please have a look at \samples\Testfb.prg
how to control a Browser inside Folders.
REDEFINE FOLDER oFld1 ID 110 OF oDlg ;
PROMPT "&Page1", "P&age2" ;
DIALOGS "Sub1", "Sub2" ;
ON CHANGE( Testbrowse( nOption, nOldOption ) )
//----------------------------------------------------------------------------//
static function Testbrowse( nOption, nOldOption )
if nOption == 1 // in Page 1 we open the Database
// Open Your DBF
endif
if nOldOption = 1 // We leave Page 1
// DBF is open
// we close
endif
return .t.
Best Regards
Uwe![Laughing :lol:](./images/smilies/icon_lol.gif)
please have a look at \samples\Testfb.prg
how to control a Browser inside Folders.
REDEFINE FOLDER oFld1 ID 110 OF oDlg ;
PROMPT "&Page1", "P&age2" ;
DIALOGS "Sub1", "Sub2" ;
ON CHANGE( Testbrowse( nOption, nOldOption ) )
//----------------------------------------------------------------------------//
static function Testbrowse( nOption, nOldOption )
if nOption == 1 // in Page 1 we open the Database
// Open Your DBF
endif
if nOldOption = 1 // We leave Page 1
// DBF is open
// we close
endif
return .t.
Best Regards
Uwe
![Laughing :lol:](./images/smilies/icon_lol.gif)
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
i work with FW.
If you have any questions about special functions, maybe i can help.