Page 1 of 1

revBrowser IDE problem

Posted: Wed Sep 18, 2013 7:02 am
by infantilo
Hi,
i'm using an image object to display an webpage as mentioned in the browser tutorial and it works fine.
after the first time an webpage has been shown, i can't select the image object anymore and so i can't move or resize it.
Any idea why this is? I'm on windows 7.
this is how i initialise the browser object and afther this code run, the object can't be selected any more :-(

Code: Select all

 -- We pass the windowId of the stack to revBrowser 
   -- so that it can determine which window to place the
   -- browser object into
   put the windowid of this stack into tWinID
   
   -- Open the browser, using the windowId and initial url
   put revBrowserOpen(tWinID,"about:blank") into sBrowserId
   -- Set some basic properties for the browser
   revBrowserSet sBrowserId, "showborder","true"
   revBrowserSet sBrowserId, "rect",rect of image "browserimage"

Re: revBrowser IDE problem

Posted: Wed Sep 18, 2013 7:55 am
by Simon
Hi infantilo,
You'll have to trigger that revBrowserClose and I believe move off the card (go to a different card).
Best while sizing things to use a button to create the browser instance so it doesn't automatically create before you set the size.

Simon

Re: revBrowser IDE problem

Posted: Wed Sep 18, 2013 8:01 am
by infantilo
not shure if i got ya right...i mean resizing not programatically but within the IDE using the edit pointer.

Re: revBrowser IDE problem

Posted: Wed Sep 18, 2013 8:09 am
by Simon
Yes, for manually resizing the image.

At the moment I can't recall what revBrowserOpen creates is called, but it acts like a stack on top of your stack. You have to delete it and as I said, I believe move to another card. Then return to your browser card to resize the browserimage.
Again you want all the script in a button so it does not automatically load.

Simon