<?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: DG Items Class (Separator, EditSpin, MultiSelListBox) in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/DG-Items-Class-Separator-EditSpin-MultiSelListBox/m-p/305074#M2111</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1. The dialog Manager decides the type of the separator by comparing the horizontal and vertical sizes of the control.&lt;/P&gt;&lt;P&gt;2. The order of the edit and the editspin control is important. The edit control should be preceeding the spin control which follows it in the resource. In the sample code above the edit control was created with an empty rect.&lt;/P&gt;&lt;P&gt;3. Currently multisel listboxes can have the ontab item only on the first selected row.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Sep 2021 13:43:00 GMT</pubDate>
    <dc:creator>Miklos Vegh</dc:creator>
    <dc:date>2021-09-07T13:43:00Z</dc:date>
    <item>
      <title>DG Items Class (Separator, EditSpin, MultiSelListBox)</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/DG-Items-Class-Separator-EditSpin-MultiSelListBox/m-p/275910#M2109</link>
      <description>&lt;P class="actalk-migrated-content"&gt;I created a palette dialog and use some of the dialog item classes. But these three seems to not work for me.&lt;BR /&gt;&lt;BR /&gt;Palette declaration&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;class MyPalette : public DG::Palette,
  // observers
  public DG::CompoundItemObserver
{
  // dialog items
  DG::Separator       m_separatorV;
  DG::Separator       m_separatorH;
  DG::IntEdit         m_intEdit;
  DG::EditSpin        m_editSpin;
  //.. more codes ..&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="actalk-migrated-content"&gt;&lt;BR /&gt;Palette constructor (initial size and position)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;AtdDoorSignCounterPlt::AtdDoorSignCounterPlt() :
  DG::Palette(DG::NativePoint(), 125, 100, m_guid, VGrow, Close, TopCaption),
  m_separatorV(GetReference(), DG::Rect(1, 1, 2, 2)),
  m_separatorH(GetReference(), DG::Rect(1, 1, 2, 2)),
  m_intEdit(GetReference(), DG::Rect()),
  m_editSpin(GetReference(), DG::Rect(0, 0, 10, 25), m_intEdit),
  //.. more codes (including actual size and position of items and Show() functions are called)..&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;IMG src="https://archicad-talk.graphisoft.com/download/file.php?mode=view&amp;amp;id=45270" border="0" /&gt;&lt;BR /&gt;&lt;STRONG&gt;ERR:&lt;/STRONG&gt; m_editInt should be m_intEdit in this image&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Separator (SOLVED, see comment below)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;It seems that DG::Separator only caters vertical separator. As seen on the image above, m_separatorV is okay. But m_separatorH (highlighted by white color) only has left "border". Do I have to do or set values to make it a horizontal line?&lt;BR /&gt;&lt;BR /&gt;Currently, I am using GroupBox as horizontal separator.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;EditSpin&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;The created EditSpin (up/down buttons) does not show. Only the IntEdit is visible.&lt;BR /&gt;&lt;BR /&gt;Currently, I am using SingleSpin and IntEdit. Whenever SingleSpin changes (clicked), IntEdit will be updated; and vice versa.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;MultiSelListBox&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;When a multiple item is selected then SetOnTabItem() is called, the item will only be place on the first selected item in the list. If you are on the last of the list, you will not notice that the item is already set to the tab index. Is there a way to let it be placed on any of the selected items? Like, instead of SetOnTabItem(tabIndex, item) we'll be using SetOnTabItem(listItem, tabIndex, item).&lt;BR /&gt;&lt;BR /&gt;Currently, whenever I call SetOnTabItem() I will also call SetScrollPosition() so that the first selected item will be visible.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Sep 2021 07:34:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/DG-Items-Class-Separator-EditSpin-MultiSelListBox/m-p/275910#M2109</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2021-09-14T07:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: DG Items Class (Separator, EditSpin, MultiSelListBox)</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/DG-Items-Class-Separator-EditSpin-MultiSelListBox/m-p/275911#M2110</link>
      <description>&lt;B&gt;Separator&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
I changed the Rect(1, 1, 2, 2) to Rect(1, 1, 5, 2) and the horizontal separator is now okay.&lt;BR /&gt;

&lt;PRE&gt;m_separatorH(GetReference(), DG::Rect(1, 1, 5, 2)),&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Jun 2021 09:51:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/DG-Items-Class-Separator-EditSpin-MultiSelListBox/m-p/275911#M2110</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2021-06-23T09:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: DG Items Class (Separator, EditSpin, MultiSelListBox)</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/DG-Items-Class-Separator-EditSpin-MultiSelListBox/m-p/305074#M2111</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1. The dialog Manager decides the type of the separator by comparing the horizontal and vertical sizes of the control.&lt;/P&gt;&lt;P&gt;2. The order of the edit and the editspin control is important. The edit control should be preceeding the spin control which follows it in the resource. In the sample code above the edit control was created with an empty rect.&lt;/P&gt;&lt;P&gt;3. Currently multisel listboxes can have the ontab item only on the first selected row.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 13:43:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/DG-Items-Class-Separator-EditSpin-MultiSelListBox/m-p/305074#M2111</guid>
      <dc:creator>Miklos Vegh</dc:creator>
      <dc:date>2021-09-07T13:43:00Z</dc:date>
    </item>
  </channel>
</rss>

