有关窗体创建代码(Form常做设置)

来源:互联网 发布:sql 加合计行 编辑:程序博客网 时间:2024/06/05 17:22

1.创建的窗体大小固定:

Form-> BorderStyle ->bsSingle;或Form-> BorderStyle ->bsDialog;

 

2.设置窗体右上角按钮数量:

Form ->  BorderIcons-> biMinimize = true;

Form ->  BorderIcons-> biMaximize = true;

Form ->  BorderIcons-> biHelp = ture; 

 

3.窗口显示的位置:(右下角)

Top = Screen->WorkAreaHeight - Height;
Left = Screen->WorkAreaWidth - Width;

 

4.操作其他窗口,保持原窗口置顶:(适合源窗口小,置顶不会覆盖操作的窗口)

FormStyle = fsStayOnTop;

 

原创粉丝点击