Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Is there a way to load a particular FMX in XE7 FireUI ?



Permlink Replies: 2 - Last Post: Mar 30, 2015 5:09 AM Last Post By: Omar Reis
Omar Reis

Posts: 29
Registered: 11/7/04
Is there a way to load a particular FMX in XE7 FireUI ?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 26, 2015 12:39 PM
FireUI creates one FMX for each view created in XE7 FireUI.
The application detects the phone model and loads
the corresponding FMX, using form inheritance.

Is there a way to intercept that process and choose
which FMX is to be loaded ?

I would like to have different layouts for landscape
and portrait orientations. Also I would like to account
for iOS 8.1 "Display Zoom" settings. That would
require 4 layouts for each iPhone model.

thanks
Omar
Eli M

Posts: 1,346
Registered: 11/9/13
Re: Is there a way to load a particular FMX in XE7 FireUI ?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 27, 2015 7:03 AM   in response to: Omar Reis in response to: Omar Reis
In XE6 it was done like this:

begin
  Application.Initialize;
  Application.FormFactor.Orientations := [TFormOrientation.Portrait, TFormOrientation.InvertedPortrait, TFormOrientation.Landscape, TFormOrientation.InvertedLandscape];
  Application.CreateForm(TPForm, PForm);
  Application.CreateForm(TLSForm, LSForm);
  Application.Run;
end.


http://sourceforge.net/p/radstudiodemos/code/HEAD/tree/branches/RadStudio_XE6/Object%20Pascal/Mobile%20Samples/User%20Interface/Forms/

Personally I would just make your app responsive so it automatically changes to the new layout using Align on each control.
Omar Reis

Posts: 29
Registered: 11/7/04
Re: Is there a way to load a particular FMX in XE7 FireUI ?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 30, 2015 5:09 AM   in response to: Eli M in response to: Eli M
Eli M wrote:
Personally I would just make your app responsive so it automatically changes to the new layout using Align on each control

Thanks Eli

I used that approach in the previous version of my app. I tried to use FireUI, as it seemed more powerfull
than traditional Align method. But, as it is now, FireUI is incomplete to deal with the variety of
layouts of iPhones (devices, orientations and display zoom modes). Back to the drawing board...
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02