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

[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
Visual Studio Professional 2019
Win 10 Pro 64-bit
Intel Core i7-4790 CPU @ 3.60GHz
1 ACCEPTED SOLUTION

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
Visual Studio Professional 2019
Win 10 Pro 64-bit
Intel Core i7-4790 CPU @ 3.60GHz

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
Visual Studio Professional 2019
Win 10 Pro 64-bit
Intel Core i7-4790 CPU @ 3.60GHz

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!