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 - SetGadgetVisible

Author
Message
Graphiboc
18
Years of Service
User Offline
Joined: 16th Jun 2006
Location:
Posted: 21st Jun 2007 18:11
Hello everyone.
Sometimes, when i use the command "SetGadegtVisible" to hide a window, the main DBPro window is minimized
Does somebody why the main window is minimized and how to stop that?
thanks

Sry for mybad english
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 2nd Jul 2007 23:26 Edited at: 2nd Jul 2007 23:27
I don't have that problem, so I kinda think it's a programming error.

Try searching for the command "Minimize window", or "minimizeWindow" (command used by a DLL I have)

Else, try checking your handles if everything is correctly stored. 0 is the handle of the main window, so if you use non-globals in functions, you could have referred to the main window. Also a typo could have made you referring to a handle of 0.

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Xolatron
18
Years of Service
User Offline
Joined: 12th Mar 2006
Location: The Star Forge Language: DBpro
Posted: 3rd Jul 2007 03:55
Sven B's right. Make sure you have all your gadget names as globals, so that they keep their values when called inside functions:



Try using the command 'main=createGadgetFromWindow(mainWindow())' to have BlueGUI recognize the main window as a regular gadget. This could help locate the problem.

If you post some code other people could look at it.

-Xol

P.S. Sven B, you live in Belgium? That's awesome - I used to live there .

Sam 93
17
Years of Service
User Offline
Joined: 4th Jul 2007
Location:
Posted: 4th Jul 2007 20:07
That used to always happen to me, but then I realized that I had some non-globals like Sven B was saying.

This is my signature...I guess

Login to post a reply

Server time is: 2024-11-22 21:38:13
Your offset time is: 2024-11-22 21:38:13