Fw: [PHP-GTK] entry->select_region

From: Date: Fri, 14 Jun 2002 08:37:56 +0000
Subject: Fw: [PHP-GTK] entry->select_region
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-2120@lists.php.net to get a copy of this message
erm, you did have text there to select a region of, right? ----- Original Message ----- From: "Steph" <sfox@php.net> To: "gorb" <gorb@krasu.ru>; <php-gtk-general@lists.php.net> Sent: Friday, June 14, 2002 9:33 AM Subject: Re: [PHP-GTK] entry->select_region Hi, Both work fine here, and should work fine there. They're mutually exclusive methods - select_region()'s first parameter is the grab position and will overrule set_position() if it's called after, or vice versa, as they refer to exactly the same thing. You'll need to use grab_focus() on the entry to set the cursor at all, *after* the entry widget has been added to its container. This doesn't put a visible cursor into the widget, it just means that if you start typing the new text will begin from the position requested, i.e. the cursor will show up there *after* you begin typing. Clicking on the entry widget will reset the cursor position to the pointer position. All the above are normal behaviour for Gnome - just strange for win32 :) HTH, Steph ----- Original Message ----- From: "gorb" <gorb@krasu.ru> To: <php-gtk-general@lists.php.net> Sent: Friday, June 14, 2002 6:27 AM Subject: [PHP-GTK] entry->select_region > Hi all, > > Does work entry->select_region() and entry->set_position()with > php-gtk-0.5.1-win32 > > entry->select_region() does not select the text. > entry->set_position() does not move cursor. > > Why? > > -- > PHP-GTK General Mailing List (http://gtk.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.gtk.general (#2120) next »