Re: re: Select box Equiv
| From: | Rich Payne | Date: | Mon, 07 Apr 2003 16:26:15 +0000 |
| Subject: | Re: re: Select box Equiv | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-3222@lists.php.net to get a copy of this message | ||
You're calling a function within your class.
So, instead of:
$list->connect('select_child', 'set_ins_data');
do this:
$list->connect('select_child', array(&$this,'set_ins_data'));
--rdp
On Mon, 7 Apr 2003, Madeleine D. wrote:
> Reposting this item, since we didn't see any responses first time around.
>
> Madeleine D.
>
> ---------------------------------
>
>
> Still no luck on using the combo box to select and populate data.
>
> >Yes, the combo is the equivalent.
> >You have tho connect the "changed" (or similar, don't have a manual here)
> >signal to your function to change the other widgets.
> >
>
> I set up the function against the 'select_child' signal to read our MySQL
> data with 'set_text' to populate the fields.
>
> But, if we put the function in the same file as the Combobox, it says it
> can't find the function ('Unable to call signal callback'). If we put it
> in another 'main functions' file, it can't find the fields. We get a 'Call
> to member function on a non-object' at the first field reference.
>
> Sorry, but I can't see what's happening here.
>
> thanks in advance.
>
> Madeleine D.
>
Rich Payne
http://talisman.mv.com
rdp at talisman dot mv dot com