Eric Chatonet wrote:
Assuming that this is done with the pointer tool: just set the cRevLoadInfo["revResizeControl"] of your stack to true. I's a trick normally reserved for plugins but it works with any stack. Then the engine will send a revResizeControl to you. Just change the name of your resizeControl handler :-) No frontscript needed...
No *additional* frontScript needed, but the revResizeControl message is sent my Rev's own frontScript, and is not natively part of the engine.
When a control is resized via script, neither the resizeControl nor revResizeControl messages are sent; they're only sent when resizing the control interactively with the pointer tool.
(In fact, given how revResizeControl mirrors the already-built-in resizeControl message, I wonder why RunRev just doesn't rely on the engine for that. But I digress.)
If you need to trigger behaviors when a control is resized, it may be best to use a custom property for that, with setProp and getProp handlers to trigger any other behaviors needed:
setProp MyRect pRect set the rect of the target to pRect -- add other behaviors here: end MyRect getPop MyRect return the rect of the target end MyRect -- Richard Gaskin Managing Editor, revJournal _______________________________________________________ Rev tips, tutorials and more: http://www.revJournal.com _______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
