position TGMainFrame

Rutger van der Eijk (r36@nikhef.nl)
Fri, 22 Jan 1999 20:38:29 +0100 (MET)


Hi,

Can't find any doc on this, so maybe somebody tried this already.

How do I position a TGMainFrame at a controlled position at startup?

I know I can move it to a certain position by using TGFrame:Move(...). But
for this to work I (as far as I know) should already have called
TGWindow::MapWindow which first displays the frame at a 'random' position.
Not a big deal but I find it rather non elegant to see the window move at
startup. Is there a way to achieve this?

I found the members TGMainFrame::SetWMPosition etc.. I tried using
them but this doesn't seem to have effect (but I might have put them in
the wrong order). Are these SetWMXXX members for this, and if yes how do
they work?

Cheers,

Rutger van der Eijk