Recent

Author Topic: PopupMenu disappears when is interrupted  (Read 666 times)

claudioya

  • New member
  • *
  • Posts: 7
PopupMenu disappears when is interrupted
« on: August 06, 2023, 03:46:27 am »
Hello,

I have a long data error (or bug?), I have PopupMenu in any control and work fine, but if the popup is interrupted in OnPopup event this and all popupmenus they don't work again. For example, I interrupt popupmenu with simple "Showmessage" dialog in OnPopup event. Attach project example. Note: the problem is that interrupt can do in other circunstances, for example in one error in popupmenu add items.

Checked in Linux Mint 19.3 64 bits with GTK2 widgetset. Lazarus 2.2.2 (also in older versions) and 3.0RC1 with FPC 3.2.2.

Thanks.

dseligo

  • Hero Member
  • *****
  • Posts: 1149
Re: PopupMenu disappears when is interrupted
« Reply #1 on: August 06, 2023, 10:22:28 am »
Windows 11, Lazarus 2.2.6: pop-up menu shows after ShowMessage.

Under Debian, GTK2, Lazarus 2.2.2 it doesn't work.
« Last Edit: August 06, 2023, 10:45:24 am by dseligo »

claudioya

  • New member
  • *
  • Posts: 7
Re: PopupMenu disappears when is interrupted
« Reply #2 on: August 17, 2023, 12:37:46 am »
I created issue:

https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/40448

Edit:
In Lazarus 2.2.2 FPC 3.2.2 64 bits with GTK 3 this bug don't exists, PopupMenu work fine.
« Last Edit: August 19, 2023, 11:47:56 pm by claudioya »

 

TinyPortal © 2005-2018