I am trying to use the FullScreen
property of TForm
in a FireMonkey app in Delphi, but FullScreen := true
doesn't work.
Asked
Active
Viewed 789 times
1

Remy Lebeau
- 555,201
- 31
- 458
- 770

PanosDK
- 13
- 2
-
Which version of Delphi? Which platform(s)? – Dave Nottage Sep 09 '19 at 03:56
-
I am using the 10.3 – PanosDK Sep 09 '19 at 04:01
-
1Please define "doesn't work"? – Jerry Dodge Sep 09 '19 at 04:02
-
Plus you did not answer which platform(s), i.e. are you having this issue when the app runs on Windows, iOS, Android etc? – Dave Nottage Sep 09 '19 at 04:09
-
Just win32. I just added a button to test it and when i use fullscreen:=true; nothing happens. When I change the value from the properties the form goes to fullscreen when I run my program. – PanosDK Sep 09 '19 at 04:14
-
Ok this is what I get when I try fullscreen:=true; E2010 Incompatible types: 'TMenuItem' and 'Boolean' – PanosDK Sep 09 '19 at 04:19
-
Fullscreen is supposed to accept a boolean so I dont know whats wrong with it. – PanosDK Sep 09 '19 at 04:20
-
1Please add your code to the question. – Freddie Bell Sep 09 '19 at 04:32
-
4Do you have a menu item named `fullscreen`? If so, change its name. – BrakNicku Sep 09 '19 at 05:12
-
Thank you for helping me guys. @BrakNicku is right. I had a menu item named fullscreen. Problem solved. – PanosDK Sep 09 '19 at 16:57
1 Answers
4
From information you've provided in comments:
Ok this is what I get when I try
fullscreen:=true;
E2010 Incompatible types: 'TMenuItem' and 'Boolean'
it appears you have a menu item whose name is fullscreen
, and it's causing a scope mismatch. This would also explain why it works fine when you change the property in the Object Inspector, but won't compile when you try to do it in code.
Change the menu item's Name
in the Object Inspector. The TMenuItem.Caption
can be Fullscreen
, but the Name
should be something else that does not conflict with an existing property of the form itself.

Ken White
- 123,280
- 14
- 225
- 444