Window/Device position

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
forX
Posts: 22
Joined: Thu Sep 09, 2010 6:26 am

Window/Device position

Post by forX »

its a simple question:

How did we move/change the position of a window/device in NOT fullscreen mode?

tank you
rtr_18
Posts: 60
Joined: Thu Jun 10, 2010 8:35 am
Location: Programmer

Post by rtr_18 »

in NOT fullscreen mode
I can't understand what do you mean by this. What you are trying to do? What you have acheived? Regarding which you need help? Can u post any code snippet?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You have to use the mouse or low-level calls on the base device. IIRC, we don't have such methods in Irrlicht.
forX
Posts: 22
Joined: Thu Sep 09, 2010 6:26 am

Post by forX »

tanks
but I'm not really that much advanced,
did you have any direction or something that can help me to go that way.
maybe somebody else project?

tank you
no_response
Posts: 26
Joined: Fri Aug 20, 2010 11:07 am
Location: Bulgaria

Post by no_response »

well, if you're writing for windows, you can use the win api :

Code: Select all

MoveWindow(windowhandle, pixelsX, pixelsY, windowsizeX, windowsizeY, redraw?);
you can search MSDN for the function.


the windowhandle can be obtained the following way (the example is for OpenGL, else check the Irrlicht reference)

Code: Select all

HWND winhandle = reinterpret_cast<HWND>(driver->getExposedVideoData().OpenGLWin32.HWnd);
pixelsX and pixelsY are the new position of the top left corner of the window.

windowsizeX and windowsizeY are the size of the window when you were creating the device;

redraw should be true.
Post Reply