Browser group won't disappear !
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 45
- Joined: Mon Apr 21, 2014 10:41 am
- Contact:
Browser group won't disappear !
I have built the browser example described at http://lessons.runrev.com/s/lessons/m/4 ... er-control
It works fine, but when I try to go to another card, the browser area (group "Browser") sticks to the screen. The card changes (I can see the new card behind), but the browser area stays over.
I tried to set the visible of group "Browser" to False, but it does nothing.
Searched this forum but could not find mention of this problem.
How can I get rid of the browser when I move to another card ?
Thank you.
It works fine, but when I try to go to another card, the browser area (group "Browser") sticks to the screen. The card changes (I can see the new card behind), but the browser area stays over.
I tried to set the visible of group "Browser" to False, but it does nothing.
Searched this forum but could not find mention of this problem.
How can I get rid of the browser when I move to another card ?
Thank you.
Mitch
http://FontMenu.com
Re: Browser group won't disappear !
You have two choices here...
1. You can destroy the browser instance as you leave the card
2. Just hide it, if you just want to build it the one time and use it again when you come back to the card on which it displays
1. You can destroy the browser instance as you leave the card
Code: Select all
mobileControlDelete theBrowserID
Code: Select all
mobileControlSet theBrowserID, "visible", "false"
-
- Posts: 45
- Joined: Mon Apr 21, 2014 10:41 am
- Contact:
Re: Browser group won't disappear !
Thank you Dixie.Dixie wrote:You have two choices here...
1. You can destroy the browser instance as you leave the card2. Just hide it, if you just want to build it the one time and use it again when you come back to the card on which it displaysCode: Select all
mobileControlDelete theBrowserID
Code: Select all
mobileControlSet theBrowserID, "visible", "false"
Amazingly enough, the delete command was already there but somehow the variable "sBrowserId" that is supposed to keep the browser ID from its creation in PreOpenCard is not accessible from the other handlers. It was declared as
Code: Select all
Local sBrowerId
Code: Select all
Global sBrowserId
Now I have to figure out what is going on.
Mitch
http://FontMenu.com
Re: Browser group won't disappear !
I have posted a stack...
It has two cards, the browser is built the first time you go to the second card
You can then move between the two cards and the browser will be hidden or shown, depending if you are on the first or second card
The handlers are in the card script of the second card...
hope it helps...
It has two cards, the browser is built the first time you go to the second card
You can then move between the two cards and the browser will be hidden or shown, depending if you are on the first or second card
The handlers are in the card script of the second card...
hope it helps...

- Attachments
-
- hideBrowser.livecode.zip
- (2.01 KiB) Downloaded 191 times
-
- Posts: 45
- Joined: Mon Apr 21, 2014 10:41 am
- Contact:
Re: Browser group won't disappear !
Thank you so much Dixie. You are greatDixie wrote:I have posted a stack...
It has two cards, the browser is built the first time you go to the second card
You can then move between the two cards and the browser will be hidden or shown, depending if you are on the first or second card
The handlers are in the card script of the second card...
hope it helps...

Mitch
http://FontMenu.com