使 Delphi 应用程序完全全屏显示的最佳方法是什么? [英] What is the best way to make a Delphi Application completely full screen?

查看:38
本文介绍了使 Delphi 应用程序完全全屏显示的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使delphi 应用程序(此处为适用于win32 的delphi 2007)完全全屏显示、移除应用程序边框并覆盖Windows 任务栏的最佳方法是什么?

What is the best way to make a delphi application (delphi 2007 for win32 here) go completely full screen, removing the application border and covering windows task bar ?

我正在寻找类似于当您按 F11 时 IE 所做的事情.

I am looking for something similar to what IE does when you hit F11.

我希望这是用户的运行时选项,而不是我自己的设计时决定.

I wish this to be a run time option for the user not a design time decision by my good self.

在接受的答案中提到

BorderStyle := bsNone; 

是实现它的方式的一部分.奇怪的是,我在使用该行时不断收到 E2010 Incompatible types: 'TFormBorderStyle' and 'TBackGroundSymbol' 错误(另一种类型定义了 bsNone).

was part of the way to do it. Strangely I kept getting a E2010 Incompatible types: 'TFormBorderStyle' and 'TBackGroundSymbol' error when using that line (another type had bsNone defined).

为了克服这个我不得不使用:

To overcome this I had to use :

BorderStyle := Forms.bsNone;

推荐答案

嗯,这一直对我有用.好像简单了点...

Well, this has always worked for me. Seems a bit simpler...

procedure TForm52.Button1Click(Sender: TObject);
begin
  BorderStyle := bsNone;
  WindowState := wsMaximized;
end;

这篇关于使 Delphi 应用程序完全全屏显示的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆