bromie2008 Member Licensed User Nov 14, 2016 #1 When i used AutoScaleRate to (1.0) its not fill my screen Left/Right have space? AutoScaleRate(1.0) AutoScaleAll Panel1.HorizontalCenter(50%x) Attachments screeshot.jpg 50.5 KB · Views: 544
When i used AutoScaleRate to (1.0) its not fill my screen Left/Right have space? AutoScaleRate(1.0) AutoScaleAll Panel1.HorizontalCenter(50%x)
Erel B4X founder Staff member Licensed User Longtime User Nov 15, 2016 #2 You shouldn't change the scale rate. This is not the purpose of AutoScaleAll. The background panel should fill the entire screen width as it is anchored to both sides. Upvote 0
You shouldn't change the scale rate. This is not the purpose of AutoScaleAll. The background panel should fill the entire screen width as it is anchored to both sides.
bromie2008 Member Licensed User Nov 15, 2016 #3 If i'm not using AutoScale All my icon not scale to my iPAd Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Nov 15, 2016 #4 You should use AutoScaleAll. But don't change the scale rate and don't count on it to make the views fill the entire area. It will not work. Upvote 0
You should use AutoScaleAll. But don't change the scale rate and don't count on it to make the views fill the entire area. It will not work.
bromie2008 Member Licensed User Nov 15, 2016 #5 How to scale my button to big size for iPad? Its look the AutoScaleAll only increase a bit Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Nov 15, 2016 #6 Can you upload the layout or project? Upvote 0
bromie2008 Member Licensed User Nov 17, 2016 #7 Attached here with my layout file. Attachments Home.jpg 50.8 KB · Views: 579 tbs_new.zip tbs_new.zip 488.3 KB · Views: 470 Upvote 0
klaus Expert Licensed User Longtime User Nov 17, 2016 #8 I would do it that way. Set both anchors of the background ImageView to BOTH, this you already have. Add a transparent Panel and move all views onto this Panel and center it on the screen in the Script. In Scripts-General add: AutoScaleRate(0.5) AutoScaleAll Panel1.HorizontalCenter= 50%x Panel1.VerticalCenter = 50%y Then you can play with the AutoScaleRate. With AutoScaleRate(0.7) you fill almost an iPad screen. When you change the AutoScaleRate click on Run (F5) to see the result in the Anstract Designer. Attached your modified project, I added a new layout file keeping yours for comparison. Attachments tbs_new1.zip tbs_new1.zip 396.5 KB · Views: 501 Last edited: Dec 26, 2017 Upvote 0
I would do it that way. Set both anchors of the background ImageView to BOTH, this you already have. Add a transparent Panel and move all views onto this Panel and center it on the screen in the Script. In Scripts-General add: AutoScaleRate(0.5) AutoScaleAll Panel1.HorizontalCenter= 50%x Panel1.VerticalCenter = 50%y Then you can play with the AutoScaleRate. With AutoScaleRate(0.7) you fill almost an iPad screen. When you change the AutoScaleRate click on Run (F5) to see the result in the Anstract Designer. Attached your modified project, I added a new layout file keeping yours for comparison.
bromie2008 Member Licensed User Nov 17, 2016 #9 Thanks @klaus. But its seem like the scale not full screen on the scroller and the footer text. Attached here my screenshot on my iPad Attachments image-(2).jpg 175.9 KB · Views: 608 Upvote 0
Thanks @klaus. But its seem like the scale not full screen on the scroller and the footer text. Attached here my screenshot on my iPad
klaus Expert Licensed User Longtime User Nov 17, 2016 #10 I was not aware that you really wanted these views full size horizontally. You should reset the parent of lblScroll back to Main and keep the horizontal anchor with BOTH. You'll need to reposition lblScroll vertically in the Script according to the views above and below. Upvote 0
I was not aware that you really wanted these views full size horizontally. You should reset the parent of lblScroll back to Main and keep the horizontal anchor with BOTH. You'll need to reposition lblScroll vertically in the Script according to the views above and below.
bromie2008 Member Licensed User Nov 18, 2016 #11 Thanks a lot @klaus & @Erel for support. It work! 'All variants script AutoScaleRate(0.8) AutoScaleAll Panel1.HorizontalCenter= 50%x Panel1.VerticalCenter = 50%y lblScroll.VerticalCenter = 57%y lblFooter.Bottom = 100%y Upvote 0
Thanks a lot @klaus & @Erel for support. It work! 'All variants script AutoScaleRate(0.8) AutoScaleAll Panel1.HorizontalCenter= 50%x Panel1.VerticalCenter = 50%y lblScroll.VerticalCenter = 57%y lblFooter.Bottom = 100%y