Minor guiMLTextCtrl resize bug
by Fyodor -bank- Osokin · in Torque Game Engine · 03/21/2007 (5:10 am) · 1 replies
I was working with guiStackCtrl lately, and found one thing that made be almost mad (before fix) :)
If I put guiMLTextCtrl inside the guiStackCtrl, the MLtext don't get resized until I do sleep/wake events (pop/push dialog). So, looking at the sources I found that the easiest way to fix this is to add
Now - everything works as excepted.
EDIT: see my post below!!!
If I put guiMLTextCtrl inside the guiStackCtrl, the MLtext don't get resized until I do sleep/wake events (pop/push dialog). So, looking at the sources I found that the easiest way to fix this is to add
mDirty = true;at the end of void GuiMLTextCtrl::resize( const Point2I& newPosition, const Point2I& newExtent ) function.
Now - everything works as excepted.
EDIT: see my post below!!!
About the author
Game developer.
Associate Fyodor -bank- Osokin
Dedicated Logic
With this "fix" if I use guiMLTextCtrl to be directly child of guiScrollCtrl - then the scrolling does not work.
I think I need to find another way of fixnig that... blah.. :(