RegisterIDEButtonCommand from unit ToolBarIntf does'nt link onClick event to the new toolbutton created
Original Reporter info from Mantis: errno
-
Reporter name:
Original Reporter info from Mantis: errno
- Reporter name:
Description:
Exist also in SVN version (52304)
the folowing source code :
var IdeBtnCmd:TIDEButtonCommand;
IdeCmd:TIDECommand;
IdeCmd:=RegisterIDECommand(IDECommandList.FindCategoryByName(CommandCategoryViewName),'MyIdeCmd','My IDE command',
@IdeCmdExecute);
IdeBtnCmd:=RegisterIDEButtonCommand(IDEToolButtonCategories.FindCategory(CommandCategoryViewName),'MyIdeBtnCmd',IdeCmd);
should add a new button on the toolbar but the IdeCmdExecute in never called . and the toolbutton does nothing .
Steps to reproduce:
Try to add on new button on the source editor toolbar .
Mantis conversion info:
- Mantis ID: 30137
- OS: windows 64 bits
- OS Build: 7
- Platform: AMD 64
- Version: 1.6
- Fixed in version: 1.7 (SVN)
- Fixed in revision: r52306 (#2b94ec1a)
- Target version: 1.6.2