BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

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
Archicad 25 5010 INT FULL
Archicad 26 5002 INT FULL
Visual Studio Professional 2019
Win 10 Pro 64-bit
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.
Archicad 25 5010 INT FULL
Archicad 26 5002 INT FULL
Visual Studio Professional 2019
Win 10 Pro 64-bit

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.
Archicad 25 5010 INT FULL
Archicad 26 5002 INT FULL
Visual Studio Professional 2019
Win 10 Pro 64-bit
Learn and get certified!

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!