Optimize ImageList drawing by removing RefreshControl in TToolButton.SetImageIndex
Original Reporter info from Mantis: djenkins @dfjenkins
-
Reporter name: David Jenkins
Original Reporter info from Mantis: djenkins @dfjenkins
- Reporter name: David Jenkins
Description:
We'd like to remove the call to RefreshControl in TToolButton.SetImageIndex. This call causes the toolbar to check for resize each time a image index is updated and can slow things down significantly. An imagelist should have all same size images. Changing index therefore should not change image size / button size, and toolbar should not need to be sized.
Suggested implementation in patches attached (created against rev 36681)
Mantis conversion info:
- Mantis ID: 21766
- Version: 0.9.30.5 (SVN)
- Fixed in revision: r36785 (#5323209a)
- Monitored by: » @dfjenkins (David Jenkins)