how move render window by mouse?

Forum for general chit-chat or off-topic discussion.

Moderators: CEGUI MVP, CEGUI Team

pyhmail
Not too shy to talk
Not too shy to talk
Posts: 24
Joined: Thu Apr 03, 2008 02:37

how move render window by mouse?

Postby pyhmail » Tue Apr 08, 2008 02:19

I want to Drag my render window by mouse,I use the reposition(int,int) function in RenderWindow class ,but when I drag the render window by mouse ,the render window will flash,how to eliminate the flash phenomenon? my code is follwing:(platform:OGRE + CEGUI)

if(mbWndMove)
{

UIEditor* pEditor = (UIEditor*)FindWindowById(ID_UIEDITOR);
wxPoint oldPos = this->GetPosition();
int offsetX = pos.x - mPrevPos.x;
int offsetY = pos.y - mPrevPos.y;
wxPoint newPos(oldPos.x + offsetX,oldPos.y + offsetY);
Ogre::RenderWindow* pRenderWnd = pEditor->GetRenderWnd();
pRenderWnd->reposition(oldPos.x + offsetX,oldPos.y + offsetY);
mPrevPos = pos;

}

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Tue Apr 08, 2008 08:55

Do not post the same thing in multiple threads. If you have to, bump the original one.

I already asked for additional information if the very first one you posted on this topic, which you chose to ignore completely.

As for the issue I do not see that this is CEGUI related.

CE.


Return to “Offtopic Discussion”

Who is online

Users browsing this forum: No registered users and 0 guests