mobileControlDelete doesn't work

John Dixon dixonja at hotmail.co.uk
Tue Jul 17 18:44:35 EDT 2012



Rick...

Nice one !... You don't want to know for how long I have pondered on this...:-) I still think that you should be able to destroy the scroller as you leave the card and build it again on returning... but as a work around it certainly works... !

be well

Dixie

> Hi Dixie, Jacque, etc.
> 
> Here is the fix!
> Since scroller IDs are not deleted even though the
> scroller itself is deleted what needs to be done is to:
> 
> 1. First check for the existence of a scroller ID control.
> 2. If it doesn't yet exist - then create it.
> 3. When you closeCard do not delete the scroller (you'll need it again when you come back.)
> 4. Go to your next card and come back to the original card with the scrollers.
>     (This time when the check for existence happens we don't create any new scrollers so they still work fine!)
> 5. When exiting the stack - Now delete the scroller controls and clean up after things.
> 
> I tried it, and it works!
> 
> Thank you for your help!
> 
> Rick
 		 	   		  


More information about the use-livecode mailing list