WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Dialog Editor version 6.X
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Dynamic dialogs and BoxOpen Issue


Question:

Create a script with a dynamic dialog. The dialog has several buttons on it that result in different actions being performed. The event handler for the button click marks the dialog as busy and does a gosub to perform the button's action. After control is returned from the gosub routine, the dialog's state is marked as not busy and then returns a -2 value to keep the dialog open.

While the gosub routine is executing, it calls BoxOpen() to display a status window. This window appears *behind* the disabled dialog, and it also has focus. Clicking on the open window doesn't change it's Z-order or it's focus, but it can be dragged out from under the busy dialog and moved elsewhere to be able to view it.

Is there any way to make the dynamic dialog such that it doesn't stay in the foreground over top of the window created by BoxOpen()?

Answer:

Nope. The BoxOpen box *is* the Winbatch main window. The dialog will always appear on top of it. So, i recommend using the BoxOpen window as the background. You can have a dialog within a dialog, so you can make a new dialog to display the stuff that you might want in front.
Article ID:   W17768
Filename:   Dynamic dialogs and BoxOpen Issue.txt
File Created: 2008:11:25:12:32:32
Last Updated: 2008:11:25:12:32:32