[Gambas-user] combobox scrolling

Benoît Minisini benoit.minisini at gambas-basic.org
Fri Oct 27 15:36:48 CEST 2023


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,

-- 
Benoît Minisini.



More information about the User mailing list