<?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 can I put a button onto an IRollPanel? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-can-I-put-a-button-onto-an-IRollPanel/m-p/15400#M7380</link>
    <description>You need to create DG::TabPage(s) and pass this tabControl(s) reference to the TabPage's constructor. Buttons and other controls may be placed (GRC or dynamically) in a TabPage but not TabContlol.</description>
    <pubDate>Tue, 27 Mar 2007 10:43:06 GMT</pubDate>
    <dc:creator>Oleg</dc:creator>
    <dc:date>2007-03-27T10:43:06Z</dc:date>
    <item>
      <title>How can I put a button onto an IRollPanel?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-can-I-put-a-button-onto-an-IRollPanel/m-p/15399#M7379</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;I created a window with 2 rolldownpanels with the following code but I could not put any control onto the panels.&lt;BR /&gt;How can I put for example a DG::Button on one of the panels?&lt;BR /&gt;
&lt;PRE&gt;// Dlg_Alma.h
#pragma once
#include "UDRollDownDialogs.hpp"

class Dlg_Alma : public UD::RollDownModalDialog
{
public:
      Dlg_Alma();
private:
      void CreateRollPanel(UD::IRollDownPanelSet&amp;amp; rdps, GS::String title);
};

// Dlg_Alma.cpp
#include ".\dlg_alma.h"

Dlg_Alma::Dlg_Alma() : UD::RollDownModalDialog("OK", 80, "Cancel", 80)
{
      SetTitle("alma");
      UD::IRollDownSurface* rds = GetRollDownSurface();
      UD::IRollDownPanelSet* rdps = rds-&amp;gt;CreateRollDownPanelSet();
      CreateRollPanel(*rdps, "alma");
      CreateRollPanel(*rdps, "korte");
}

void Dlg_Alma::CreateRollPanel(UD::IRollDownPanelSet&amp;amp; rdps, GS::String title)
{
      UD::IRollPanel* rp = rdps.CreateRollDownPanel();
      rp-&amp;gt;SetTitle(title);
      const DG::SimpleTab&amp;amp; st = rp-&amp;gt;GetTabControl();
      DG::SimpleTab&amp;amp; nc_st = const_cast&amp;lt;DG::SimpleTab&amp;amp;&amp;gt;(st);
      nc_st.SetClientSize(500, 300);      
}

// Main.cpp
GSResModule oldResModule = ACAPI_UseOwnResModule();
DGResetDialogRectangles();
Dlg_Alma dlg_Alma;
dlg_Alma.Invoke();
ACAPI_ResetResModule(oldResModule);
&lt;/PRE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 07 Aug 2023 08:09:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-can-I-put-a-button-onto-an-IRollPanel/m-p/15399#M7379</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-07T08:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can I put a button onto an IRollPanel?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-can-I-put-a-button-onto-an-IRollPanel/m-p/15400#M7380</link>
      <description>You need to create DG::TabPage(s) and pass this tabControl(s) reference to the TabPage's constructor. Buttons and other controls may be placed (GRC or dynamically) in a TabPage but not TabContlol.</description>
      <pubDate>Tue, 27 Mar 2007 10:43:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-can-I-put-a-button-onto-an-IRollPanel/m-p/15400#M7380</guid>
      <dc:creator>Oleg</dc:creator>
      <dc:date>2007-03-27T10:43:06Z</dc:date>
    </item>
  </channel>
</rss>

