Folder and Focus

Folder and Focus

Postby Jack » Tue Aug 04, 2009 2:38 pm

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
Jack
 
Posts: 288
Joined: Wed Jul 11, 2007 11:06 am

Re: Folder and Focus

Postby ukoenig » Tue Aug 04, 2009 3:46 pm

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 :lol:
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Folder and Focus

Postby Jack » Tue Aug 04, 2009 9:05 pm

Thanks,
i will try it .
Jack
 
Posts: 288
Joined: Wed Jul 11, 2007 11:06 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 97 guests