Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread "Close all modal windows"
Fri, Sep 18 2015 10:54 AMPermanent Link

Matthew Jones

Is there a way to have a timer call something to close all modal
windows, regardless of how or where it came from etc?

I'd like to close windows if the connection to the server is lost.

--

Matthew Jones
Fri, Sep 18 2015 11:11 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< Is there a way to have a timer call something to close all modal windows, regardless of how or where it came from etc? >>

Sure, just use this property:

http://www.elevatesoft.com/manual?action=viewprop&id=ewb2&comp=TSurface&prop=ActiveForm

If the active form is a TDialogControl (use "is" operator) and isn't one of yours (Name=''), then it's a modal form that you can close.

Tim Young
Elevate Software
www.elevatesoft.com
Image