Lookout doesn't directly implement what you are trying to do -- modal dialog
boxes.
However, you can get the same results by doing the following: create a Pushbutton
say, PbInvisible, on your main panel such that it is transparent, has no
label, and is big enough to cover the entire Panel. Make sure you bring
this invisible pushbutton "to the front."
Let's say your "modal" Popup panel is called Popup1.
Now, in the Edit connections for the invisible pushbutton, make the following
connection:
PbInvisible.visible = Popup1.visible
So now, under normal operation (without the Popup panel displayed), the PbInvisible
will be invisible and the user has access to all the controls on the main
panel. However, as soon as the Popup1 panel becomes visible, the PbInvisible
bu
tton will become "visible" (but since it's transparent, you won't see it!).
This invisible button will now shield all the controls on the main panel
from the user!
If you have more than one popup panels, then just OR their visible datamembers
in the above connection.
You can go further and have your "bong" by connecting this PbInvisible to
the PlayWav Object. Use the desired wav file from your Windows.
Khalid 🙂
-----------------------------------
"Loren Hunt" wrote:
I have a maximized Normal panel operating with 300 buttons. Occasionally
I active a small Popup panel which leaves many buttons on the large Normal
panel still visible. I want to disallow the access to these buttons until
the Popup panel is gone. (Similar to the "Verify On =" of the Pushbutton
properties).
In MSWindows one would of course hear a "Bong" in such situations.