2026-02-11 02:34 AM - last edited on 2026-02-11 03:22 AM by Barry Kelly
There was a problem inserting items into the PopUp control.
Some of the items I inserted were not displayed.
After checking, it seems the problem was caused by the data type of popupItem in DGPopUpInsertItem (short dialId, short item, short popupItem). I thought this was the cause because the number of items displayed was 32767.
Is this the correct cause? If so, there's no other way than to split the PopUp control, right?
Solved! Go to Solution.
2026-02-11 01:17 PM
Hi,
Unfortunately the control is using short type also for the items, so the maximum number it can contain is 32767.
Splitting it up, or pre-filtering is a workaround.
Best regards,
Tamás
2026-02-11 11:29 AM
I haven't found any problems using DGPopUpInsertItem. Could you post a code snippet showing how you are using the call? The parameters are:
dialId: The dialog identifier
item: The index of the item in the dialog (the target popup control)
popupItem: The index of the position to insert the new item (Note that this is 1-based, i.e. inserting at the top of the menu is index 1). This can also be DG_POPUP_BOTTOM if you want to append a menu item at the bottom.
2026-02-11 01:17 PM
Hi,
Unfortunately the control is using short type also for the items, so the maximum number it can contain is 32767.
Splitting it up, or pre-filtering is a workaround.
Best regards,
Tamás