insert position on Gtk::Editable
- From: "Eric Hil" <anhkra hotmail com>
- To: gtk-perl-list gnome org
- Subject: insert position on Gtk::Editable
- Date: Sat, 22 Mar 2003 00:58:42 -0500
Recently i have discovered how much fun Gtk/Perl is, And now can't get
enough of it.
Anyways, My question is.......
I read through many tutorials and search this mail archive and the web.
However I have only found one reference to the issue that I'm experiencing.
It was posted in 1998 and have no responding messages :(
for an insert function in a text widget I need to insert text at the
If I just use gtk_text_insert the text is inserted after the last
characyter wich is typed, so not the place of the cursor if you used
the cursor keys to move it away there!
gtk_text_get_point() also returns this point, and not the point of the
actual cursor position. How do I get the actual cursor position?".
I am experiencing the same issue where $widget->get_point() and
$text->get_length() are initially returning the same value. Unless I set the
cursor at my desired insert point and perform some keystroke such as space
or arrow key.
Is there any documentation or reference somewhere that might explain a
solution to this? where one could focus the cursor to the desired position
and the widget function could return that as the insert point?
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
] [Thread Prev