Re: [PHP-GTK] New to GTK
[email protected] ("Steph")
| Newsgroups | php.gtk |
|---|---|
| Message-ID | <00f301c11b69$51e0fd60$364101d5@t2r1o8> |
errors I'm getting are as follows (with error messaging fully on following hefty advice from above ;) <br> <b>Warning</b>: Undefined offset: 1 in <b>C:\php4\dev\loll2.php</b> on line <b >5</b><br> <br> <b>Warning</b>: Undefined offset: 2 in <b>C:\php4\dev\loll2.php</b> on line <b >6</b><br> <br> <b>Warning</b>: Use of undefined constant username - assumed 'username' in <b>C :\php4\dev\loll2.php</b> on line <b>64</b><br> <br> <b>Warning</b>: Use of undefined constant password - assumed 'password' in <b>C :\php4\dev\loll2.php</b> on line <b>65</b><br> <br> <b>Warning</b>: Use of undefined constant host - assumed 'host' in <b>C:\php4\d ev\loll2.php</b> on line <b>66</b><br> debug:::<br> <b>Fatal error</b>: Call to a member function on a non-object in <b>C:\php4\dev \loll2.php</b> on line <b>32</b><br> C:\php4\dev\loll2.php has been running - those first few are stuff you'll know about. I've just worked out what you're trying to do, cos it actually works apart from the fatal error in the middle..! Take a look at the dialog widget attached - it descends from (aka has the properties belonging to) GtkWindow. I think yr code doesn't like the window you have because it's created in a function other than main() - correct me if I'm wrong anyone please - I'd kind of expected it to be created in main() and the vboxes to be in the functions, but dialog's probably a better solution anyway given that that's what it's intended for. It consists of a window containing a GtkVBox (aka $dialog->vbox;) and a GtkHBox (aka $dialog->action_area;) so you can put anything you like into it, or remove or hide one or the other. Sorry I didn't catch on to what you were planning sooner. ----- Original Message ----- From: loll To: [email protected] Sent: Thursday, August 02, 2001 3:44 PM Subject: Re: [PHP-GTK] New to GTK Attached is the program code :) thanks agian, Loll