set borderWidth spoils images

Richmond Mathewson geradamas at yahoo.com
Fri Mar 6 15:42:17 EST 2009


Tried this:

on mouseUp
  set the vis of btn "Button 1" to false
  create img "BOX"
  put the windowID of this stack into WINDY
  put the rect of card "KARD" into HANDY
  export snapshot from rect HANDY of window WINDY to img "BOX" as PNG
  set the borderColor of img "BOX" to "green"
put the bottomRight of card "KARD" into BRITE
put the width of card "KARD" into WIDD
  put the height of card "KARD" into HITE
set the width of img "BOX" to (WIDD / 2)
set the height of img "BOX" to (HITE / 2)
set the borderWidth of img "BOX" to 4
set the bottomRight of img "BOX" to BRITE
 set the vis of btn "Button 1" to true
end mouseUp

(the 2 'offending lines' have been lifted to be before the image "BOX"
is resized)

resizing works perfectly OK;

still no green border, though . . .

sincerely, Richmond Mathewson.

____________________________________________________________

A Thorn in the flesh is better than a failed Systems Development Life Cycle.
____________________________________________________________


      



More information about the Use-livecode mailing list