<?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: How to display the headers of the ListBox? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-display-the-headers-of-the-ListBox/m-p/151587#M6534</link>
    <description>When creating class-based list box with header, the list box is not created. Also when HasHeader() is called, it will return false whether headerFlag is set to Header or NoHeader.&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;SingleSelListBox (
    const Panel &amp;amp;       panel,
    const Rect &amp;amp;        rect,
    ScrollType          scroll = VScroll,
    PartialItemType     part = PartialItems,
    HeaderFlag          headerFlag = NoHeader,   &amp;lt;------------------
    short               headerSize = 0
);

MultiSelListBox (
    const Panel &amp;amp;       panel,
    const Rect &amp;amp;        rect,
    ScrollType          scroll = VScroll,
    PartialItemType     part = PartialItems,
    HeaderFlag          headerFlag = NoHeader,   &amp;lt;------------------
    short               headerSize = 0);
&lt;/PRE&gt;</description>
    <pubDate>Tue, 27 Sep 2016 07:05:02 GMT</pubDate>
    <dc:creator>ReignBough</dc:creator>
    <dc:date>2016-09-27T07:05:02Z</dc:date>
    <item>
      <title>How to display the headers of the ListBox?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-display-the-headers-of-the-ListBox/m-p/151585#M6532</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;In my ListBox, it has Three headers.
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;DGListSetHeaderItemCount(dialId, item, 3);
DGListSetHeaderFlags(dialId, item, true, false, false);
DGListSetHeaderItemFlags(dialId, item, 1, DG_IS_CENTER|DG_IS_TRUNCMIDDLE, false);
DGListSetHeaderItemText(dialId, item, 1, "ID");

DGListSetHeaderItemFlags(dialId, item, 2, DG_IS_CENTER|DG_IS_TRUNCMIDDLE, false);
DGListSetHeaderItemText(dialId, item, 2, "Length");

DGListSetHeaderItemFlags(dialId, item, 3, DG_IS_CENTER|DG_IS_TRUNCMIDDLE, false);
DGListSetHeaderItemText(dialId, item, 3, "Has");
&lt;/PRE&gt;
But They can not display all. &lt;BR /&gt;&lt;BR /&gt;Why??&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/68219iDFE1961F82B35BD7/image-size/large?v=v2&amp;amp;px=999" border="0" alt="ListBoxHeader.jpg" title="ListBoxHeader.jpg" /&gt;</description>
      <pubDate>Fri, 04 Aug 2023 12:41:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-display-the-headers-of-the-ListBox/m-p/151585#M6532</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-04T12:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to display the headers of the ListBox?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-display-the-headers-of-the-ListBox/m-p/151586#M6533</link>
      <description>You have to set the header item size as well with DGListSetHeaderItemSize.&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps,&lt;BR /&gt;
&lt;BR /&gt;
Akos</description>
      <pubDate>Thu, 05 Feb 2009 15:50:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-display-the-headers-of-the-ListBox/m-p/151586#M6533</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2009-02-05T15:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to display the headers of the ListBox?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-display-the-headers-of-the-ListBox/m-p/151587#M6534</link>
      <description>When creating class-based list box with header, the list box is not created. Also when HasHeader() is called, it will return false whether headerFlag is set to Header or NoHeader.&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;SingleSelListBox (
    const Panel &amp;amp;       panel,
    const Rect &amp;amp;        rect,
    ScrollType          scroll = VScroll,
    PartialItemType     part = PartialItems,
    HeaderFlag          headerFlag = NoHeader,   &amp;lt;------------------
    short               headerSize = 0
);

MultiSelListBox (
    const Panel &amp;amp;       panel,
    const Rect &amp;amp;        rect,
    ScrollType          scroll = VScroll,
    PartialItemType     part = PartialItems,
    HeaderFlag          headerFlag = NoHeader,   &amp;lt;------------------
    short               headerSize = 0);
&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Sep 2016 07:05:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-display-the-headers-of-the-ListBox/m-p/151587#M6534</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2016-09-27T07:05:02Z</dc:date>
    </item>
  </channel>
</rss>

