On Wed, Sep 9, 2015 at 8:42 AM, Ondrej Pokorny <[email protected]> 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

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to