TSpeedButton - add NoBorder property
Original Reporter info from Mantis: SpongeBob
-
Reporter name: SpongeBob
Original Reporter info from Mantis: SpongeBob
- Reporter name: SpongeBob
Description:
It would be cool to have borderless TSpeedButton for building nicer skinnable interfaces.
Currently you can set TSpeedButton to be flat which doesn't draw the border, however on mouse however it will draw ugly border.
Its easy to get borderless TSpeedButton by removing one line of code in file speedbutton.inc in procedure procedure TCustomSpeedButton.PaintBackground(var PaintRect: TRect) - remove line
ThemeServices.DrawElement(Canvas.Handle, FLastDrawDetails, PaintRect);
Of course this should be implemented as a new property so users who want the border can have it.
Mantis conversion info:
- Mantis ID: 15978
- Version: 0.9.29 (SVN)