SetSelection on wxTextCtrl is intermittent
Ron Burkey
rburkey2005 at earthlink.net
Fri Mar 28 06:20:49 PDT 2008
On Fri, 2008-03-28 at 00:48 +0100, Vadim Zeitlin wrote:
> ...
> RB>
> RB> And here's what it shows when the selection fails:
> RB>
> RB> Raw: From=3 To=8
> RB> Iterators: From=3 To=8
> RB> start=8 end=8
> RB>
> RB> So at least the iterators are working properly.
>
> And the functions called later are simply not supposed to fail in this
> case so I have no idea about what's going on, sorry. I can only think of a
> bug in your GTK+ version but it probably doesn't help much...
>
> You could also try printf()ing the result of gtk_text_buffer_get_insert()
> after gtk_text_buffer_place_cursor() call and the result of
> gtk_text_buffer_get_selection_bound() after the move_mark one.
>
I think you're probably right, and it must be a bug in GTK+. I'll try
pursuing it in that direction.
Thanks!
More information about the wx-users
mailing list