cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum

Dialog function errors

ReignBough
Booster
Is there a way to get the error a dialog function encounters? Example, DGAppendDialogItem() returns 0 if an error was encountered. But what is this error? Did I pass a wrong ID, type, sub-type, etc? Is there a function that I can call to get this error, like GetLastError().

EDIT 1: 2014 Sep 10

I asked this since I am unable to add a button on AC18. Here is my code:
short my_idx = DGAppendDialogItem(iDialId, DG_ITM_BUTTON, DG_BT_TEXT, 0, 10, 10, 80, 30);
if (my_idx == 0) WriteReport("[DialogTypes] Error! Cannot append ItemType: DG_ITM_BUTTON");
DGShowItem(iDialId, my_idx);
DGSetItemText(iDialId, my_idx, "Okay");
~ReignBough~
ARCHICAD 24 INT 4018 FULL (from AC18)
Windows 10 Pro, Intel Core i7-4790 CPU @ 3.60GHz, 32.0GB RAM, 64-bit OS
1 REPLY 1

ReignBough
Booster
On EDIT 1

Found out that DG_BT_ICONTEXT is now used as sub-type for buttons.
~ReignBough~
ARCHICAD 24 INT 4018 FULL (from AC18)
Windows 10 Pro, Intel Core i7-4790 CPU @ 3.60GHz, 32.0GB RAM, 64-bit OS

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!