[SOLVED] DGSplitButtonGetSelectedItem?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2016-04-19
07:55 AM
- last edited on
2023-07-12
09:08 PM
by
Doreena Deng
2016-04-19
07:55 AM
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.
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
ARCHICAD 26 INT (from AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
Labels:
- Labels:
-
Add-On (C++)
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2016-04-20 04:23 AM
2016-04-20
04:23 AM
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
ARCHICAD 26 INT (from AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS