TButton in Delphi XE2 has a Style
property. When this property is set to bsSplitButton
then a drop-down arrow is displayed on the right side of the button:
However, this drop-down area has some inconveniences:
In many cases it is too narrow, the static width of the drop-down area is only 11 pixels.
There is no explicit hover indication just for the drop-down area when the mouse pointer hovers over the drop-down area.
How can a descendant of TButton be implemented which repairs this inconveniences? The descendant should have a DropDownWidth
property and a property which handles and changes the drop-down display when the mouse hovers over the drop-down area.