Has 'insert' not been implemented for Clist
| From: | Martin Cameron | Date: | Mon, 26 Mar 2001 03:01:05 +0000 |
| Subject: | Has 'insert' not been implemented for Clist | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-1119@lists.php.net to get a copy of this message | ||
Has the 'insert' method not been implemented yet for the Clist
function. The description in the defs file is:
(method insert
(object (of-object CList (Gtk))
(c-name gtk_clist_insert)
(return-type gint)
(parameter (type-and-name gint row))
(parameter (type-and-name gchar*[] text))
)
but when I try this:
$list->insert(-1,$text_array);
I get this:
<b>Fatal error</b>: Call to undefined function: insert() in
<b>test_pane.php</b> on line <b>37</b><br>
BTW, I'm still getting no joy from this list as to why I can't pass text
from an entry box to a Clist box , yet get the data appeariing in the
console widow.
For anyone who thinks they know the answer, they will receive my eternal
gratitude and probably a healthy wealthy life in the hereafter.
The problem is as follows:
I'm still haviing trouble with this application. Attached is a
cut-down version of the file which
produces a paned dialog box of the form at
http://casablanca.thenet.co.nz/select.html
I've done all that you've suggested, but still can't get the
"entry" variable - username - to update the
"list" pane. The confusing thing is that when I enter a new
variable username into the "entry" box, the
output is correctly posted to the console, but not the "list"
box, which tells me that the updated
username variable is being parsed by the create_list()
function. Why is it not being changed in the
$labeltext variable.
I know that there will be some simple explanation for this,
but its exasperating to say the least. I
also believe that this functionality will open a lot of doors
for a lot of people and I was intending to
post a complete mini-tutorial on how to do this for complete
beginners, something that I think is needed
by the php-gtk development at the moment.
Regards
Martin Cameron