Hello.
I would like to ask that the movable window make to not move?
Static window
Moderators: CEGUI MVP, CEGUI Team
Re: Static window
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.
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.
Re: Static window
formulated differently:
How do I turn off the window movement?
How do I turn off the window movement?
Re: Static window
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.
Re: Static window
check your case in loop Message
you should have something like this
if don't just make one and for more information about injecting inputs
http://www.cegui.org.uk/wiki/index.php/The_Beginner_Guide_to_Injecting_Inputs
you should have something like this
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;
if don't just make one and for more information about injecting inputs
http://www.cegui.org.uk/wiki/index.php/The_Beginner_Guide_to_Injecting_Inputs
Who is online
Users browsing this forum: No registered users and 4 guests