GUI issue on resize
by Rex Hiebert · in Torque 3D Professional · 09/09/2009 (11:54 am) · 2 replies
In GuiEditor in window mode, not fullscreen
Add a GuiBitmapCtrl to a canvas
Set the bitmap
set the position to "0 0" (top left corner)
set HorizSizing to "left"
set VertSizing to "bottom"
You should now have a bitmap that will always stay in the upper left corner. Go into game mode and resize the window. Everything should be fine. Now, try to maximize the window by hitting the maximize button. The GuiBitmapCtrl now jumps to the top middle of the screen when it should stay at the top left. If you restore the window the GuiBitmapCtrl returns to its position at the top left.
But if I have a GuiBitmapCtrl positioned at the top right, it correctly handles the maximize window command.
Add a GuiBitmapCtrl to a canvas
Set the bitmap
set the position to "0 0" (top left corner)
set HorizSizing to "left"
set VertSizing to "bottom"
You should now have a bitmap that will always stay in the upper left corner. Go into game mode and resize the window. Everything should be fine. Now, try to maximize the window by hitting the maximize button. The GuiBitmapCtrl now jumps to the top middle of the screen when it should stay at the top left. If you restore the window the GuiBitmapCtrl returns to its position at the top left.
But if I have a GuiBitmapCtrl positioned at the top right, it correctly handles the maximize window command.
Associate Fyodor -bank- Osokin
Dedicated Logic
If you need to have your GUI control to stuck on top/left, you need to set it "right/buttom". If you want it to stuck at bottom/left, use "right/top", for placing it on bottom/right, use "left/top" combination.
Hope this helps :)