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

Bruce Steers bsteers4 at gmail.com
Tue Dec 21 04:08:41 CET 2021


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20211221/4d7a795b/attachment.htm>


More information about the User mailing list