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

retrieve the dimensions of a dialog

Anonymous
Not applicable
Hello,

I use the function DGGetDialogSize() for retrieve the size of a dialog palette, but the function doesn't work

This is the syntax -> "DGGetDialogSize(cntlDlgData.dialID, DG_ORIGFRAME, NULL, NULL);"

The function appear when I initialize the palette

Can anybody help me ?

Thanks
4 REPLIES 4

Tibor Lorantfy
Graphisoft Alumni
Graphisoft Alumni
Hi,
atila-diffusion wrote:
This is the syntax -> "DGGetDialogSize(cntlDlgData.dialID, DG_ORIGFRAME, NULL, NULL);"
The third and fourth parameters are pointers to the width and height of the given dialog. If either of these pointers are NULL, that value is not returned.

You should use the function like this:
short width;
short height;
DGGetDialogSize (cntlDlgData.dialID, DG_ORIGFRAME, &width, &height);
Regards,
Tibi

Anonymous
Not applicable
Thanks for your response.

But I have already try this method and no success
I don't understand why...

Anonymous
Not applicable
Ok I found a solution.

I have export my preference and the palette have the good size.

Thanks

Anonymous
Not applicable
Hi guys,

So I have the same problem, I use the function DGGetDialogSize() and I have delete "preferences" folder (x86). But this time the modal dialog don't change her size...

Any idea ?

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!