Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

[WD20] Disable All Input on a Window (1 reply)

$
0
0
I have a popup window that serves as a loading window. It consists of a background image and a small image that contains an ajax spinner gif. If I click on this loading window too many times the ajax spinner stops animating. If I click once more Windows displays, "App is not responding".

Is there a way to disable all input so that this does not happen? I tried putting an empty super control over the top of the entire window, but this only seems to give me a few extra clicks. This window is displayed via threading code below.

PROCEDURE DisplayLoadingWindow()

ThreadExecute("ThreadLoadingWindow", threadNormal, ExecuteLoadingWindow)
ThreadWaitSignal()

PROCEDURE ExecuteLoadingWindow()

// Show Window
OpenChild(WIN_Popup_Loading)

// Wait for Signal
ThreadSendSignal(threadMain)
EventWait("CloseLoadingWindow")

// Close Window
Close(WIN_Popup_Loading)

// End Thread
ThreadEnd()

PROCEDURE CloseLoadingWindow()

EventChange("CloseLoadingWindow", eventOpen)

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>