We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2007-03-26 07:18 PM - last edited on 2023-08-07 10:09 AM by Doreena Deng
// Dlg_Alma.h #pragma once #include "UDRollDownDialogs.hpp" class Dlg_Alma : public UD::RollDownModalDialog { public: Dlg_Alma(); private: void CreateRollPanel(UD::IRollDownPanelSet& 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->CreateRollDownPanelSet(); CreateRollPanel(*rdps, "alma"); CreateRollPanel(*rdps, "korte"); } void Dlg_Alma::CreateRollPanel(UD::IRollDownPanelSet& rdps, GS::String title) { UD::IRollPanel* rp = rdps.CreateRollDownPanel(); rp->SetTitle(title); const DG::SimpleTab& st = rp->GetTabControl(); DG::SimpleTab& nc_st = const_cast<DG::SimpleTab&>(st); nc_st.SetClientSize(500, 300); } // Main.cpp GSResModule oldResModule = ACAPI_UseOwnResModule(); DGResetDialogRectangles(); Dlg_Alma dlg_Alma; dlg_Alma.Invoke(); ACAPI_ResetResModule(oldResModule);
2007-03-27 12:43 PM