Must go take a closer look at those links...
So far all I do with it is quite simple: to open a menu with a toolbar-button on left click, I just write it on the left side where usually only a "command" is permitted, and write it in the form as desga posted:
Same syntax works for buttons in a macro, instead of a command.
Works really fine - as long as you have a menu without checkmarks...
EDIT: Okay, just looked at it... In the quick command list it should definitely be added "available in toolbars" and (partly?) in macros
Macro created button:
pluginmsg(toolbars, "AddButton", "<ToolbarName>, <ButtonName>,rebarmenu(MenuName)
, <MenuName>, <TooltipText>, <ButtonWidth>, <ButtonHeight>, toolbar.bmp");
Because of that checkmarks-bug I omitted the rebarmenu again and replaced it with macros(dummy)
, so nothing happens at a short click, but the right-click menu opens if clicked just a little but longer with left (hardly a second).
Edited 3 time(s). Last edit at 12/14/2009 06:47PM by siria.