Hide Gadget on load

BlitzPlus Forums/BlitzPlus Programming/Hide Gadget on load

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi,
I have an application which at current uses two windows. One for the main app, the second for an options window. The options window is style 17.

When the app loads I load the two windows so it doesn't come up with Invalid gadget errors later.

The problem is despite putting HideGadget optwin directly below the line creating the options window it still is shown upon loading the application and is quite irritating.

How can I hide the gadget prior to making it, or make it never come up. I'd even settle with covering it up. But I can't find any solution.

Any help appreciated!

Thanks,
Matt