Jump to content
uniGUI Discussion Forums
andyhill

iPhone Portrait Object Spacing - Orientation Landscape Spacing

Recommended Posts

I have an iPhone Portrait Form with all objects formatted correctly via Flex and LayOut Config.

 

When phone is rotated all the object spacing fails, please show me how to resolve - thanks.

 

 

post-5752-0-82657300-1513909722_thumb.png

post-5752-0-84074400-1513909736_thumb.png

Share this post


Link to post
Share on other sites

I am out of the office at the moment so I cannot re-test with Delphi Tokyo 10.2.2 but with my previous Delphi (Berlin 10.1) on iPhoneX the results are above.

 

Please show me how to catch "orientation" event plus adjust screen positioning to make it suitable for Landscape - Thanks.

OrientationTest.zip

Share this post


Link to post
Share on other sites

I think it is relative to the layout settings thats you have mafe, I already posted an example of layout specially for mobile, please refer to it and see how I made it in the user area > sample projects, If you need further help you may post it here.... Good luck

Share this post


Link to post
Share on other sites

Mohammad, I have viewed your example.

 

I use Container, Panel and Flex.

 

Would you be so kind and please have a look at my code posted above and advise - thanks.

Share this post


Link to post
Share on other sites

Well....

 

Hmmmmmmmmmm

 

I see that most of unigui users struggling with 'layouts' and they mix VCL layout way (align) with Extjs/Touch layout....

 

Please DON'T USE 'ALIGN' property, NEVER....

Always use 'Aligment Control' = uiAligmentClient

When it comes to mobile think of using the 'minHeight'

And practice 'vbox' / 'hbox' to achieve the result that you want...

 

I think that I should write a guide for 'layouts' or maybe an online video course using skype...let's vote...

 

your project is attached...

 

If you need further help please post here or contact me via whatsapp: +972-54-9000258 

OrientationTest.rar

Share this post


Link to post
Share on other sites

 

Hi Mohammad,

 

You helped me out on a mobile layout, which I spent hours trying to do, so again thanks for that.

 

I would be willing to donate for you to create a comprehensive guide on layouts, from real basics, like what NOT to do. Also including a basic overview on best practices on where to add, and how to interact with CCS with Delphi controls. Perhaps start a new thread to Hague interest.

 

Coming from a Delphi background I can echo the fact that the only thing I really struggle with is layouts.

 

Sent from my Pixel using Tapatalk

Share this post


Link to post
Share on other sites

Thanks Mohammad, I had tried every concept I could think of, after putting everything back to what it should have been, the missing piece of code was:-

 

config.minHeight = 450;

Share this post


Link to post
Share on other sites

Great to hear that  ;)

Share this post


Link to post
Share on other sites

×