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.

[SOLVED] DGSplitButtonGetSelectedItem?

ReignBough
Enthusiast
I created a button of sub-type DG_BT_SPLIT and tried to get the selected item.

In dialog class, you can do this by creating a callback function for SplitButtonPopupChanged and get the selected item by calling SplitButton->GetSelectedItem().

But I am doing this using the Dialog Manager and I can't find the equivalent function of SplitButton->GetSelectedItem(). Since the message data is always zero, I presumed it was DGSplitButtonGetSelectedItem(), but I was wrong.
~ReignBough~
ARCHICAD 26 INT (from AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
1 REPLY 1
ReignBough
Enthusiast
Found it. One should use DGPopUpGetSelected() for this.
~ReignBough~
ARCHICAD 26 INT (from AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
Learn and get certified!