问题描述
什么是制作delphi应用程序(delphi 2007 for win32这里)的最佳方法是完全全屏,删除应用程序边界并覆盖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 ?
我正在寻找类似于IE在您点击F11时所做的事情。
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.
正如所接受的答案所提到的那样
As Mentioned in the accepted answer
BorderStyle := bsNone;
是做到这一点的一部分。奇怪的是,我不断得到一个 E2010不兼容的类型:TFormBorderStyle和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应用程序完全全屏的最佳方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!