I need things to work in this order:
Main Window (MDI)
|
Child Window (MDIChild) with TWBrowse (displays current records)
|
Select TWBrowse Record by Double Clicking (or something)
|
Dialog with Edit Screen Opens
|
From Dialog need another Window to open with a TWBrowse
|
Must be able to add, edit, and / or view the above TWBrowse
My problem is this:
So far everything is working perfectly up until 'Dialog with Edit Screen Opens'.
BUT
I know (from past experience) that when I open the new Window from the Dialog, because I am working in an MDI environment, once that Window is open I know that I can click out of that Window at any point, the focus changes to where I have clicked, and that Window remains open in the background and I cannot have this happen.
In other words, in an MDI environment, how do you open a sort of 'Modal Window' (just like a Modal Dialog) i.e. once this particular Window is open how do you stop a user from clicking anywhere else but in that Window until that Window is explicitly closed by the user (bearing in mind that you may have, at this point, about two or three other open Windows prior to even opening this Window).
I seem to remember something James wrote about a long time ago about opening a Dialog as a Window or making a Window appear as if it were a Dialog or something like that?
This would solve my problem (I think) because if a Window was opened and it behaved as if it were Modal Dialog then you would not be able to click out of it without closing it first.
I did post something like this a short while ago and received and answer from Antonio but I did try the solution and this did not work for me i.e. it would have worked if I was working in my first MDIChild Window by disabling my main MDI Window but I have at least one other MDIChild Window open at this point so I cannot use the oWndMain:Disable( ) and oWndChild:Disable( ) because at this point I already have another oWndChild open i.e. the

Phew, that was some explanation!
Help!
Dale.