2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations
2015-03-04
01:09 PM
- last edited on
2023-08-01
01:35 PM
by
Doreena Deng
'GDLG' 32580 Modal | normalFrame | noGrow 0 0 310 540 " Configuration " {How can I force the dialog to use the new height pls? I know the height is stored in the Windows registry, but I cannot get all the users of my plugin to hack their registry to fix this.
2015-03-04 01:23 PM
paulk wrote:You can try by this way
Hi
I have a modal dialog defined in a GRC file with a fixed width/height. This dialog has been unchanged for 12 months, however now I need to add 5 fields to it - so the height needs to be increased. But when I increase the height in the GRC file it "remembers" the old height.
The GRC set up the modal dialog as:'GDLG' 32580 Modal | normalFrame | noGrow 0 0 310 540 " Configuration " {How can I force the dialog to use the new height pls? I know the height is stored in the Windows registry, but I cannot get all the users of my plugin to hack their registry to fix this.
Thanks
Paul
2015-03-05 03:45 AM
DGModalDialog (ACAPI_GetOwnResModule(), ConfigurationDLG_GDLGID, ACAPI_GetOwnResModule(), ConfigurationDlgCallBack, NULL);I tried adding
DGSetDialogMinSize (ConfigurationDLG_GDLGID, DG_FRAME, 310, 700);in the DG_MSG_INIT handler, but that does nothing.
2015-03-05 11:47 AM
paulk wrote:You can avoid hardcoding the size by asking the API to give you the size of the dialog as defined in the resources. Just call
Using DGSetDialogSize in the DG_MSG_INIT handler works. A bit odd needing to hardcode the dialog size, but it resolves the issue.
2015-03-06 04:29 AM