How to make 2nd window wait for user input.
Posted: Mon Jun 01, 2009 8:27 am
Hi,
I have 2 windows, FrmA (which contains a tsbrowse object) and FrmB (which contains another tsbrowse object) both defined in the init phase of the program. While FrmA is active, FrmB needs to active based on user inputs on FrmA. Basically FrmB shows a tsbrowse of another database for selection, the recno() of that database is then passed by FrmB to FrmA . Much like a help function.
When the program executes for the first time, based on user input in FrmA, the control branches to FrmB, the program checks if FrmB is active, if not FrmB is activated, it waits for the user input and returns control to FrmA, but when FrmB is called again from FrmA, the second time onwards, the problem starts, the window FrmB is “showed”, but it does not wait for any user input.
What command will make the FrmB wait for a user input, which is basically a selection from the tsbrowse shown in the FrmB. I have already tried setfocus but FrmB does not wait for the user input.
I do not want to create FrmB again and again (Activate, Release, Activate cycle) each time help is required, hence I need to hide the window FrmB only to be popped up when the user requires help.
Any help will be appreciated.
Warm regards,
Jayadev.
I have 2 windows, FrmA (which contains a tsbrowse object) and FrmB (which contains another tsbrowse object) both defined in the init phase of the program. While FrmA is active, FrmB needs to active based on user inputs on FrmA. Basically FrmB shows a tsbrowse of another database for selection, the recno() of that database is then passed by FrmB to FrmA . Much like a help function.
When the program executes for the first time, based on user input in FrmA, the control branches to FrmB, the program checks if FrmB is active, if not FrmB is activated, it waits for the user input and returns control to FrmA, but when FrmB is called again from FrmA, the second time onwards, the problem starts, the window FrmB is “showed”, but it does not wait for any user input.
What command will make the FrmB wait for a user input, which is basically a selection from the tsbrowse shown in the FrmB. I have already tried setfocus but FrmB does not wait for the user input.
I do not want to create FrmB again and again (Activate, Release, Activate cycle) each time help is required, hence I need to hide the window FrmB only to be popped up when the user requires help.
Any help will be appreciated.
Warm regards,
Jayadev.