<?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: Radio Buttons:  Enable/Disable ability to select at runtime in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Radio-Buttons-Enable-Disable-ability-to-select-at-runtime/m-p/361825#M1664</link>
    <description>&lt;P&gt;In which fonction of your dialog class you put the disable logic will depend on the behaviour you want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wouldn't place any logic in the constructor&amp;nbsp; though.&lt;/P&gt;&lt;P&gt;I'm quite new to this so I'm not completely certain, but for code clarity and to avoid any hard to trace bugs&amp;nbsp; i'd use the dialog functions to do all the work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The point of my post was that&amp;nbsp;DGDisableItem(32500, UL_DEFID); is the old C syntax which the API is moving away from. The one I posted is the new c++ implementation which you should prefer. Avoid mixing C and C++ any chance you get.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2022 16:28:45 GMT</pubDate>
    <dc:creator>julienK</dc:creator>
    <dc:date>2022-11-11T16:28:45Z</dc:date>
    <item>
      <title>Radio Buttons:  Enable/Disable ability to select at runtime</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Radio-Buttons-Enable-Disable-ability-to-select-at-runtime/m-p/361632#M1659</link>
      <description>&lt;P&gt;My goal is to gray out or disable the ability to select a radio button at runtime.&amp;nbsp; For example, all of these are non-grayed and selectable:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MudratDetector_0-1668017193827.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/31471iDFE7D444B8AE19D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MudratDetector_0-1668017193827.png" alt="MudratDetector_0-1668017193827.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I suspect this is a TRUE/FALSE&amp;nbsp; or a .IsEnabled/.IsDisabled setting for the individual button based on the control ID and I am already able to determine which ones get which setting.&amp;nbsp; I am also guessing I can loop through the controls collection and apply the predetermined setting to each button as it comes up in the for loop.&lt;BR /&gt;&lt;BR /&gt;What I am not sure of is how to acquire the controls collection and the type or use of the control ID.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MudratDetector_1-1668017666610.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/31472iE44077263E839401/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MudratDetector_1-1668017666610.png" alt="MudratDetector_1-1668017666610.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is the control ID the string ["JHP_UL_AB"] or the other reference [RadioButton_0] from the .grc file?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MudratDetector_2-1668017913968.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/31473i0BA956B60574A67D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MudratDetector_2-1668017913968.png" alt="MudratDetector_2-1668017913968.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is the control ID the non-string [UL_AB_Radio] or the other reference [UL_ABID] from the class definition?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MudratDetector_3-1668018077997.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/31474iD221F9D7FC836641/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MudratDetector_3-1668018077997.png" alt="MudratDetector_3-1668018077997.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I suspect it is the non-string [UL_AB_Radio] since I am able to know which button is selected by using the non-string and provide the corresponding argument to a function that will determine the enable/disable state.&lt;BR /&gt;&lt;BR /&gt;In testing, I am successfully scanning a list of strings that represents the control IDs for each individual radio button and verify the setting with text output to the Report window.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;	list&amp;lt;std::string&amp;gt; strCategories;
	if (argc != "")
	{
		strCategories = { argc };
	}
	else
	{
		strCategories = { "UL_AB", "UL_DEF", "UL_GH", "UL_I", "UL_JK", "UL_LM", "UL_NO", "UL_PQR", "UL_UVW" }; // , "UL_X", "UL_C-AJ-", "UL_F-A-", "UL_F-B-", "UL_F-C-", "UL_W-L-"
	}

	for (list&amp;lt;std::string&amp;gt;::iterator i = strCategories.begin(); i != strCategories.end(); i++)
	{ // determine enable/disable state of each radio button and set accordingly&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for the correct type format to build this list and the proper syntax to apply the enable/disable setting to each button using the list.&lt;BR /&gt;&lt;BR /&gt;Please and thank-you.&amp;nbsp; Have a great day!&lt;BR /&gt;Chris&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 21:46:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Radio-Buttons-Enable-Disable-ability-to-select-at-runtime/m-p/361632#M1659</guid>
      <dc:creator>MudratDetector</dc:creator>
      <dc:date>2022-11-09T21:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Buttons:  Enable/Disable ability to select at runtime</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Radio-Buttons-Enable-Disable-ability-to-select-at-runtime/m-p/361748#M1660</link>
      <description>&lt;P&gt;I think I have narrowed down what I am looking for.&amp;nbsp; If I hover over any of the Radio Buttons, a tool tip sort of identifier appears and I suspect that this is the Control ID I am looking for.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MudratDetector_0-1668115625485.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/31497i33FDF77535B5BD73/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MudratDetector_0-1668115625485.png" alt="MudratDetector_0-1668115625485.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or maybe not.&amp;nbsp; Chipping away at it over here boss...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 21:31:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Radio-Buttons-Enable-Disable-ability-to-select-at-runtime/m-p/361748#M1660</guid>
      <dc:creator>MudratDetector</dc:creator>
      <dc:date>2022-11-10T21:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Buttons:  Enable/Disable ability to select at runtime</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Radio-Buttons-Enable-Disable-ability-to-select-at-runtime/m-p/361750#M1661</link>
      <description>&lt;P&gt;If you dig deep enough, you will finally have a hole...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hard coding this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DGDisableItem(32500, UL_DEFID);&lt;/LI-CODE&gt;&lt;P&gt;Results in this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MudratDetector_1-1668117944355.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/31498iCCF0FF24B54B6295/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MudratDetector_1-1668117944355.png" alt="MudratDetector_1-1668117944355.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now... to just loop through the Controls collection and be able to access and manipulate with the non-string identifier.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 22:08:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Radio-Buttons-Enable-Disable-ability-to-select-at-runtime/m-p/361750#M1661</guid>
      <dc:creator>MudratDetector</dc:creator>
      <dc:date>2022-11-10T22:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Buttons:  Enable/Disable ability to select at runtime</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Radio-Buttons-Enable-Disable-ability-to-select-at-runtime/m-p/361786#M1662</link>
      <description>&lt;P&gt;in you dialog class you should have a panelOpened function.&lt;/P&gt;&lt;P&gt;All you have to do is add:&lt;/P&gt;&lt;P&gt;nameOfYourRadioButton.Disable();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;of course you can add any logic you want to it so its disabled/enabled as you wish&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 07:35:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Radio-Buttons-Enable-Disable-ability-to-select-at-runtime/m-p/361786#M1662</guid>
      <dc:creator>julienK</dc:creator>
      <dc:date>2022-11-11T07:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Buttons:  Enable/Disable ability to select at runtime</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Radio-Buttons-Enable-Disable-ability-to-select-at-runtime/m-p/361824#M1663</link>
      <description>&lt;P&gt;Thanks for the reply Julien.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently accomplishing this button availability exercise in my constructor.&amp;nbsp; The code below disables all buttons without the logic in place to determine which ones get the ax.&amp;nbsp; This configuration is only proof of concept for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;JHP_UL_Dialog::JHP_UL_Dialog() :
	DG::ModalDialog(ACAPI_GetOwnResModule(), 32500, ACAPI_GetOwnResModule()),
	UL_JHP_Button(GetReference(), UL_JHPID),
	GA_JHP_Button(GetReference(), GA_JHPID),
	UL_ONLINE_Button(GetReference(), UL_ONLINEID),
	GA_ONLINE_Button(GetReference(), GA_ONLINEID),

	UL_BOX_0(GetReference(), UL_BOX_0ID),
	UL_AB_Radio(GetReference(), UL_ABID),
	UL_C_Radio(GetReference(), UL_CID),
	//more of the same
	OK_Button(GetReference(), OkID),
	Cancel_Button(GetReference(), CancelID),
	UL_LOGO_Icon(GetReference(), LOGOID),
	File_Button(GetReference(), FileID),
	Verify_Button(GetReference(), VerifyID)
{
	short arrRadBut[11] = { UL_ABID, UL_DEFID, UL_GHID, UL_IID, UL_JKID, UL_LMID, UL_NOID, UL_STID, UL_PQRID, UL_UVWID, UL_XYZID};
	for (int k=0;k&amp;lt;11;k++)
		DGDisableItem(32500, arrRadBut[k]);

	AttachToAllItems(*this);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Is there a disadvantage to performing this task here in the constructor?&amp;nbsp; Or am I better served by creating:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;JHP_UL_Dialog::PanelOpened()
	short arrRadBut[11] = { UL_ABID, UL_DEFID, UL_GHID, UL_IID, UL_JKID, UL_LMID, UL_NOID, UL_STID, UL_PQRID, UL_UVWID, UL_XYZID};
	for (int k=0;k&amp;lt;11;k++)
		DGDisableItem(32500, arrRadBut[k]);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and removing the button settings from my constructor?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any insight you can provide to my continued learning effort.&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 16:20:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Radio-Buttons-Enable-Disable-ability-to-select-at-runtime/m-p/361824#M1663</guid>
      <dc:creator>MudratDetector</dc:creator>
      <dc:date>2022-11-11T16:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Buttons:  Enable/Disable ability to select at runtime</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Radio-Buttons-Enable-Disable-ability-to-select-at-runtime/m-p/361825#M1664</link>
      <description>&lt;P&gt;In which fonction of your dialog class you put the disable logic will depend on the behaviour you want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wouldn't place any logic in the constructor&amp;nbsp; though.&lt;/P&gt;&lt;P&gt;I'm quite new to this so I'm not completely certain, but for code clarity and to avoid any hard to trace bugs&amp;nbsp; i'd use the dialog functions to do all the work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The point of my post was that&amp;nbsp;DGDisableItem(32500, UL_DEFID); is the old C syntax which the API is moving away from. The one I posted is the new c++ implementation which you should prefer. Avoid mixing C and C++ any chance you get.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 16:28:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Radio-Buttons-Enable-Disable-ability-to-select-at-runtime/m-p/361825#M1664</guid>
      <dc:creator>julienK</dc:creator>
      <dc:date>2022-11-11T16:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Buttons:  Enable/Disable ability to select at runtime</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Radio-Buttons-Enable-Disable-ability-to-select-at-runtime/m-p/361829#M1665</link>
      <description>&lt;P&gt;Thank you for that explanation.&amp;nbsp; I am pretty new to this as well and don't know what I don't know.&amp;nbsp; But I did grab that approach using DGDisableItem from the AC API 24 documentation.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MudratDetector_0-1668193580136.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/31519i9F4F82817358CDF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MudratDetector_0-1668193580136.png" alt="MudratDetector_0-1668193580136.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After a little more study, I can see the benefit of not putting logic in the constructor.&amp;nbsp; &amp;nbsp;And now the line is not as blurred between straight up initialization and logic used for initialization.&amp;nbsp; Also a long time fan of the one job &amp;gt; one function approach.&lt;BR /&gt;&lt;BR /&gt;Porting this old AutoCAD tool into Archicad continues to be quite the adventure.&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 19:32:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Radio-Buttons-Enable-Disable-ability-to-select-at-runtime/m-p/361829#M1665</guid>
      <dc:creator>MudratDetector</dc:creator>
      <dc:date>2022-11-11T19:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Buttons:  Enable/Disable ability to select at runtime</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Radio-Buttons-Enable-Disable-ability-to-select-at-runtime/m-p/361870#M1666</link>
      <description>&lt;P&gt;The documentation that comes with the API still use the C implementation, refer to the one here which is more up to date but also less complete. &lt;A href="https://archicadapi.Graphisoft.com/api-reference" target="_blank" rel="noopener"&gt;https://archicadapi.Graphisoft.com/api-reference&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and the examples in the doc.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2022 07:01:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Radio-Buttons-Enable-Disable-ability-to-select-at-runtime/m-p/361870#M1666</guid>
      <dc:creator>julienK</dc:creator>
      <dc:date>2022-11-13T07:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Buttons:  Enable/Disable ability to select at runtime</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Radio-Buttons-Enable-Disable-ability-to-select-at-runtime/m-p/362095#M1667</link>
      <description>&lt;P&gt;After looking at examples of implementing&amp;nbsp;&amp;nbsp;PanelOpened, I cannot get this to activate the same disabling action on the radio button of my dialog.&amp;nbsp; I believe I have all the parts of this in place.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my class definition [in .cpp file], I have the PanelOpened function.&amp;nbsp; I know, as shown here, this is using the older C implementation, but my strategy is to confirm PanelOpened before getting that switched to the newer C++ ways.&amp;nbsp; I don't even see the ACAPI_WriteReport that is in place to confirm with somethign easy.&amp;nbsp; Maybe dialogs aren't allowed in PanelOpened?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;void JHP_UL_Dialog::PanelOpened(const DG::PanelOpenEvent&amp;amp; /*ev*/)
{
	ACAPI_WriteReport("PanelOpened", TRUE);
	short arrRadBut[11] = { UL_ABID, UL_DEFID, UL_GHID, UL_IID, UL_JKID, UL_LMID, UL_NOID, UL_STID, UL_PQRID, UL_UVWID, UL_XYZID };
	for (int k = 0; k &amp;lt; 11; k++)
		DGDisableItem(32500, arrRadBut[k]);
}&lt;/LI-CODE&gt;&lt;P&gt;I don't even see the&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I also am utilizing the DG::PanelObserver, from my .hpp file.&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;class JHP_UL_Dialog :		public DG::ModalDialog,
									public DG::ButtonItemObserver,
									public DG::CompoundItemObserver,
									public DG::RadioItemObserver,
									public DG::PanelObserver, 
									public DG::ListBoxObserver
{
protected:
	enum Controls {
		UL_JHPID = 1,
		GA_JHPID = 2,
		// more of the same
	DG::RadioButton UL_FC_Radio;
	DG::RadioButton UL_WL_Radio;
		// more of the same

	virtual void PanelOpened(const DG::PanelOpenEvent&amp;amp; /*ev*/) override;
		// more of the same&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Am I missing a piece of the puzzle?&amp;nbsp; I have also tried alternate placement in either .hpp or .cpp files without success.&amp;nbsp; A point in the right direction would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks - chris&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 18:32:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Radio-Buttons-Enable-Disable-ability-to-select-at-runtime/m-p/362095#M1667</guid>
      <dc:creator>MudratDetector</dc:creator>
      <dc:date>2022-11-15T18:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Buttons:  Enable/Disable ability to select at runtime</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Radio-Buttons-Enable-Disable-ability-to-select-at-runtime/m-p/362098#M1668</link>
      <description>&lt;P&gt;I think its because you're putting the Ids&amp;nbsp; in the array,&amp;nbsp; try putting the actual name of the DG::RadioButton&lt;/P&gt;&lt;P&gt;i.e:&lt;/P&gt;&lt;P&gt;UL_FC_Radio&lt;BR /&gt;UL_WL_Radio&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 19:06:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Radio-Buttons-Enable-Disable-ability-to-select-at-runtime/m-p/362098#M1668</guid>
      <dc:creator>julienK</dc:creator>
      <dc:date>2022-11-15T19:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Buttons:  Enable/Disable ability to select at runtime</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Radio-Buttons-Enable-Disable-ability-to-select-at-runtime/m-p/362105#M1669</link>
      <description>&lt;P&gt;Yesterday, I was creating the array with button names as strings and stalled at how exactly to use the array.&amp;nbsp; I was looking for something similar to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;string arrRadBut[2] = { "UL_AB_Radio", "UL_C_Radio" };

for (int i = 0; i &amp;lt; 2; i++)
{
	if (radio_button.Name == arrRadBut[i])
		radio_button.Disabled();
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...but I was not aware of how to get the parent object of &lt;EM&gt;radio_button&lt;/EM&gt; in order to access and&amp;nbsp; modify the properties.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also was keeping the array with the IDs since I knew the&amp;nbsp;DGDisableItem(32500, arrRadBut[k]); approach was already working.&amp;nbsp; Regardless, the&amp;nbsp;"PanelOpened" dialog never appears by means of the&amp;nbsp;JHP_UL_Dialog::PanelOpened function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope other newbs stumble on to this and find these basics enlightening.&lt;/P&gt;&lt;P&gt;You have been very helpful, yet the search continues...&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 22:12:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Radio-Buttons-Enable-Disable-ability-to-select-at-runtime/m-p/362105#M1669</guid>
      <dc:creator>MudratDetector</dc:creator>
      <dc:date>2022-11-15T22:12:18Z</dc:date>
    </item>
  </channel>
</rss>

