Home » U++ TheIDE » U++ TheIDE: Layout (Forms) Designer » Child window position
Re: Child window position [message #20567 is a reply to message #20565] |
Mon, 23 March 2009 15:52 |
mrjt
Messages: 705 Registered: March 2007 Location: London
|
Contributor |
|
|
Are you trying to set the window position before calling CtrlLayout? CtrlLayout calls GetRect, so you must make your changes after it:
CtrlLayoutOKCancel(*this, "Window title");
// Set only the size of the window
Rect r = GetRect();
r.SetSize(100, 100);
SetRect(r);
// Set size and position
SetRect(50, 50, 200, 200);
NoCenter();
|
|
|
Goto Forum:
Current Time: Sun Apr 28 13:54:51 CEST 2024
Total time taken to generate the page: 0.03566 seconds
|