PanosDK
PanosDK

Reputation: 23

How can I make my form full screen with the TForm.FullScreen property?

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

Upvotes: 2

Views: 996

Answers (1)

Ken White
Ken White

Reputation: 125620

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.

Upvotes: 4

Related Questions