IOS Browser control overlay graphics

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
fpierron
Posts: 56
Joined: Thu Dec 16, 2010 11:12 am
Contact:

IOS Browser control overlay graphics

Post by fpierron » Tue Jan 10, 2012 9:06 pm

Hi,

I have an bitmap header at the top of the iphone screen,
a bitmap at the bottom of the screen and
in the middle of the screen, I have a IOS browser control.

I encounter two problems :

1/ The top of the browser is alway different than the top of the rect of the graphic that helps me to place the browser
2/ The graphic in the bottom of the screen is always overlayed ny the IOS browser control.

I have sent the IOS control to the back and the two image controls are layered at the front, but the browser control always masks the image control at the bottom of the screen.

What could be wrong ?

Frédéric

macnomad2
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 63
Joined: Sat Oct 28, 2006 10:04 pm

Re: IOS Browser control overlay graphics

Post by macnomad2 » Tue Jan 10, 2012 9:17 pm

Nothing
The browser control is always on top unfortunately
I had the same problem in my published app...
You just have to redesign your screen, sorry !
Georges

fpierron
Posts: 56
Joined: Thu Dec 16, 2010 11:12 am
Contact:

Re: IOS Browser control overlay graphics

Post by fpierron » Tue Jan 10, 2012 9:39 pm

ok, this is a bad news.
But let says it goes on top.

What about its size ? It could be smaller than the screen and be centered on the middle of the screen, right ?

macnomad2
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 63
Joined: Sat Oct 28, 2006 10:04 pm

Re: IOS Browser control overlay graphics

Post by macnomad2 » Tue Jan 10, 2012 9:53 pm

Yes any rectangle. The official example gives you solutions for that (somewhere on this forum)

fpierron
Posts: 56
Joined: Thu Dec 16, 2010 11:12 am
Contact:

Resolved: IOS Browser control overlay graphics

Post by fpierron » Tue Jan 10, 2012 11:06 pm

I have found the solution !!

If you want that your Native Control respects the size of the rect your are programming, you have to set

iphoneUseDeviceResolution true, true

at the preOpenStack script.

I have forgotten the second "true" setting wich is to adapt the native control to the size of the screen.
I have found the information into the release note as the documentation of livecode missed that point (see iphoneUseDeviceResolution article).

Hope this helps people there ;-)

Post Reply