Lazarus Everwood adjustment

function TEWMenuManager.CreateMenu(const aName: string): TEWMenu;
var
lIndex: integer;
begin
Initialize();
lIndex := fMenus.IndexOf(aName);
if lIndex > -1 then begin
Result := fMenus.Objects[lIndex] as TEWMenu
end
else begin
// similar to RegisterIDESubMenu
Result := TEWMenu.Create(aName);
{$IFDEF FPC}
Result.ChildrenAsSubMenu:=true;
{$ELSE}
Result.ChildsAsSubMenu:=true;
{$ENDIF}
Result.SubMenuImages := IDEImages.Images_16;
fMenus.AddObject(aName, result);
end;
end;

Hi,

Can you provide a bit more details, pls?
uEWMenuManager_laz.pas is already designed for Lazarus so FPC is always defined and this has no sense …

{$IFDEF FPC}
Result.ChildrenAsSubMenu:=true;
{$ELSE}
Result.ChildsAsSubMenu:=true;
{$ENDIF}

Ok, then adjust the code to the latest lazarus stable version 2.0.6.

Result.ChildrenAsSubMenu:=true;

Hi,
What version of RO/DA you are using?

we use

 Result.ChildrenAsSubMenu:=true;

from April of 2019

1 Like

Forgive my ignorance - I saw the word " EverWood" flying around, but don’t know what it is. Can you give me some heads up? Is it some converter or some IDE expert?

Everwood is a set of IDE extensions that contain some advanced IDE functionality across all our products.

1 Like

Yes. im still on version 9.6 because when change to version 10 some stuff stop working. I must revisit soon and test all is happen.

Best regards.