Window.GetActive and Window.SetActive
Author |
Message |
awesomej01
|
Posted: Sat May 22, 2004 9:52 pm Post subject: Window.GetActive and Window.SetActive |
|
|
For my program, I got this problem that whenever I pressed my mousebuttons even when my run window is not open, my program would still execute. I was wondering is Window.GetActive or Window.SetActive the commands to fix this problem. If yes, if anyone don't mind would you please give me an example of how these commands works in a program because the help menu in turing 4.04 didn't have an example.
Thanks. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Tony
|
Posted: Sat May 22, 2004 11:47 pm Post subject: (No subject) |
|
|
Window.GetActive returns the value that represents which window is the active one. I think it returns winID if you use Window.Open command in the code, -1 by default. If the window is not active, it returns -5
So if you want to disable to mouse events when the window is not active, check for not= -5 |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
|
|