Hello,

I have a problem that is driving me crazy, maybe someone here knows how to fix
it.  I know that VTCL works correctly, so it must be something I am doing
wrong.  

I have several windows in my application which pop up after some user action
(just the way the Windows in VTCL operate).  When the user exits these windows
(such as with an OK button), the window below it becomes active and pops to the
top of the stack.  Here is an example:

            -----------------------
            | Background window   |
            |   ---------------   |
            |   |  My Main app|   |
            |   ---------------   |
            |                     |
            |       --------      |
            |       |  OK  |      |
            |       --------      |
            |                     |
            |                     |
            |                     |
            -----------------------

When the user presses the OK button, the background window pops to the top,
obscuring my application.  It's very annoying.  It seems to happen because the
background window takes the focus.  I notice that in VTCL, the main toolbar
window takes the focus when a subwindow is destroyed.  BTW, I am using the
"Window hide" command to destroy my windows.  

Does anyone have a solution for this problem?  I would be very grateful for any
help.

Thanks,
Brian Huggins
[EMAIL PROTECTED]

Reply via email to