CELayoutEditor--add function in tree of DialogMain

Use this forum for:
- Discussion regarding unofficial CEGUI related tools, scripts and utilities.
- User to user help for the obsoleted CELayoutEditor and CEImagesetEditor tools.

Moderators: CEGUI MVP, CEGUI Team

kili
Not too shy to talk
Not too shy to talk
Posts: 45
Joined: Fri Apr 27, 2007 06:17

CELayoutEditor--add function in tree of DialogMain

Postby kili » Tue Jul 03, 2007 09:38

Hi,
I want to drag and drop tree items in CELayoutEditor's
MainDialog.(items can change it's parent and child freedomly)

First,I found that use event.Allow();
in OnBeginDragTree() funtion will cause crash in

treectrl.cpp :

Code: Select all

case TVN_BEGINRDRAG:
            if ( event.IsAllowed() )
            {
                // normally this is impossible because the m_dragImage is
                // deleted once the drag operation is over
                wxASSERT_MSG( !m_dragImage, _T("starting to drag once again?") );

                m_dragImage = new wxDragImage(*this, event.m_item);
                m_dragImage->BeginDrag(wxPoint(0,0), this);
                m_dragImage->Show();   //this line
            }
            break;



Second, when I drop the tree item,
my OnEndDragTree() fuction will never being entered.

Third, how to let the tree item move and follow my mouse?

Could anyone help me to resolve above problems?
Thanks.

ps. I've used Otto Wyss's treelistctrl
but it can't do what I want to do...= =

Return to “Unofficial CEGUI-Related Tools”

Who is online

Users browsing this forum: No registered users and 3 guests