如何让所有的MDI子窗体在Show的时候都是在父窗体的作上角?(50分)

L

LanHer

Unregistered / Unconfirmed
GUEST, unregistred user!
内容如题,如何在MDIChild.Show的时候,总是show在父窗体的左上角?
 
在OnShow中写代码top:=0;Left:=0;
 
在MDIChild.onShow里写left:=1;top:=1;
 
来晚了!
 
设置窗口属性 position = poDefaultPosOnly

这样系统能自动维护窗口在屏幕左上角进行有序排列
 
在onCreate事件里写 top:=0;Left:=0;更好!
 
接受答案了.
 
顶部