Klaus wrote:Okie Dokie, then simply set the browserrect in in your "resizestack" script to the new calcluated size.
Remember that "resizestack" comes with 4 parameters:
on resizestack newWidth,newHeight,oldWidth,oldHeight
So computing the new neccessary rect for the browser shold be no problem.
Hi, i studied this example
http://lessons.runrev.com/m/4071/l/2384 ... is-resized.
In the card script:
Code: Select all
on resizeStack cardWidth, cardHeight
--graphics and list field
set the width of graphic "rectangle" to cardWidth
set the topleft of graphic "rectangle" to 0,0
set the points of graphic "line" to the bottomleft of graphic "rectangle" & return & the bottomright of graphic "rectangle"
put 0 into listFieldLeft
put the bottom of graphic "rectangle" +1 into listFieldTop
put cardWidth into listFieldright
put cardHeight -14 into listFieldbottom
set the rect of field "list" to listFieldLeft,listFieldTop,listFieldRight,listFieldBottom
--search field and buttons
set the right of button "button 3" to cardWidth - 9
set the right of button "button 2" to the left of button "button 3" - 3
set the right of button "button 1" to the left of button "button 2" - 3
put the topleft of field "search" into savedTopLeft
put the left of button "button 1" - the left of field "search" -3 into theWidth
set the width of field "search" to theWidth
set the topleft of field "search" to savedTopLeft
end resizeStack
With textfield and buttons i have no problem in resizing coding script.
My 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?
Other consideration on browser:
with edit pointer set to 'on' browser is also active. Why? I can't resize the image field.