<?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 are you supposed to set up column headers in ListBox in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-are-you-supposed-to-set-up-column-headers-in-ListBox/m-p/138251#M5756</link>
    <description>&lt;BLOCKQUOTE&gt;LesWoolsey wrote:&lt;BR /&gt;I'm trying to make a ListBox that shows multiple columns.  I can get that much working but I can only seem to put a header on the first column.&lt;/BLOCKQUOTE&gt;
Have you tried setting the number of columns first and then applying the header?</description>
    <pubDate>Mon, 22 Apr 2013 11:02:44 GMT</pubDate>
    <dc:creator>Ralph Wessel</dc:creator>
    <dc:date>2013-04-22T11:02:44Z</dc:date>
    <item>
      <title>How are you supposed to set up column headers in ListBox.</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-are-you-supposed-to-set-up-column-headers-in-ListBox/m-p/138250#M5755</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;I'm trying to make a ListBox that shows multiple columns. I can get that much working but I can only seem to put a header on the first column. Here's my code:&lt;BR /&gt;&lt;BR /&gt;DGListSetHeaderItemCount(dialogID, ResultsList, 2); &lt;BR /&gt;DGListSetHeaderFlags(dialogID, ResultsList, true, false, false); &lt;BR /&gt;DGListSetHeaderItemFlags(dialogID, ResultsList, 1, DG_IS_LEFT|DG_IS_NOTRUNC, true);&lt;BR /&gt;DGListSetHeaderItemText(dialogID, ResultsList, 1, "Property"); &lt;BR /&gt;DGListSetHeaderItemFlags(dialogID, ResultsList, 2, DG_IS_LEFT|DG_IS_NOTRUNC, true); &lt;BR /&gt;DGListSetHeaderItemText(dialogID, ResultsList, 2, "Value"); &lt;BR /&gt;&lt;BR /&gt;//set up the columns&lt;BR /&gt;w = DGListGetItemWidth(dialogID, ResultsList);&lt;BR /&gt;DGListSetTabFieldCount (dialogID, ResultsList, 2); //two columns in the data&lt;BR /&gt;DGListSetTabFieldData(dialogID, ResultsList, 1, 0, w/2-1, DG_IS_LEFT, DG_IS_NOTRUNC, true, true);&lt;BR /&gt;DGListSetTabFieldData(dialogID, ResultsList, 2, w/2, w, DG_IS_LEFT, DG_IS_NOTRUNC, false, true);&lt;BR /&gt;&lt;BR /&gt;//some test data&lt;BR /&gt;DGListInsertItem (dialogID, ResultsList, DG_LIST_BOTTOM);&lt;BR /&gt;DGListSetItemText (dialogID, ResultsList, DG_LIST_BOTTOM, "testppty\ttestvalue");&lt;BR /&gt;&lt;BR /&gt;I saw another post that suggested that you have to set the header size, eg&lt;BR /&gt;(DGListSetHeaderItemSize(dialogID, ResultsList, 1, 100);&lt;BR /&gt;but that doesn't seem to have any effect on the problem.&lt;BR /&gt;&lt;BR /&gt;How do I get the header text on the second column to appear?&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Aug 2023 12:44:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-are-you-supposed-to-set-up-column-headers-in-ListBox/m-p/138250#M5755</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-02T12:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: How are you supposed to set up column headers in ListBox</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-are-you-supposed-to-set-up-column-headers-in-ListBox/m-p/138251#M5756</link>
      <description>&lt;BLOCKQUOTE&gt;LesWoolsey wrote:&lt;BR /&gt;I'm trying to make a ListBox that shows multiple columns.  I can get that much working but I can only seem to put a header on the first column.&lt;/BLOCKQUOTE&gt;
Have you tried setting the number of columns first and then applying the header?</description>
      <pubDate>Mon, 22 Apr 2013 11:02:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-are-you-supposed-to-set-up-column-headers-in-ListBox/m-p/138251#M5756</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2013-04-22T11:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: How are you supposed to set up column headers in ListBox</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-are-you-supposed-to-set-up-column-headers-in-ListBox/m-p/138252#M5757</link>
      <description>That fixed it thanks!</description>
      <pubDate>Mon, 22 Apr 2013 15:15:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-are-you-supposed-to-set-up-column-headers-in-ListBox/m-p/138252#M5757</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-22T15:15:24Z</dc:date>
    </item>
  </channel>
</rss>

