Recent

Author Topic: [SOLVED] Event suddenly executes more than once  (Read 461 times)

BubikolRamios

  • Sr. Member
  • ****
  • Posts: 282
[SOLVED] Event suddenly executes more than once
« on: May 18, 2024, 02:56:00 pm »
Suddenly this event executes twice in roll. Screen is from second execution (note that showmessage already fails), first execution executes as it was normal.
Bunch of controls on form, all calling this event onMouseWheelDown. Got similar event onMouseWheelUp, where instead -1 there is +1. That works as always, with no problem.

Any clue ?
« Last Edit: May 18, 2024, 03:06:39 pm by BubikolRamios »
lazarus 3.2-fpc-3.2.2-win32/win64

BubikolRamios

  • Sr. Member
  • ****
  • Posts: 282
Re: Event suddenly executes more than once
« Reply #1 on: May 18, 2024, 03:05:33 pm »
Ok found it, have no idea how I glued event to TPanel, must have been done by lazarus (I was adding, removing controls and their events to TPanel) (-:
Sometimes lazarus editor does weird things.

Code: Pascal  [Select][+][-]
  1. showmessage(sender.ClassType.ClassName);        
  2.  
« Last Edit: May 18, 2024, 03:09:19 pm by BubikolRamios »
lazarus 3.2-fpc-3.2.2-win32/win64

 

TinyPortal © 2005-2018