revBrowser IDE problem

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
infantilo
Posts: 12
Joined: Sat Aug 10, 2013 5:16 pm

revBrowser IDE problem

Post by infantilo » Wed Sep 18, 2013 7:02 am

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"

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

Re: revBrowser IDE problem

Post by Simon » Wed Sep 18, 2013 7:55 am

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

infantilo
Posts: 12
Joined: Sat Aug 10, 2013 5:16 pm

Re: revBrowser IDE problem

Post by infantilo » Wed Sep 18, 2013 8:01 am

not shure if i got ya right...i mean resizing not programatically but within the IDE using the edit pointer.

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

Re: revBrowser IDE problem

Post by Simon » Wed Sep 18, 2013 8:09 am

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

Post Reply