Page 1 of 1
Putting buttons on top of a browser
Posted: Thu Jun 27, 2013 12:39 pm
by Theo@xceed.be
I want to put a next and previous button on top of a iOS browser.
I expected this to work by changing the layer of the next/prev buttons to top, after creating the browser object, like this
iphoneControlCreate "browser"
put the result into browserID
iphoneControlSet browserID, "url", theURL
iphoneControlSet browserID, "visible", "true"
set the layer of graphic "Previous" to top
set the layer of graphic "Next" to top
But unfortunately this does not help: the buttons remain hidden behind the browser object.
Any ideas ?
Re: Putting buttons on top of a browser
Posted: Thu Jun 27, 2013 12:43 pm
by Dixie
You can't put buttons on top of the browser... the browser overlay, is overlaid on top of everything else...
Re: Putting buttons on top of a browser
Posted: Thu Jun 27, 2013 3:03 pm
by Mag
Hi
Theo@xceed.be, sad but true: all the native controls created with mobileControlCreate stay on top of all the LC controls. This is what I know, happy if somebody corrects me.
Re: Putting buttons on top of a browser
Posted: Thu Jun 27, 2013 5:03 pm
by Simon
A substack can be placed on top I believe.
Simon
Re: Putting buttons on top of a browser
Posted: Thu Jun 27, 2013 5:12 pm
by Klaus
Simon wrote:A substack can be placed on top I believe.
Simon
Not on iOS!

Re: Putting buttons on top of a browser
Posted: Fri Jun 28, 2013 4:14 am
by Simon
Rats!
And I so knew that!
Why didn't I read which forum this was posted t0.
Simon
Re: Putting buttons on top of a browser
Posted: Tue Jul 02, 2013 11:49 am
by Theo@xceed.be
Mag wrote:Hi
Theo@xceed.be, sad but true: all the native controls created with mobileControlCreate stay on top of all the LC controls. This is what I know, happy if somebody corrects me.
I wonder if this is a LiveCode limitation, or an iOS one ?
Re: Putting buttons on top of a browser
Posted: Tue Jul 02, 2013 11:58 am
by shaosean
I think it is a Rev limitation.. I believe they actually create windows for each control (or perhaps an overlay window with the controls).. The source code is freely available, so you can always change this if you want..
Re: Putting buttons on top of a browser
Posted: Wed Sep 25, 2013 7:45 pm
by William Jamieson
Is there a solution to this problem? Was anybody able to change the source code?
Re: Putting buttons on top of a browser
Posted: Wed Sep 25, 2013 8:21 pm
by Simon
Hi Will,
The OP is not clear on the purpose of the buttons.
From the sound of it, they are reading local html files and want to go from page to page. The first solution is to include the previous/next buttons in the html.
Other then that, it's to not make the browser rectangle full screen, just leave enough room for buttons down at the bottom.
The direct answer to the OP's question has been given above. Nothing goes on top of the browser object.
Simon