Re: Get current cursor position?
| From: | Sean Coates | Date: | Sun, 09 Apr 2006 01:30:50 +0000 |
| Subject: | Re: Get current cursor position? | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-6850@lists.php.net to get a copy of this message | ||
Steph Fox wrote:
> Hi Sean, and welcome to PHP-GTK corner.
>
> I didn't know the answer to this one either, I just spent forever
> playing. It looks like $iter->get_offset() is the baby - the 'offset'
> part refers to the position in the text buffer (aka the whole thing).
> It's easy enough to initialize the iter. What you _can't_ do is insert
> text on the fly programmatically though, as far as I can work out. GTK+
> gets upset about it.
Hi Steph,
aha!
So, mark-set delivers an iterator. This is exactly what I wanted; thanks!
S