<?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 How to add check boxes to List Box? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-add-check-boxes-to-List-Box/m-p/279508#M2155</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hi, &lt;BR /&gt;Please tell me if it is possible to add checkboxes to the List Box?&lt;BR /&gt;I have a lot of categories that I want to group in a List Box. These categories are selected through standard checkboxes. Is it possible to add them in this form to the List Box?&lt;/DIV&gt;</description>
    <pubDate>Tue, 14 Sep 2021 07:30:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-09-14T07:30:05Z</dc:date>
    <item>
      <title>How to add check boxes to List Box?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-add-check-boxes-to-List-Box/m-p/279508#M2155</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi, &lt;BR /&gt;Please tell me if it is possible to add checkboxes to the List Box?&lt;BR /&gt;I have a lot of categories that I want to group in a List Box. These categories are selected through standard checkboxes. Is it possible to add them in this form to the List Box?&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 07:30:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-add-check-boxes-to-List-Box/m-p/279508#M2155</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-14T07:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to add check boxes to List Box?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-add-check-boxes-to-List-Box/m-p/308437#M2156</link>
      <description>&lt;P&gt;Hi, the best way to show checkboxes on the listbox lines is to set the special icons defined in DGListBox.hpp with the ListBox::SetTabItemIcon (short listItem, short tabIndex, const DG::Icon&amp;amp; icon) member function. You can use these type of check icons:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;	enum SpecialIcons {
		NoIcon			= DG_NO_ICON,
		DragIcon		= DG_LIST_DRAGICON,
		CheckedIcon		= DG_LIST_CHECKEDICON,
		UncheckedIcon		= DG_LIST_UNCHECKEDICON,
		MixedCheckedIcon	= DG_LIST_MIXEDCHECKEDICON,
		GrayCheckedIcon		= DG_LIST_GRAYCHECKEDICON,
		GrayUncheckedIcon	= DG_LIST_GRAYUNCHECKEDICON,
		GrayMixedCheckedIcon	= DG_LIST_GRAYMIXEDCHECKEDICON,
		FramelessCheckIcon	= DG_LIST_FRAMELESSCHECKICON,
		FramelessGrayCheckIcon	= DG_LIST_FRAMELESSGRAYCHECKICON
	};&lt;/LI-CODE&gt;&lt;P&gt;Whenever the data changes, the corresponding icon should be set on the tabfield.&lt;/P&gt;&lt;P&gt;On a click event the dialog can determine from the click position whether the icon was clicked or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;list.SetTabItemIcon (rowIndex, checkColumn, DG::Icon (SysResModule, DG::ListBox::CheckedIcon));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Putting a checkbox item on the list row with the SetOnTabItem member function is not advised, because the checkbox controls have some background colored frame around which result a bit ugly lookout.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 16:02:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-add-check-boxes-to-List-Box/m-p/308437#M2156</guid>
      <dc:creator>Miklos Vegh</dc:creator>
      <dc:date>2021-10-06T16:02:32Z</dc:date>
    </item>
  </channel>
</rss>

