Re: Managing Dialogs - Newbie Needs Guidence!
| From: | Rich Payne | Date: | Thu, 18 Jul 2002 15:21:29 +0000 |
| Subject: | Re: Managing Dialogs - Newbie Needs Guidence! | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-2265@lists.php.net to get a copy of this message | ||
On Thu, 18 Jul 2002, Mark Lopus wrote:
[snip, explination of what Mark wants to do]
> 5) BUT!!!!!.....if all the login info is correct, I want the do_login
> function to:
>
> a) set the GLOBAL variables $userisloggedin to "YES" and $usersfirstname to
> "Joe" (as per the query result.) This seems to work.
OK.
> b) CLOSE the login_dialog dialog returning the user to the main application
> window with the global variables set. But I can't seem to close the
> login_dialog without shutting the whole applciation down.
just destroy the dialog itself.
something like...
if (login_good) {
$userislogged = TRUE;
$usersfirstname = "Joe"; // or whatever
$dialog->destroy(); // or if this function is in the dialog,
$this->destroy()
}
> How do we handle closing the login_dialog without killing the main
> applciation? Do I need to unrealize somthing? Am I misusing my close_window
> function?
Can you post the close_window function? Are you using nested gtk::main()
calls (one in the main app, one in the dialog)?
> Sorry if this is not a clear question...Any examples, insight or conceptual
> pointers are greatly appreciated!
Usually the best thing is to post your snippets of code.3
--rdp
--
Rich Payne
http://talisman.mv.com