On Apr 9, 2006, at 1:00 PM, Geoff Canyon wrote:

Here is an example of something slightly larger than a single line
(and actually useful) that I think is bug-free:


on stableSetSize pID,W,H
   -- sets the width and height of pID
   -- while keeping the topleft the same
   try
     put the rect of pID into tRect
   catch tSomeError
     exit stableSetSize
   end try
   if W is a number then put item 1 of tRect + W into item 3 of tRect
   if H is a number then put item 2 of tRect + H into item 4 of tRect
   set the rect of pID to tRect
end stableSetSize


Assuming correct input  it seems to be bug free. However..

on mouseUp
  put "button 1" into PID
  put 500000000000000.2 into W -- !
  put 50.3 into H
  stableSetSize pID,W,H
end mouseUp

Throws execution error here "rectangle does not have 4 points"

:)

best regards
Tariel

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to