2012/4/9 Richard Mace <[email protected]> > 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
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
