Putting buttons on top of a browser

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Theo@xceed.be
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 13
Joined: Thu Jul 19, 2012 9:51 pm
Contact:

Putting buttons on top of a browser

Post by Theo@xceed.be » Thu Jun 27, 2013 12:39 pm

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 ?

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Putting buttons on top of a browser

Post by Dixie » Thu Jun 27, 2013 12:43 pm

You can't put buttons on top of the browser... the browser overlay, is overlaid on top of everything else...

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Putting buttons on top of a browser

Post by Mag » Thu Jun 27, 2013 3:03 pm

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.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Putting buttons on top of a browser

Post by Simon » Thu Jun 27, 2013 5:03 pm

A substack can be placed on top I believe.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Putting buttons on top of a browser

Post by Klaus » Thu Jun 27, 2013 5:12 pm

Simon wrote:A substack can be placed on top I believe.
Simon
Not on iOS! 8-)

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Putting buttons on top of a browser

Post by Simon » Fri Jun 28, 2013 4:14 am

Rats!
And I so knew that!
Why didn't I read which forum this was posted t0.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Theo@xceed.be
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 13
Joined: Thu Jul 19, 2012 9:51 pm
Contact:

Re: Putting buttons on top of a browser

Post by Theo@xceed.be » Tue Jul 02, 2013 11:49 am

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 ?

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: Putting buttons on top of a browser

Post by shaosean » Tue Jul 02, 2013 11:58 am

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..

William Jamieson
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 212
Joined: Fri Feb 01, 2013 1:31 am
Contact:

Re: Putting buttons on top of a browser

Post by William Jamieson » Wed Sep 25, 2013 7:45 pm

Is there a solution to this problem? Was anybody able to change the source code?

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Putting buttons on top of a browser

Post by Simon » Wed Sep 25, 2013 8:21 pm

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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply