In the card script:
Code: Select all
on resizeStack cardWidth, cardHeight
.....
  set the height of the image field "browser image" to cardWidth-50
.....
end resizeStackMy problem is resize the image object used for browser container.
In both livecode mode (execution or programming) i have difficulties to
manual resize the image. The image seems to be blocked and duplicated.
So i can delete the image e restart my operation. Do you know this problem?
bad coding the closeCard or closeBrowser script? Other consideration on browser:
with edit pointer set to 'on' browser is also active. Why? I can't resize the image field.
Here is the code on card, it works well but i don't know about closeCard and browserClose
because browser image object freeze on edit mode:
Code: Select all
global myBrowser
on openCard
   browserOpen
   send "mouseUp" to button "ButtonHome"
end openCard
on browserOpen
   put revBrowserOpen(the windowid of this stack,"") into myBrowser
   revBrowserSet myBrowser, "showborder","true"
   revBrowserSet myBrowser, "visible","true"
   revBrowserSet myBrowser, "rect",rect of image "browser image"
end browserOpen
# provide a status message that indicates loading has started
on browserBeforeNavigate myBrowser,pUrl
  put "Started loading:" && pUrl into field "Status"
end browserBeforeNavigate
# provide a status message that indicates loading has ended
on browserNavigateComplete mybrowser,pUrl
   put pURL into field "url"
   put "Finished loading:" && pUrl into field "Status"
   wait for 2 seconds
   put " " into field "Status"
end browserNavigateComplete
on browserClose
   revBrowserClose myBrowser
   put empty into myBrowser
end browserClose
on closeCard
   if myBrowser is not empty then
      revBrowserClose myBrowser
      put empty into myBrowser
   end if
end closeCard