Watch, Follow, &
Connect with Us

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


Welcome, Guest
Guest Settings
Help

Thread: How to Change Tablet App to Phone app in Delphi XE8?


This question is answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Jul 30, 2015 5:55 AM Last Post By: Eli M
Remi Arts

Posts: 40
Registered: 11/15/13
How to Change Tablet App to Phone app in Delphi XE8?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 28, 2015 5:24 AM
Hi, i've created an app more specifically for tablets. So if the screen is smaller than 7 inch not everything fits. I do work with layouts and Align properties so everything gets scaled accordingly to the screen size.
I know a few options to make the app useable for phones ass well. But not sure what the best way is.

Option1:
Create multiple Views for each size screen.

Option2:
Use ScaledLayout to make everything smaller or bigger.

Option3:
Use scrollBox.

Option4:
Edit component sizes in FormCreate after checking screen size.

Option5:
Devide in more Forms.

So what's the best option or are there even better ways to do this?

Edited by: Remi Arts on Jul 28, 2015 5:24 AM
Eli M

Posts: 1,346
Registered: 11/9/13
Re: How to Change Tablet App to Phone app in Delphi XE8?
Helpful
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 30, 2015 5:55 AM   in response to: Remi Arts in response to: Remi Arts
Those are all good options but I don't know that there is a "best" option. It depends on the use case. For example, if you are building a game TScaledLayout may be the way to go. I've had success scaling games to the screensize. On the other hand I've built games that use the Align properties as well.

One option you didn't list was the TMultiView component. Basically it morphs to different functionality based on what the device size is. So it is a drawer or a button that opens as a menu on phones or just a side bar on tablets. If you use native controls like TWebBrowser it may not work for you though.

http://community.embarcadero.com/index.php/blogs/entry/designing-app-navigation-with-tmultiview

Customizing the different views for each device is also an option:

http://community.embarcadero.com/index.php/blogs/entry/custom-views

Maybe you have to deploy multiple methods within the same app as appropriate. For example, maybe instead of a bunch of buttons you have 1 button which does a TPopup that contains the other buttons.

Also this article shows ways reduce interface complexity.

http://www.lukew.com/ff/entry.asp?1950

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02