[Gambas-user] combobox scrolling
Fabien Bodard
gambas.fr at gmail.com
Fri Oct 27 16:05:38 CEST 2023
Le ven. 27 oct. 2023 à 15:37, Benoît Minisini <
benoit.minisini at gambas-basic.org> a écrit :
> Le 27/10/2023 à 15:32, Fabien Bodard a écrit :
> >
> >
> > I'm trying this code in the ScrollArea.class
> > DrawingArea_MouseWheel() event...
> >
> > D = Max(Me.Font.Size, $hDrawingArea.ClientH - (Me.Font.Size * 4))
> >
> > It's working a treat :)
> > I subtracted "- (Me.Font.Size * 4)" from ClientH so it scrolls a
> > little less than a full page.
> >
> > Respects
> > BruceS
> >
> >
> > depend of your page :-) ... and of the desktop resolution
> >
>
> I think the solution is using the minimum value between Desktop.Scale *
> 60 and something like half of Client.Height (or Width depending on the
> scrolling direction).
>
> Regards,
>
>
I'm agree... but it not explain how it can work in mac world ... fixed 60
px ... on a list of 3 element ?
> --
> Benoît Minisini.
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
--
Fabien Bodard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20231027/1a25aef7/attachment.htm>
More information about the User
mailing list