TTrackBar fires an Onchange event via code when it should only be done via USER actions.
Original Reporter info from Mantis: jamie @jamie
-
Reporter name: jamie philbrook
Original Reporter info from Mantis: jamie @jamie
- Reporter name: jamie philbrook
Description:
This is annoying problem that has been around for a long time now, ever since I ported my first Delphi app over to Lazarus back to like the 1.6.4 days.
Delphi does not call the Onchange event when making changes via code... Only when user moves the slider.
This causes an issue when setting the control from a variable over setting it from a user..
Currently I use a hack to determine if Keyboard or mouse just clicked on the control
These Onchange events for user controls should only change via a user action..
Any one can call the event manually if they wish since its done in code anyways..
Steps to reproduce:
Drop a TrackBar on the form and one button, assign a beep or something to the onchange event of the trackbar..
The button should change the position of the slider, no onchange event should get called but it does.
Mantis conversion info:
- Mantis ID: 38888
- Build: All of them/.
- Version: 2.0.13 (SVN)
- Monitored by: » @martok (Martok)