IonicWind Software

Aurora Compiler => GUI => Topic started by: Mike Stefanik on March 03, 2006, 03:01:46 PM

Title: DoModal
Post by: Mike Stefanik on March 03, 2006, 03:01:46 PM
I noticed that DoModal doesn't actually make the dialog modal (you can still interact with the parent window, close it, etc.) Is there something that needs to be done in addition to calling DoModal, or is this a bug?
Title: Re: DoModal
Post by: Bruce Peaslee on March 03, 2006, 03:36:42 PM
There is a field in the create function where you indicate the dialog's parent window. Then it will be modal.
Title: Re: DoModal
Post by: Ionic Wind Support Team on March 03, 2006, 03:49:02 PM
The parent window has to exist before you call CDialog::Create or the handle to the parent doesn't get set.  Not a bug per se, just the way it worked in Pro too.

Since we are using classes now I can actually change that behavior so a pointer to the parent class gets saved instead.  That way the parent window doesn't actually have to be opened before using CDialog::Create
Title: Re: DoModal
Post by: Ionic Wind Support Team on March 03, 2006, 04:14:43 PM
Done.  Makes more sense this way now too.