TSE window / gui resolution
by Jordan Nelson · in Torque Game Engine Advanced · 06/27/2006 (2:52 pm) · 1 replies
I need to have the TSE window dynamically re sizable at run time.
so far I am able to do that via scrip using a console function added to Win32WinMgr, that then makes this call:
SetWindowPos( winState.appWindow, HWND_NOTOPMOST, newRect.point.x, newRect.point.y,
newRect.extent.x, newRect.extent.y, NULL );
that works, TSE is whatever size I want, but the GUI never updates.
after a resize, fonts are distorted in the console, and the mouse cursor is no longer aligned with the windows cursor.
calls to Canvas.getExtent() return my initial resolution.
is there a call I am missing to update the canvas extents?
anyone have any other ideas?
so far I am able to do that via scrip using a console function added to Win32WinMgr, that then makes this call:
SetWindowPos( winState.appWindow, HWND_NOTOPMOST, newRect.point.x, newRect.point.y,
newRect.extent.x, newRect.extent.y, NULL );
that works, TSE is whatever size I want, but the GUI never updates.
after a resize, fonts are distorted in the console, and the mouse cursor is no longer aligned with the windows cursor.
calls to Canvas.getExtent() return my initial resolution.
is there a call I am missing to update the canvas extents?
anyone have any other ideas?
Associate Ben Garney