cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
YONGWOO KIM
Participant

PopUp control's item count

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?

1 Solution

Accepted Solutions
Tamas Polyak
Graphisoft
Graphisoft

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

Go to post

2 Replies 2

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.

Ralph Wessel BArch
Central Innovation
Tamas Polyak
Graphisoft
Graphisoft

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

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!