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

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

Archicad C++ API
About Archicad add-on development using the C++ API.
SOLVED!

Dialog's GSResModule [SOLVED]

ReignBough
Enthusiast
The previous API does not require this value. Example:
void DGGetDialogSize (short dialId, short rectType, short* hSize, short*  vSize);
now it is:
void DGGetDialogSize (GSResModule dialResModule, short dialId, short rectType, short* hSize, short* vSize);
Where do we get the value for this dialResModule.

Also, the documentation for AC18 API still uses the first one. So, we are not sure where to get it.

Some other DG functions are also not available on AC18 like DGSetDialogIconId(), DGSetItemImageId() and DGListSetTabItemIconId().
~ReignBough~
ARCHICAD 26 INT (from AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Tibor Lorantfy
Graphisoft Alumni
Graphisoft Alumni
Hi,

the documentation of DG module functions is still not updated, we are working on this.

You can use the DGGetDialogResourceModule (dialID) function to get a dialog's GSResModule.
So you can call the function like this:
DGGetDialogSize (DGGetDialogResourceModule (dialID), dialID, DG_ORIGCLIENT, &hSize, &vSize);


Regards,
Tibor

View solution in original post

2 REPLIES 2
Solution
Tibor Lorantfy
Graphisoft Alumni
Graphisoft Alumni
Hi,

the documentation of DG module functions is still not updated, we are working on this.

You can use the DGGetDialogResourceModule (dialID) function to get a dialog's GSResModule.
So you can call the function like this:
DGGetDialogSize (DGGetDialogResourceModule (dialID), dialID, DG_ORIGCLIENT, &hSize, &vSize);


Regards,
Tibor
ReignBough
Enthusiast
Thanks
~ReignBough~
ARCHICAD 26 INT (from AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS