But i have never seen Drag&Drop in CEGUI. Can i do this with CEGUI? and how? (I use CEGUI with OGRE 1.0.2) May be some code wich show Drag&Drop in CEGUI will help me.
PS: sory for my english
Moderators: CEGUI MVP, CEGUI Team
I have no time to produce any sample code at present, though A wiki tutorial may be on the cards in a couple of weeks ;)
CE.

Basically, you add whatever content you need to a DragContainer, and listen for DragDrop related events on possible target windows; you then decide what to do based upon the events you get.

martignasse wrote:
...and another idea,
example should be found in CEGUI itself because the MultiColumnList implement it.
try to search in CEGUI source code, in the MultiColumnList implementation.
Code: Select all
char mStr[128];
sprintf(mStr, "Inventory/DragContainer/%s", c1);
CEGUI::DragContainer *mDC = (CEGUI::DragContainer *)mWinMgr->createWindow(
"DragContainer", (CEGUI::utf8*)mStr);
unsigned int mRow = mListBox->addRow();
CEGUI::ListboxTextItem* item = new CEGUI::ListboxTextItem((CEGUI::utf8*)c1, 0);
mListBox->setItem(item, 0, mRow);
mDC->addChildWindow(item);


Return to “Modifications / Integrations / Customisations”
Users browsing this forum: No registered users and 2 guests