Mega Search
23.2 Million


Sign Up

Make a donation  
Mobile Form Size  
News Group: embarcadero.public.delphi.firemonkey

Hi, I wonder why in FireMonkey Mobile App Project I can not set mobile form size, form size is always device full screen size, to make a small form there is only possibility to use inputbox, messagebox etc. or creating TRectangle with some input controls. (I'm working in XE5). Please for explain,thx

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 17-Jan-2015, at 11:15 AM EST
From: arek freitag
 
Re: Mobile Form Size  
News Group: embarcadero.public.delphi.firemonkey
> {quote:title=Remy Lebeau (TeamB) wrote:}{quote}
> arek wrote:
> 
> > Hi, I wonder why in FireMonkey Mobile App Project I can not set
> > mobile form size, form size is always device full screen size, to make
> > a small form there is only possibility to use inputbox, messagebox etc.
> > or creating TRectangle with some input controls. (I'm working in XE5).
> 
> Because that is just the way windows typically work on mobile platforms. 
>  Normal windows are full-screen, popup dialogs are not.  If you want to create 
> a popup window in FireMonkey, try using TPopup instead of TForm:
> 
> http://docwiki.embarcadero.com/Libraries/XE7/en/FMX.Controls.TPopup
> 
> -- 
> Remy Lebeau (TeamB)

Thx, TPopUp seems it is what I'm looking for

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 17-Jan-2015, at 1:08 PM EST
From: arek freitag
 
Re: Mobile Form Size  
News Group: embarcadero.public.delphi.firemonkey
arek wrote:

> Hi, I wonder why in FireMonkey Mobile App Project I can not set
> mobile form size, form size is always device full screen size, to make
> a small form there is only possibility to use inputbox, messagebox etc.
> or creating TRectangle with some input controls. (I'm working in XE5).

Because that is just the way windows typically work on mobile platforms. 
 Normal windows are full-screen, popup dialogs are not.  If you want to create 
a popup window in FireMonkey, try using TPopup instead of TForm:

http://docwiki.embarcadero.com/Libraries/XE7/en/FMX.Controls.TPopup

-- 
Remy Lebeau (TeamB)

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 17-Jan-2015, at 11:31 AM EST
From: Remy Lebeau (TeamB)