The Global Archicad Community

Stay informed. Get help. Share your knowledge.

Discussions about using GRAPHISOFT's tools (API DevKit) for independent software developers

Moderators: Karl Ottenstein, LaszloNagy, ejrolon, Barry Kelly, gkmethy, rmasaki, MOREH Tamas, Akos Somorjai, Ed Brown, Mihály Palenik, Tibor Lorántfy

#304418
Hi,

DG::Button has such a constructor is you do not want to load it from a resource file (see DGButton.hpp):

Button (const Panel& panel, const Rect& rect, ButtonType type = Normal, FrameType frameType = Frame);

Pass the palette as the first param, and the desired rect in the second.

Best, Akos
#304451
Akos Somorjai wrote:
Mon Dec 02, 2019 12:52 pm
Hi,

DG::Button has such a constructor is you do not want to load it from a resource file (see DGButton.hpp):

Button (const Panel& panel, const Rect& rect, ButtonType type = Normal, FrameType frameType = Frame);

Pass the palette as the first param, and the desired rect in the second.

Best, Akos
Thanks.
Besides, I want to add a tabpage.TabPage constructor need TabControl.
Snipaste_2019-12-03_08-52-51.png
How can add it?
Thanks.