Item Index Property |
Post Reply |
Author | |
ManSys
Newbie Joined: 02 February 2010 Location: United Kingdom Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 21 January 2012 at 7:12pm |
We are using the Task Panel as a menu, separating the menu groups into taskpanel groups.
We're letting the user drag items around within the groups but not across groups. However, we want to be able to save/load the positions of the menu items (taskpanelgroupitems). We've looked at the ItemDrop event but it doesn't seem to fire at the right time. We're using this code to check out the positions, but the same item appears twice, where it was and where it is now;
Why? How do we go about saving the positions?
|
|
-
ManSys Limited |
|
Carlos Rocha
Groupie Joined: 11 February 2008 Location: Portugal Status: Offline Points: 92 |
Post Options
Thanks(0)
|
Still not possible with 16.3.1
The solution is: - Store a reference to the item being dragged within BeginDrag: Set m_ItemDragged = Item - Use xtpTaskItemAllowDragCopyWithinGroup instead of xtpTaskItemAllowDragMoveWithinGroup - Inside ItemDrop: Item.Group.Items.Move m_ItemDragged, Item:Index |
|
SuitePro 20.3.0
OS: Windows 10 Language: Visual Objects 2.8 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |