[Fwd: Re: Can't select text after popup menu]



Doesn't seem to be the insertion point after all, though I don't know what it is. I reset the insertion point with
        gtk_text_set_point(dedah, 0);
and it did reset it, but made no difference to the behaviour. Text highlighting is still happening relative to the point the menu popped up.

What I mean by this is that if the menu was roughly half-way down the display, after dismissing it, if I put the mouse cursor at the top and start to drag using the left mouse button, all the text from the mouse cursor to where the menu was is immediately highlighted. As I drag towards the menu position the highlighting reduces, following the cursor, vanishing as the cursor passes the menu position, then increasing again following the cursor as it moves further down the pane.

Reason I called it "insertion point" is that after the menu has been dismissed, there's a thin vertical bar roughly at the position the menu was.

Rob

-------- Original Message --------
Subject: Re: Can't select text after popup menu
Date: Thu, 19 Jun 2003 10:13:57 +0100
From: Rob Clack <rnc sanger ac uk>
Organization: Sanger Institute
To: Ian Bell <ian redtommo com>
CC: gtk-app-devel-list gnome org
References: <3EEED63B 8020608 sanger ac uk> <200306172306 04900 ian redtommo com>

Well I'm getting to understand the problem better!

I have text in a scrollable window.  When I right-click with the mouse
to display a popup menu, something nails the insertion point into the
text in that position.  Once I've dismissed the popup menu, I need to be
able to select the text with the left mouse button, but the insertion
point is still firmly nailed where the menu appeared.

Half my previous problem has been solved by
        editable->has_selection = TRUE
so at least now when I drag the mouse cursor across the text it does
highlight it up.  However, it's still just highlighting with respect to
the insertion point.

So it seems to me what I need to do is make the insertion point coincide
with the mouse cursor.  Or at least free it from where it's been put.

At least I _think_ it's the insertion point.  My grasp of the
terminology is a bit vague still.

tvm
Rob
--
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Just self-replicating, compartmentalised redox chemistry, really.
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Rob Clack                        Acedb Development,  Informatics Group
  email: rnc sanger ac uk                Wellcome Trust Sanger Institute
  Tel: +44 1223 494780                   Wellcome Trust Genome Campus
  Fax: +44 1223 494919                   Hinxton  Cambridge    CB10 1SA


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


--
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Just self-replicating, compartmentalised redox chemistry, really.
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Rob Clack                        Acedb Development,  Informatics Group
 email: rnc sanger ac uk                Wellcome Trust Sanger Institute
 Tel: +44 1223 494780                   Wellcome Trust Genome Campus
 Fax: +44 1223 494919                   Hinxton  Cambridge    CB10 1SA





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]