<?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 TreeView state-icon size &amp;amp; removal of blank space of state-icon in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/TreeView-state-icon-size-amp-removal-of-blank-space-of-state/m-p/307982#M1771</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I'm trying to remove the gap between the normal-icon and the arrow(collapse/expand) icon of a treeView item. If I don't set the state-icon, there appears a blank space creating a gap. I tried setting a state-icon and then setting its size to zero, but that did not help.&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;treeView.SetItemStateIcon(treeItemIndex, DG::Icon (ACAPI_GetOwnResModule(), (short) DashIconId));
treeView.SetStateIconSize(0, 0); // omit state icon by setting its size to zero&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I avoid the state-icon and get rid of that blank space?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Sep 2021 23:43:00 GMT</pubDate>
    <dc:creator>dushyant</dc:creator>
    <dc:date>2021-09-30T23:43:00Z</dc:date>
    <item>
      <title>TreeView state-icon size &amp; removal of blank space of state-icon</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/TreeView-state-icon-size-amp-removal-of-blank-space-of-state/m-p/307982#M1771</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I'm trying to remove the gap between the normal-icon and the arrow(collapse/expand) icon of a treeView item. If I don't set the state-icon, there appears a blank space creating a gap. I tried setting a state-icon and then setting its size to zero, but that did not help.&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;treeView.SetItemStateIcon(treeItemIndex, DG::Icon (ACAPI_GetOwnResModule(), (short) DashIconId));
treeView.SetStateIconSize(0, 0); // omit state icon by setting its size to zero&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I avoid the state-icon and get rid of that blank space?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 23:43:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/TreeView-state-icon-size-amp-removal-of-blank-space-of-state/m-p/307982#M1771</guid>
      <dc:creator>dushyant</dc:creator>
      <dc:date>2021-09-30T23:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: TreeView state-icon size &amp; removal of blank space of state-icon</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/TreeView-state-icon-size-amp-removal-of-blank-space-of-state/m-p/308181#M1772</link>
      <description>&lt;P&gt;Hi try to set the empty icon as the state icon of the treeview control.&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;treeView.SetItemStateIcon(treeItemIndex, DG::Icon ());
treeView.SetStateIconSize(0, 0);&lt;/LI-CODE&gt;&lt;P&gt;DG::Icon has an empty constructor that sets the iconId to DG_NO_ICON.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 13:43:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/TreeView-state-icon-size-amp-removal-of-blank-space-of-state/m-p/308181#M1772</guid>
      <dc:creator>Miklos Vegh</dc:creator>
      <dc:date>2021-10-04T13:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: TreeView state-icon size &amp; removal of blank space of state-icon</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/TreeView-state-icon-size-amp-removal-of-blank-space-of-state/m-p/308186#M1773</link>
      <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/16450"&gt;@Miklos Vegh&lt;/a&gt;&amp;nbsp; That did not help.. No change.. The same gap appears.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 14:10:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/TreeView-state-icon-size-amp-removal-of-blank-space-of-state/m-p/308186#M1773</guid>
      <dc:creator>dushyant</dc:creator>
      <dc:date>2021-10-04T14:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: TreeView state-icon size &amp; removal of blank space of state-icon</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/TreeView-state-icon-size-amp-removal-of-blank-space-of-state/m-p/308301#M1774</link>
      <description>&lt;P&gt;Please try to set the icon sizes in the grc file like so:&lt;/P&gt;&lt;P&gt;SingleSelTreeView 10 10 100 100 LargePlain &lt;STRONG&gt;18 18 0 0&lt;/STRONG&gt; noLabelEdit noDragDrop 0.&lt;/P&gt;&lt;P&gt;Here 18 18 are the normal icon sizes and 0 0 are state icon sizes.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 07:17:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/TreeView-state-icon-size-amp-removal-of-blank-space-of-state/m-p/308301#M1774</guid>
      <dc:creator>Miklos Vegh</dc:creator>
      <dc:date>2021-10-05T07:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: TreeView state-icon size &amp; removal of blank space of state-icon</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/TreeView-state-icon-size-amp-removal-of-blank-space-of-state/m-p/308302#M1775</link>
      <description>&lt;P&gt;Yes, that worked! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 07:22:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/TreeView-state-icon-size-amp-removal-of-blank-space-of-state/m-p/308302#M1775</guid>
      <dc:creator>dushyant</dc:creator>
      <dc:date>2021-10-05T07:22:54Z</dc:date>
    </item>
  </channel>
</rss>

