Make a dialog window

BlitzMax Forums/BlitzMax GUI Programming/Make a dialog window

Is there a way to make a window behave like a dialog?

I am trying to make on of those windows like "RequestFile" (but for a different purpose) that take control of everything until they're closed.

Is there a way to do this in MaxGUI?

The best way to do this is to have your dialog window created with your main window as its group (in the CreateWindow() call). When you want to show your dialog window, disable your main window and your child window should then become somewhat modal.

ShowGadget( wndDialog )
DisableGadget( wndMain )
And then when you are finished, make sure to re-enable your main window again.

EnableGadget( wndMain )
HideGadget( wndDialog )
This should work as expected on Windows. Not entirely sure about Mac OS X or FLTK Linux though...

Not entirely sure about Mac OS X or FLTK Linux though...

OK - just committed a fix to SVN for MaxGUI.FLTKMaxGUI so you should get this same behaviour on Linux too.

Thank you very much, Seb.