comp.lang.ada
 help / color / mirror / Atom feed
From: briot.emmanuel@gmail.com
Subject: Re: Gtk / GtkAda question (TextBuffer insertion)
Date: Mon, 13 Apr 2020 23:37:06 -0700 (PDT)
Date: 2020-04-13T23:37:06-07:00	[thread overview]
Message-ID: <3cdad56d-1d41-4103-ac3c-aad2da3f40c2@googlegroups.com> (raw)
In-Reply-To: <5e91c774$0$18417$e4fe514c@news.kpn.nl>

> I can coming along that point Safe the Iter there or do an Add_mark My 
> problem is how do I put the cursor afterwards back to that position just 
> to insert the lines lateron

If I remember right, you would set a Gtk_Text_Mark at the position of the cursor, then do the inserts. The mark will remain at the same position automatically. So you can now set the cursor back to where the mark is, and delete the mark

Emmanuel

  reply	other threads:[~2020-04-14  6:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-11 13:34 Gtk / GtkAda question (TextBuffer insertion) ldries46
2020-04-14  6:37 ` briot.emmanuel [this message]
2020-04-14  6:57   ` ldries46
2020-04-15  7:27     ` briot.emmanuel
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox