cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
2024 Technology Preview Program

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

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

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!