RE: GtkEditable forcing of scrolling
- From: "Dugas, Alan" <alan dugas analog com>
- To: "Dugas, Alan" <alan dugas analog com>,Havoc Pennington <hp redhat com>
- Cc: gtk-app-devel-list gnome org, gtk-list gnome org
- Subject: RE: GtkEditable forcing of scrolling
- Date: Mon, 21 Aug 2000 12:14:47 -0400
As seen by the application user, "snap to", would cause the text of interest to
be displayed instantaneously. An example of this would be the buttons that
sometimes appear above and below vertical scroll bars to go to the begining and
ends of a text widget. Conversely, "scrolling", as seen by the application
user, would show the text moving up/down until the text of interest is
displayed. Activatling an up/down arrow connected to a scroll bar would be an
example of this.
A good analogy for what I am trying to do would be with finding a page in a book
with a bookmarker on say page 32. Now if you wanted to find page 32, you could
either turn one page at a time (i.e. scrolling) or simply open the book at the
bookmark (i.e. snap to). The problem I am having is that I am unable to freeze
the text, move the cursor to a new location, emit a "changed" or "value_change"
signal, and then thaw the text so that, to the enduser, the text found apprears
without any scrolling. Does this help clarify things?
-- Stupid Genius
> ----------
> From: Havoc Pennington[SMTP:hp@redhat.com]
> Sent: Sunday, August 20, 2000 10:51 AM
> To: Dugas, Alan
> Cc: gtk-app-devel-list@gnome.org; gtk-list@gnome.org
> Subject: Re: GtkEditable forcing of scrolling
>
>
> "Dugas, Alan" <alan.dugas@analog.com> writes:
> > I am trying to implement a string search function. I would like
> > this function to snap to, as opposed to scrolling to, the text that
> > it matches. However, the only method I've come up with relies on
> > gtk_editable_set_position() followed by
> > gtk_adjustment_value_changed() to move to the text matched (see code
> > snippet below). It seems to me that a third argument to
> > gtk_editable_set_position() should be available to let the
> > programmer decide if it's more appropriate to snap to, or scroll to,
> > the new position. Does this make sense to anybody or am I going
> > about this wrong? Any and all suggestions to implementing a method
> > of snapping to a new position in a text widget would be greatly
> > appreciated. Thanks in advance.
> >
>
> I don't understand what you mean by "snap to" vs. "scrolling to". Can
> you explain what "snap to" means?
>
> Havoc
>
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]