Re: GtkText

From: Date: Mon, 05 Mar 2001 21:19:02 +0000
Subject: Re: GtkText
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-335@lists.php.net to get a copy of this message
Hi All, I use this: $query_window = &new GtkScrolledWindow($adjustment1, $adjustment2); $query_window->set_policy(GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); $box_query->pack_start($query_window, TRUE, TRUE, 0); $query = &new GtkText($adjustment3, $adjustment4); $query->set_editable(TRUE); $query_window->add($query); This writes some content: $query->freeze(); $position = 0; $query->insert_text($strQuery, strlen($strQuery), $position); $query->thaw(); This deletes the content: $query->freeze(); $query->delete_text(0, $query->get_length()); $query->thaw(); And that works for me. - Frank > Does anyone have a working, or non-working, demostration of text fields > that are editable? I'm still trying to figure this one out. I want to > be able to create a username/password login window that when someone > clicks on ok will be able to read in the values the user typed and log > them in. If anyone can help I would appreciate it. > > Thanks, > > Ed Mclain > > -- > PHP GTK Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-gtk-unsubscribe@lists.php.net > For additional commands, e-mail: php-gtk-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > >

« previous php.gtk (#335) next »