[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [VGUI] how to avoid to dialog boxes?



-----Original Message-----
From: voelker.develop@t-online.de <voelker.develop@t-online.de>
To: VGUI-discussion <vgui-discuss@other.debian.org>
Date: Tuesday, March 23, 1999 1:09 PM
Subject: Re: [VGUI] how to avoid to dialog boxes?


>** Reply to note from "Nikolai V. Tkachenko" <tkatchen@butler.cc.tut.fi>
Tue, 23 Mar 1999 08:16:14 +0200
>

...
>
>That's a good idea to realize some kind of communication between the
>windows. But how could I tell the CmdWindow, that my modeless dialog has
>been closed with OK, so that a new one (who needs the results of the first
>dialog) could be opened?
>
>Doing this, the first dialog have to call the method of the CmdWindow
>after it has been closed. Or do I make a mistake?
>
>
>Mfg,  J. Desch
>--

Hi,

I am a bit confused with the logic, when dialog is closed
it is closed and cannot have any activity inside itself (even if the
class is not destroyed). So I suppose the last chance to say
?good-bye? is at a time user pressed OK button, something
like this:

...::DialogCommand(...)
{
    switch (id)
    {
    case M_OK:
        CmdWin->Goddbye();
        CloseDialog();
...

but that's before to close dialog...

Best regards, Nikolai




Reply to: