怎么样实现窗体的停靠??
(也就是说我要把新打开的一个窗体停靠在原来的窗体上,应该怎样实现呢?)
谢谢帮忙!!
(也就是说我要把新打开的一个窗体停靠在原来的窗体上,应该怎样实现呢?)
谢谢帮忙!!
解决方案 »
- 如何给delphi7的代码编辑器设置宋体字体。
- 怎样禁止Grid 的自动滚动?
- 连连看外挂-------外挂连连看
- 如何将sybase数据库中的数据导入到sql server数据库中去(两个数据库中的表完全一样)?
- dbgrid某条记录被选中?
- 各位给个解决问题的建议?
- 在同一个框架中显示HTML的图标文件,点击后如何参数化调用程序?〈仿吉胜人事工资管理〉?急
- 如何在DBGRID裡面加點選框﹖
- 如何在DBGrid1中第一列用代码添加自定义下拉列表,比如“AAA”、“BBB”、“CCC”?
- 怎样取得计算机名?或者怎样在局域网中取得服务器的名字?谢谢
- 现在有Delphi8的教程吗?
- 在TADOQuery的返回结果上再执行查询?
2.可以读写.INI文件保存上一次的位置!
在main的Panel1窗体上显示FrmClientApplication.CreateForm(TFrmClient, FrmClient);
FrmClient.Dock(Panel1, BoundsRect);
FrmClient.Show;
ABC,ToolBar2000,Raize那些的
var
ScreenWidth,ScreenHeight: integer;
posY: integer;
begin
//--表示座標の設定
ScreenWidth := GetDeviceCaps(GetDC(GetDesktopWindow), HORZRES);
ScreenHeight:= GetDeviceCaps(GetDC(GetDesktopWindow), VERTRES); if ((ScreenWidth - FormMain.Left)>FormSub.Width then
FormSub.Left := FormMain.Left + 7
else
FormSub.Left := ScreenWidth - FormSub.Width; posY := FormMain.Top + 60;
if ((ScreenHeight - posY) > FormSub.Height) then
FormSub.Top := posY
else
FormSub.Top := ScreenHeight - (FormSub.Height+30);
end;(注:参照FormMain和Screen算FormSub的位置)