BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
Archicad C++ API
About Archicad add-on development using the C++ API.

Button color

Not applicable
stuck with the API again
I'm trying to make a simple colored button. It can also be a static text on a colored background.

I tried:
DG::Button - no method SetBackgroundColor
DG::CenterText - also no method SetBackgroundColor
DG::UserItem with DG::CenterText - UserItem is always on top, so text is not visible, alpha channel in Gfx::Color is ignored...

Is there any simple trick to achieve that? I dont want to use images...

I would really appreciate some documentation for the C++ OOP section of DG, because there isnt any (neither in DevKit doc, nor in headers...)
Learn and get certified!