problem with drag & drop
Posted: Tue Oct 09, 2007 18:11
I created a slot, which can handle drag and drop events and i´m working together with Ogre 1.4.2
creating the slot:
And it works really fine, but when the framerate of Ogre3D falls down or the user moves the Item to fast which is in the slot the methods handleDragLeaveInventory and handleDragDroppedInventory will not be called and it breaks the system.
Have someone made similar experiences?
How do you solve the problem?
Thanks for helping.
Sorry my bad english.
creating the slot:
Code: Select all
CEGUI::Window* slot;
slot = CEGUI::WindowManager::getSingleton().createWindow(_lookName + "/StaticImage", name);
parent->addChildWindow(slot);
slot->setPosition(position);
slot->setSize(size);
slot->subscribeEvent(CEGUI::Window::EventDragDropItemEnters, CEGUI::Event::Subscriber(&handleDragEnter, this));
slot->subscribeEvent(CEGUI::Window::EventDragDropItemLeaves, CEGUI::Event::Subscriber(&handleDragLeaveInventory, this));
slot->subscribeEvent(CEGUI::Window::EventDragDropItemDropped, CEGUI::Event::Subscriber(&handleDragDroppedInventory, this));
And it works really fine, but when the framerate of Ogre3D falls down or the user moves the Item to fast which is in the slot the methods handleDragLeaveInventory and handleDragDroppedInventory will not be called and it breaks the system.
Have someone made similar experiences?
How do you solve the problem?
Thanks for helping.
Sorry my bad english.