2023-06-23 10:42 AM - edited 2023-07-11 12:03 PM
We have an add-on with a DG::PopUp that works on Win10 below using SetSize() and SetRect(). But when we use the add-on on a Win11, the popup did not show.
I tried modifying the code using SetPosition(), SetWidth(), and SetHeight() instead, and the popup did show.
Is this a bug or there is a new way to call SetSize() and SetRect() for DG::PopUp?
BTW, for other DG items that we used, the SetSize() and SetRect() are working fine. But we are not sure if this is the case for all of DG items.
EDIT (2023-Jun-26):
Apparently, the content of the DG::PopUp is also bugged. When clicking on the item, the list contains nothing but blanks. A lot of blanks.
Solved! Go to Solution.
2023-08-04 12:01 PM
Found it. When we are creating pop-up/combo item, the DG::Rect() is void:
PopUpFoo (GetReference(), DG::Rect(), POPUP_VSIZE, POPUP_TEXTOFFSET)
It should have been initialized with values:
PopUpFoo (GetReference(), DG::Rect(XPOS, YPOS, XPOS + POPUP_WIDTH, YPOS + POPUP_HEIGHT), POPUP_VSIZE, POPUP_TEXTOFFSET)
2023-08-04 12:01 PM
Found it. When we are creating pop-up/combo item, the DG::Rect() is void:
PopUpFoo (GetReference(), DG::Rect(), POPUP_VSIZE, POPUP_TEXTOFFSET)
It should have been initialized with values:
PopUpFoo (GetReference(), DG::Rect(XPOS, YPOS, XPOS + POPUP_WIDTH, YPOS + POPUP_HEIGHT), POPUP_VSIZE, POPUP_TEXTOFFSET)