speedbutton not responding at first click after form opened from popupmenu
Original Reporter info from Mantis: tech27
-
Reporter name: Frédéric
Original Reporter info from Mantis: tech27
- Reporter name: Frédéric
Description:
Since I updated from lazarus 1.8 to lazarus 2, speedbuttons are not responding at the first click when the form they are assigned to is opened by the onClick event of a popup menu. If I click on the form first, the speed button works correctly
If I open the same form by using the onDoubleClick event of a dbgrid or a OnClick event of a button, the speedbutton on the newly opened form works correctly. The same way If I replace the speedbutton by a button it works well
Steps to reproduce:
Have a form (form1) with a popupmenu
The popupmenu has a menuItem with an onClick event that create a new form (form2)
The Form2 has a speedbutton with any onclick event (put a text on a tedit for example)
When the Form2 is created, the speedbutton don't trigger the onclick event at first click
The on clickevent is triggered at the second and next clicks
Mantis conversion info:
- Mantis ID: 38461
- OS: ubuntu
- OS Build: 20.04
- Platform: x86
- Version: 2.0.10