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

Jussi Lahtinen jussi.lahtinen at gmail.com
Tue Dec 21 05:13:18 CET 2021


This is a bug. GTK and Qt should behave in the same way. I bet it is again
due to some GTK oddities.

Jussi

On Tue, Dec 21, 2021 at 5:09 AM Bruce Steers <bsteers4 at gmail.com> 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 ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20211221/bef1e9b0/attachment-0001.htm>


More information about the User mailing list