Static window

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

pista75
Not too shy to talk
Not too shy to talk
Posts: 22
Joined: Sun May 15, 2011 10:41

Static window

Postby pista75 » Mon May 30, 2011 12:50

Hello.
I would like to ask that the movable window make to not move?

crond
Just popping in
Just popping in
Posts: 1
Joined: Sun May 15, 2011 16:02

Re: Static window

Postby crond » Mon May 30, 2011 13:12

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.

pista75
Not too shy to talk
Not too shy to talk
Posts: 22
Joined: Sun May 15, 2011 10:41

Re: Static window

Postby pista75 » Mon May 30, 2011 17:33

formulated differently:
How do I turn off the window movement?

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Static window

Postby Kulik » Tue May 31, 2011 18:32

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.

belkacem
Quite a regular
Quite a regular
Posts: 83
Joined: Fri Jan 07, 2011 13:55

Re: Static window

Postby belkacem » Tue May 31, 2011 19:57

check your case in loop Message

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


Return to “Help”

Who is online

Users browsing this forum: No registered users and 3 guests