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.
SOLVED!

[BUG?] AC22 Popup Ctrl on ListBox not appearing after resize

Erenford
Booster
Greetings, I've been updating addons to AC 22 and found out that the Popup Ctrl appears when I set it on the List Box tab field, but disappears and no longer appeared after I resized the dialog (and thus the ListBox, its column and the Popup Ctrl).

After further testing I pinpointed the problem to Popup Ctrl no longer usable if you resized it. Even if you resize it right after DGAppendDialogItem on DG_MSG_INIT, it doesn't appear when you set it on the tab field.

I tried replacing it with a Button or Edit Ctrl and it doesn't have this problem, I can resize it and I can still use it on List Box tab field.

FYI I'm using palette dialog and no class just the DG functions
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Erenford
Booster
Sorry my bad, I found the source of the problem:

On DGAppendDialogItem() for Popup-Ctrl:
Before (AC 21 and below) -> itemSubType = NULL (no errors, no problem)
Current (AC 22) -> I tried filling up itemSubType with an appropriate height (right now the Y size of Popup-Ctrl)
It now works and no longer disappear when resizing.

View solution in original post

1 REPLY 1
Solution
Erenford
Booster
Sorry my bad, I found the source of the problem:

On DGAppendDialogItem() for Popup-Ctrl:
Before (AC 21 and below) -> itemSubType = NULL (no errors, no problem)
Current (AC 22) -> I tried filling up itemSubType with an appropriate height (right now the Y size of Popup-Ctrl)
It now works and no longer disappear when resizing.

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!