Static window
Posted: Mon May 30, 2011 12:50
Hello.
I would like to ask that the movable window make to not move?
I would like to ask that the movable window make to not move?
crond wrote:I'm no expert with CEGUI, although there is this thing called documentation. For CEGUI, try here: http://www.cegui.org.uk/docs/current/index.html
To your question, if it is a FrameWindow, you can use the `setDragMovingEnabled` method to control that sort of behavior.
edit: Or, you could set it from a layout file.
Code: Select all
case WM_MOUSEMOVE:
POINT p ;
::GetCursorPos ( &p);
::ScreenToClient (hwnd , &p);
CEGUI::System::getSingleton().injectMousePosition(p.x, p.y);
break;
case WM_LBUTTONDOWN:
CEGUI::System::getSingleton().injectMouseButtonDown(CEGUI::LeftButton);
break;
case WM_LBUTTONUP:
CEGUI::System::getSingleton().injectMouseButtonUp(CEGUI::LeftButton);
break;
case WM_RBUTTONDOWN:
CEGUI::System::getSingleton().injectMouseButtonDown(CEGUI::RightButton);
break;
case WM_RBUTTONUP:
CEGUI::System::getSingleton().injectMouseButtonUp(CEGUI::RightButton);
break;
case WM_MBUTTONDOWN:
CEGUI::System::getSingleton().injectMouseButtonDown(CEGUI::MiddleButton);
break;
case WM_MBUTTONUP:
CEGUI::System::getSingleton().injectMouseButtonUp(CEGUI::MiddleButton);
break;