1) The call of function IDE_GetPrefAsBool in function CreateMenuItem raises exception (list index out of bounds).
Ex:
2) Procedure OnMainMenu is not called for custom top-level menu item.
Ex:
3) It is possible to add callback function which would return the list from code assistant (with filter option).
Thanks and sorry for my English.
Ex:
Code:
function CreateMenuItem(Index: Integer): PChar; cdecl;
var
vBuffer : PChar;
begin
if Index = 1 then
begin
vBuffer := _IDE_GetPrefAsString(PluginId, PChar(''), PChar(IntToStr(Index), PChar('')); //exception
Result := vBuffer + 'MyMenu';
end;
end;
2) Procedure OnMainMenu is not called for custom top-level menu item.
Ex:
Code:
... Reports Programms MyMenu Window ...
| // OnMainMenu is not called
MySubMenu1
...
3) It is possible to add callback function which would return the list from code assistant (with filter option).
Thanks and sorry for my English.
Last edited: