Trigger resizeControl?

David Bovill david at openpartnership.net
Fri Jun 22 12:39:23 EDT 2007


No unfortunately. The way I do this is to:

   set the view_Rect of someControl to someRect

You can then place these scripts in the front script:

setprop view_Rect someRect
  put the long id of the target into targetObject
  put the rect of targetObject into someRect
  trigger_FrontScriptResize someRect, targetObejct
end view_Rect

on resizeControl
  put the long id of the target into targetObject
  put the rect of targetObject into someRect
  trigger_FrontScriptResize someRect, targetObejct
  pass resizeControl
ebd resizeControl

on trigger_FrontScriptResize someRect, targetObejct
  -- do your stuff here
end trigger_FrontScriptResize

I do this for each view rather than a frontScript, but you can mix both
approaches with a local custom property over-riding the global default - for
this though don't put the script in the front script!



More information about the use-livecode mailing list