[Lazarus] TToolButton dropdown
Juha Manninen
juha.manninen62 at gmail.com
Mon Apr 9 10:48:33 CEST 2012
2012/4/9 Richard Mace <richard.mace at gmail.com>
> Hi,
> I have a TToolButton in a tool bar, with it's style set to tbsDropDown and
> have linked the DropDownMenu property to a drop down menu.
> All is working fine when I click on the "down arrow" to the right of the
> button, however, I'd really like the button to also activate the dropdown
> menu when it is clicked.
> Could someone give me an example of how I could code that please for the
> OnClick event of the button?
>
Don's set the style to tbsDropDown.
As an example, you can look at Lazarus sources. MoreBitBtn is set in
packager/PackageEditor.pas.
Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20120409/6f07fead/attachment-0003.html>
More information about the Lazarus
mailing list