Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 Delphi 的 FireMonkey 应用程序中使用 的FullScreen属性,但不起作用。TFormFullScreen := true
FullScreen
TForm
FullScreen := true
根据您在评论中提供的信息:
好的,这就是我尝试fullscreen:=true; E2010 不兼容类型时得到的结果:“TMenuItem”和“Boolean”
fullscreen:=true;
看来您有一个名称为 的菜单项fullscreen,它导致范围不匹配。这也可以解释为什么当您更改对象检查器中的属性时它可以正常工作,但当您尝试在代码中执行此操作时不会编译。
fullscreen
Name更改对象检查器中的菜单项。TMenuItem.Caption可以是Fullscreen,但应该是与表单本身的现有属性不冲突的Name其他东西。
Name
TMenuItem.Caption
Fullscreen