TTrackBar.Position assignment is faulty
Original Reporter info from Mantis: bruce
-
Reporter name: Bruce Tulloch
Original Reporter info from Mantis: bruce
- Reporter name: Bruce Tulloch
Description:
Assignment of TTrackBar.Position is supposed to locate the trackbar to the
specified position. Usually it does. However when the position property is
assigned in an event handler of the TTrackBar itself, it does not work.
Steps to reproduce:
Build and run the attached test project.
Move the trackbar from its start (centre) position and when released it
should snap back to the centre (as the OnMouseUp handler is executed).
The trackbar position fails to move.
Click the Reset button and the trackbar should snap back to the centre.
In this case it does relocate to the centre.
In both handlers the code:
TrackBar1.Position := 0
is executed but when executed in the OnMouseUp handler on TrackBar1 itself it
does not appear to work but when executed elsewhere (in the button's OnClick
handler in this example) it does.
Mantis conversion info:
- Mantis ID: 14029
- OS: Debian
- OS Build: Lenny
- Platform: Linux
- Version: 0.9.27 (SVN)
- Monitored by: » @zeljan1 (Zeljan Rikalo)