Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / BlueGUI - setGadgetEnabled

Author
Message
Robbie
18
Years of Service
User Offline
Joined: 21st May 2006
Location:
Posted: 30th May 2007 16:29
I'm using setGadgetEnabled to disable windows when a dialog/window is open, and I want the windows that are disabled to stop receiving events. Is this possible? I know I can check to see if the window is open before allowing the events to be checked for, but this gets a little messy with a lot of windows.
MSon
20
Years of Service
User Offline
Joined: 13th Jul 2004
Location: Earth, (I Think).
Posted: 1st Jun 2007 12:15 Edited at: 1st Jun 2007 12:31
I never disable the window, I just use SetGadgetVisible Gadget,Num to hide it

Then I write a function to control it
IE: If GadgetVisible(FavWin) = 1 Then UpdateFavWin()

Everyone Be Cool, You Be Cool.
Xolatron
18
Years of Service
User Offline
Joined: 12th Mar 2006
Location: The Star Forge Language: DBpro
Posted: 9th Jun 2007 18:30
Or if you still want the gadgets visible, but greyed out, try putting an all-inclusive if-statement after your getEvent call:



That's only one if statement, and it will make sure that your program only acts on events from enabled gadgets.

-Xol

Login to post a reply

Server time is: 2024-11-22 21:12:37
Your offset time is: 2024-11-22 21:12:37