<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is there a way to change the menu text while running? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Is-there-a-way-to-change-the-menu-text-while-running/m-p/267349#M2369</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Yes, you can use ACAPI_Interface (APIIo_SetMenuItemTextID, ...) function for this purpose.
&lt;PRE&gt;API_MenuItemRef  menuItemRef;
GS::UniString    menuItemStr = "New Text for Menu!!!";

BNZeroMemory (&amp;amp;menuItemRef, sizeof (API_MenuItemRef));
menuItemRef.menuResID = 32500;
menuItemRef.itemIndex = 1;
ACAPI_Interface (APIIo_SetMenuItemTextID, &amp;amp;menuItemRef, nullptr, menuItemStr);&lt;/PRE&gt;
Note, you have to register your menu with ACAPI_Register_Menu in your RegisterInterface function and after that you can change the text of the menu anytime.</description>
    <pubDate>Mon, 10 Aug 2020 09:52:17 GMT</pubDate>
    <dc:creator>Tibor Lorantfy</dc:creator>
    <dc:date>2020-08-10T09:52:17Z</dc:date>
    <item>
      <title>Is there a way to change the menu text while running?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Is-there-a-way-to-change-the-menu-text-while-running/m-p/267348#M2368</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi.&lt;BR /&gt;&lt;BR /&gt;I am trying to write a plugin which can update itself. Since there is no way to unload the apx while running, I make the apx to be a "shell" which can dynamic load dll. The dll ontains the implementation. However, I have no idea about RegisterInterface function because the function ACAPI_Register_Menu seems to have something to do with the runtime environment (maybe the stack or registers). I don't want to fix the menu in the "shell" but dynamicly load the related information from dll or txt. So I was wondering if I could change the menu text when ARCHICAD is running? Is there an API like ACAPI_Register_Menu?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Sep 2021 07:55:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Is-there-a-way-to-change-the-menu-text-while-running/m-p/267348#M2368</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-15T07:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to change the menu text while running?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Is-there-a-way-to-change-the-menu-text-while-running/m-p/267349#M2369</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Yes, you can use ACAPI_Interface (APIIo_SetMenuItemTextID, ...) function for this purpose.
&lt;PRE&gt;API_MenuItemRef  menuItemRef;
GS::UniString    menuItemStr = "New Text for Menu!!!";

BNZeroMemory (&amp;amp;menuItemRef, sizeof (API_MenuItemRef));
menuItemRef.menuResID = 32500;
menuItemRef.itemIndex = 1;
ACAPI_Interface (APIIo_SetMenuItemTextID, &amp;amp;menuItemRef, nullptr, menuItemStr);&lt;/PRE&gt;
Note, you have to register your menu with ACAPI_Register_Menu in your RegisterInterface function and after that you can change the text of the menu anytime.</description>
      <pubDate>Mon, 10 Aug 2020 09:52:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Is-there-a-way-to-change-the-menu-text-while-running/m-p/267349#M2369</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2020-08-10T09:52:17Z</dc:date>
    </item>
  </channel>
</rss>

