Re: Gtk-CRITICAL gtkbin.c: line 217
| From: | rdp at talisman dot mv dot com | Date: | Fri, 14 Jun 2002 14:10:09 +0000 |
| Subject: | Re: Gtk-CRITICAL gtkbin.c: line 217 | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-2126@lists.php.net to get a copy of this message | ||
On 14 Jun 2002, Miles Phillips wrote:
> Rich,
> That is the issue that's confusing me. $box isn't global, but the
> window is still treating it like it's there when I return to the
> function.
Right, just because you don't have a reference to it doesn't mean it no
longer exists. In fact you should be able to access the box via
$wdwMatch->child in the functions.
> This is an overview of the program. This is a reservations
> program. Our reservations staff uses it to take reservations. We
> purchase lists
Don't tell me your a spammer.....
> and mail to them invitations. This specific part is that
> if we don't have a matching phone number in our database for the person
> that reserves, this window comes up and shows every possible match for
> that person reserving. It is only called when we don't have a phone
> number match. So after it's used every time I hide the window. The
> window is the only global part. I assumed since the rest weren't
> global, they would drop out when the window is hidden?
No, they still exists and are present.
> If I declare the box globally, then destroy it, I can't create it again
> and have it still have the global scope.
Sure you can. If you have a global variable ($box) that on the first pass
creates this box, you can then destroy it, rebuild it etc... all you want.
Provided you declare $box to be global in every function.
> It either has to be removed
> and recreated, or I have to be able to reset the widgets inside it.
> I could declare every widget globally except for the gtkTable, because
> that varies in size depending on how many possibilities there are. So
> if I did everything but the table, the insert on the scrolled window
> would have the can't insert wouldn't it?
I don't understand what you mean by "reset the widgets inside it". Why
can't you just hide this box? (think I'm missing something here).
> Many thanks for all the ideas,
--rdp
--
Rich Payne
http://talisman.mv.com