[Gambas-user] combobox scrolling

Bruce Steers bsteers4 at gmail.com
Fri Oct 27 13:54:21 CEST 2023


On Thu, 26 Oct 2023 at 11:27, Fabien Bodard <gambas.fr at gmail.com> wrote:

> Yes
>
> Le jeu. 26 oct. 2023 à 11:43, BB <adamnt42 at gmail.com> a écrit :
>
>>
>> Aha! It was that evil Frenchman about a week ago.
>> ListBox: Add Highlight property to highlight the listbox entry under the
>> mouse cursor.
>>
>> [GB.GUI.BASE]
>> * NEW: ListBox: Add Highlight property to highlight the listbox entry under the mouse cursor.
>> * NEW: Helper function for the future 'Window.ShowPopupAt()' method.* NEW: ScrollArea: The mouse wheel now scroll a number of pixels proportional to 'Desktop.Scale'.
>>
>>
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20231027/2718df65/attachment.htm>


More information about the User mailing list