[Gambas-user] no MouseMove() event on GTK

bb adamnt42 at gmail.com
Tue Dec 21 14:34:48 CET 2021


On Tue, 2021-12-21 at 03:08 +0000, Bruce Steers wrote:
> On Mon, 20 Dec 2021 at 16:46, bb <adamnt42 at gmail.com> wrote:
> 
> > On Tue, 2021-12-21 at 03:13 +1030, bb wrote:
> > > On Mon, 2021-12-20 at 16:36 +0000, Bruce Steers wrote:
> > > > On Mon, 20 Dec 2021 at 16:34, Bruce Steers <bsteers4 at gmail.com>
> > > > wrote:
> > > > 
> > > > > Hi folks.
> > > > > 
> > > > > Can't figure this one out...
> > > > > 
> > > > > I've been working on a filemanager with a redesigned IconView
> > > > > like
> > > > > control.
> > > > > Hit a roadblock though where my control will not fire the
> > > > > View_MouseMove()
> > > > > event with GTK.
> > > > > it's firing View_Draw() as the background image shows from
> > > > > there.
> > > > > 
> > > > > on qt i can hold left mouse and drag-select multiple icons
> > > > > (the
> > > > > current
> > > > > bit i've been working on) tried on gtk and discovered
> > > > > MouseMove
> > > > > event not
> > > > > happening :(
> > > > > 
> > > > > on QT it's working as expected but not on either GTKs :(
> > > > > 
> > > > > Any clues why this might be?
> > > > > Many thanks
> > > > > BruceS
> > > > > 
> > > > 
> > > > I forgot to mention
> > > > MyFileView.class is the class of interest
> > > > BruceS
> > > > 
> > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
> > > No real anser, but...
> > > have you noticed that MouseMove is not raised in GTK for a text
> > > control
> > > (in my case a combobox) unless the cursor is already over part of
> > > the
> > > text?
> > > b
> > 😣️
> > IGNORE previous completely!
> > 
> 
> haha okay.
> 
> i figured the issue out at least (i think).
> 
> It's because i use Me._Container = $hView
> it seems the $hView identifier "View" is triggering View_Draw() but
> not
> View_MouseMove() on GTK
> I used
> Object.Attach(Me._Container, Me, "ViewBox")
> 
> So I'm now getting ViewBox_MouseMove() and View_Draw()
> all seems well.
> BruceS
> 
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
I have to say that elsewhere I have also? been trapped by giving an
object a reserved word moniker. Nowadays I always try to use "SELF" or
(if absolutely necessary) "MY<thing>" as monikers.
(and if I am forced to use "MY<thing>",it always looks to me like
"MYLittleDonkey" ... hu, chack, spit!
cheers
b



More information about the User mailing list