[Lazarus] IDE CoolBar issue

Juha Manninen juha.manninen62 at gmail.com
Wed Sep 9 08:26:47 CEST 2015


On Wed, Sep 9, 2015 at 8:42 AM, Ondrej Pokorny <lazarus at kluug.net> wrote:
> On 09.09.2015 07:37, patspiper wrote:
>>
>> Can you then show example code on how to add a dropdown button to the
>> IDECoolbar?
>
> You have to register your own TIDEToolButton descendant with the command.
> See e.g. 'ide\desktopmanager.pas'
>
> TShowDesktopsToolButton = class(TIDEToolButton)
>
> it is registered in 'ide\mainbase.pas'
> itmToolManageDesktops.ToolButtonClass:=TShowDesktopsToolButton;

Now such code can be found in DesktopManager and MainBase units.
If somebody (maybe patspiper) creates an example application, we can
add it to examples directory.
Or should it be part of some already existing application?

Juha




More information about the Lazarus mailing list