CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Getting Page Width

General discussion

by dfields » 01 May 2018 22:36

I need to determine the width of a page in the mobile version of my application in order to resize images on the page. I am not getting the correct values using WebApplication.FormWidth. Your mobile components must have an event or property that I can use to determine form width at runtime. Can you point me to something I can work with?
dfields
 
Posts: 130
Joined: 24 Jul 2013 20:14

by Jorge Sousa » 02 May 2018 12:00

Hello

Your mobile components must have an event or property that I can use to determine form width at runtime


No they don't have this property

Why is WebApplication.FormWidth not working for you?
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by dfields » 02 May 2018 19:41

For some unknown reason, the width is reported incorrectly in the form's OnCreate event. I have to ad a timer with a half-second delay to get the correct value after the form has been rendered.

I was hoping that the Page or Content controls from your mobile tools would have a value that could be read without using the timer, in another event.
dfields
 
Posts: 130
Joined: 24 Jul 2013 20:14


Return to General

cron

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.