License Delivery maintenance is expected to occur on Saturday, November 30, between 8 AM and 11 AM CET. This may cause a short 3-hours outage in which license-related tasks: license key upload, download, update, SSA validation, access to the license pool and Graphisoft ID authentication may not function properly. We apologize for any inconvenience.
Archicad C++ API
About Archicad add-on development using the C++ API.

DGShowModelessDialog wrong number of arguments

Anonymous
Not applicable
Hello everyone.

I need some help here because I've got a quite weird issue with the DGShowModelessDialog function.
Here's the code :

short idPalette;
//Creation of the blank palette (for test purposes)
idPalette = DGCreateBlankPalette(500, 60, DG_DLG_NOGROW, DG_DLG_CLOSE, DG_DLG_TOPCAPTION, DG_DLG_THICKFRAME, ModulePerso_Handler, 0);
//If the creation succeeded
if(idPalette != 0)
			{
				//We start processing events
				DGBeginProcessEvents(idPalette);
				//We show the palette
				DGShowModelessDialog(idPalette);
			}
Then when I build the add-on, I've got 1 error, weird one thought, about :
"DGShowModelessDialog : function doesn't require 1 parameter"

Thought that the function only requires the ID of the previously created blank palette !
Does someone have a clue on this ?
I took a look into the Dialog Manager 2.0 and i don't see where i'm wrong...

Thanks for the help !
2 REPLIES 2
Ralph Wessel
Mentor
atila-diffusion wrote:
I need some help here because I've got a quite weird issue with the DGShowModelessDialog function.
...when I build the add-on, I've got 1 error, weird one thought, about :
"DGShowModelessDialog : function doesn't require 1 parameter"
From ArchiCAD 14, the call DGShowModelessDialog requires 2 parameters, although it isn't documented. The second parameter sets the focus for the dialog, e.g. DG_DF_FIRST.
Ralph Wessel BArch
Software Engineer Speckle Systems
Anonymous
Not applicable
Oh okay ! Thanks a lot Ralph !

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!