Game Development Community

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?

About the author

Recent Threads


#1
06/27/2006 (3:20 pm)
Torque's GUI system doesn't really like being dynamically resized. You might be better off allowing users to switch between several discrete sizes, or simply doing a device free/realloc when a change is effected...