Recent

Author Topic: PopupMenu with lot of items: mouse wheel don't work  (Read 2026 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2521
    • UVviewsoft
PopupMenu with lot of items: mouse wheel don't work
« on: January 03, 2025, 10:03:49 pm »
https://github.com/Alexey-T/CudaText/issues/5829
There is full report and screenshot (seems it is Win11, looking at wallpapers).
User tells that mouse-wheel don't work when PopupMenu shows lot of items (and some items are out of screen).

LCL can affect the mouse-wheel work in this place?

Seenkao

  • Hero Member
  • *****
  • Posts: 649
    • New ZenGL.
Re: PopupMenu with lot of items: mouse wheel don't work
« Reply #1 on: January 04, 2025, 12:23:23 am »
Думаю полезно в таких случаях узнавать сколько мониторов у пользователя.

Я понимаю, что то что ниже я пишу, не связанно напрямую с данной проблемой, но возможно как-то связана.
У меня при двух мониторах, в самом Lazarus есть проблема, на не основном мониторе, где данные ниже самой нижней части основного монитора не выводятся подсказки (считается что их не видно, как я понял), а те подсказки что немного выше, но сама подсказка может быть большой, обрезаются если подсказка ниже самой нижней части основного монитора.
Я на Linux на XOrg. Lazarus многооконный.

-----------------------------------------
Google translate:
I think it is useful in such cases to find out how many monitors the user has.

I understand that what I am writing below is not directly related to this problem, but perhaps it is somehow related.
I have a problem with two monitors, in Lazarus itself, on a non-primary monitor, where the data below the very bottom of the main monitor does not display hints (it is considered that they are not visible, as I understand it), and those hints that are slightly higher, but the hint itself can be large, are cut off if the hint is below the very bottom of the main monitor.
I am on Linux on XOrg. Lazarus multi-window.
Rus: Стремлюсь к созданию минимальных и достаточно быстрых приложений.

Eng: I strive to create applications that are minimal and reasonably fast.
Working on ZenGL

AlexTP

  • Hero Member
  • *****
  • Posts: 2521
    • UVviewsoft
Re: PopupMenu with lot of items: mouse wheel don't work
« Reply #2 on: January 04, 2025, 01:52:35 pm »
This page
https://stackoverflow.com/questions/1619753/can-win32-popup-menus-respond-to-the-scroll-wheel
tells that user has the same problem with PopupMenu in 2009.

Sieben

  • Sr. Member
  • ****
  • Posts: 372
Re: PopupMenu with lot of items: mouse wheel don't work
« Reply #3 on: January 04, 2025, 02:44:44 pm »
That thread also mentions the crucial point - menus do not and can not have focus. And when looking at LCL's TPopupMenu and its ancestors there is no mouse handling whatsoever, it's obviously all done by the widgetset, the only thing that 'surfaces' is TMenuItem.OnClick. So to answer your initial question: short of writing your own (as also mentioned in that thread), no.
Lazarus 2.2.0, FPC 3.2.2, .deb install on Ubuntu Xenial 32 / Gtk2 / Unity7

 

TinyPortal © 2005-2018