TGUI Forum

General Category => Help requests => Topic started by: avraal on 06 September 2018, 17:44:03

Title: Forbidden change position of ChildWindow
Post by: avraal on 06 September 2018, 17:44:03
Hi
I'm added ChildWindow at other GUI-elements, and i want to forbidden change position for him. Can i "freeze" his?
Title: Re: Forbidden change position of ChildWindow
Post by: texus on 06 September 2018, 19:06:33
It wasn't possible to freeze the child window position, but I have implemented that now. If you download the latest version from github (http://github.com/texus/TGUI) and build the library yourself then you can use the new setPositionLocked function (it will prevent the user from dragging the window, you can still call setPosition afterwards).
childWindow->setPositionLocked(true);
Title: Re: Forbidden change position of ChildWindow
Post by: avraal on 07 September 2018, 14:38:08
...but I have implemented that now
Thank, you awesome!