Code: Select all
on openStack
   browserInit
end openStack
on closeStack
   browserClose
end closeStack
on browserInit
   if (the cBrowserID of me) is not empty then
      answer "Browser is already initialized"
      exit to top
   end if
   get revBrowserOpen (the windowId of me, "http://www.studionm.pl")
   if it is not an integer then
      answer "Failed to open browser"
      exit to top
   end if
   set the cBrowserID of me to it
   revBrowserSet it, "rect", (10,50,the width of me -10, the height of me - 10)
   revBrowserSet it, "visible", true
   revBrowserSet it, "showborder", true
end browserInit
on browserClose
   if the cBrowserID of me is empty then
      answer "There is not open browser"
      exit to top
   end if
   revBrowserClose (the cBrowserID of me)
   set the cBrowserID of me to empty
end browserClose
on setHtml
   if the cBrowserID of me is empty then exit to top
   revBrowserSet (the cBrowserID of me), "url", fld "urlField" of me
end setHtml
on resumeStack
   setHtml
end resumeStackEverything is working as expected until I set "the visible of myStack" to FALSE (when I want to hide it) and back to TRUE when I want to use it again.
My stack is then visible with all objects on it but browser doesn't show any content or even border. It doesn't help any "revBrowserRedraw" or "revBrowserRefresh" command.
Checking by "revBrowserGet" function the browser properties "rect", "visible", "show border", "url" and "htmltext" seems everything is OK. I see there expected content.
When I trigger "setHtml" handler, the content of browser properties "url" and "htmltext" changes as expected, but content and borders of the browser is still not visible.
Did I missed something, or is it the bug? Any help?
Thanks in advance,
Marek

