We're filling the application menu with items as defined in our database. This works fine for the rest of the Ribbon, but when doing it with the ApplicationMenu, we keep getting the "The tools collection has not been initialized." error.
This is our code:
/* Create Button Tool */ assign oButtonTool = CreateButton(buffer bPrgTabGrpTool). /* Apply instance properties like image */ ApplyInstanceProps(oButtonTool, buffer bPrgTabGrpTool). poRibbon:ToolbarsManager:Tools:Add(oButtonTool). poRibbon:ApplicationMenu:ToolAreaLeft:Tools:AddTool(oButtonTool:Key).
If we replace the last two lines by the line below, we don't get the error anymore. But then we also don't see any images. The CreateButton method assigns the SharedPropsInternal:AppearancesSmall:Appearance:Image and SharedPropsInternal:AppearancesLarge:Appearance:Image properties, which is working fine for the rest of the Ribbon.
poRibbon:ApplicationMenu:ToolAreaLeft:Tools:Add(oButtonTool).
We're programming in OpenEdge 11.1, which is using NetAdvantage for .NET v2011 Vol2.
Hello,
The OpenEdge is not supported for NetAdvantage for Windows Forms. I do not think that this is the issue here, though.
Could you please try to attach if possible a small sample project reproducing the above mentioned issue, I will be happy to take a look at it?