Destroy Browser Window

Mike Bonner bonnmike at gmail.com
Tue Aug 2 17:27:17 EDT 2016


If setting its visible to false, and/or moving it off screen won't work,
treat it like the control it is.  If you were deleting a field, you would
"delete field "fieldname.." or whatever method you wish to use to specify
the specific field.  Do the same with the browser widget.
delete widget "nameofmybrowserwidget"

On Thu, Jul 28, 2016 at 2:58 PM, Sannyasin Brahmanathaswami <
brahma at hindu.org> wrote:

> setting the URL for the browser widget to empty doesn't destroy the
> region… all it does it turns it "white" (empty)  so now you have a white
> block overlaying the stack "permanently"  with no means to dismiss.
>
>
> On 7/28/16, 10:28 AM, "use-livecode on behalf of Sannyasin
> Brahmanathaswami" <use-livecode-bounces at lists.runrev.com on behalf of
> brahma at hindu.org> wrote:
>
>     But, there is this in the LCB file… perhaps all it takes is setting
> the URL of the browser to empty? will try that… but still seems like there
> should be a higher level "destroy browser instance" for the new browser
> widget
>
>     private handler clearBrowser()
>               setHtmlText(the empty string)
>     end handler
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list