You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It could be a duplicate of this question, but its no quite the same, but there are no answers here anyways #1884
I wanted to create a listbox during runtime and add, remove and reorder its items with drag&drop, add and remove are pretty easy, no problem there, but for the reorder part, how can I drag the item of a listbox, because I haven't found a dpg object to add a drag_paload to, they are just a list inside the listbox?
And a 2nd question connected to it: how can I detect, where an item is dropped, so when its dropped between 2 other items, I can find the index to put it in between?
I made a simple program, which can add "infinite" items to a listbox, but since I couldn't find anything for my 2 problems, there is no code for them from me
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
It could be a duplicate of this question, but its no quite the same, but there are no answers here anyways #1884
I wanted to create a listbox during runtime and add, remove and reorder its items with drag&drop, add and remove are pretty easy, no problem there, but for the reorder part, how can I drag the item of a listbox, because I haven't found a dpg object to add a drag_paload to, they are just a list inside the listbox?
And a 2nd question connected to it: how can I detect, where an item is dropped, so when its dropped between 2 other items, I can find the index to put it in between?
I made a simple program, which can add "infinite" items to a listbox, but since I couldn't find anything for my 2 problems, there is no code for them from me
Beta Was this translation helpful? Give feedback.
All reactions