i am looking for a basic framework or a script that i could learn "interactive" dialogs from - scripts that preview (imediatly do) changes.
A simplified example: I have a dialog box with an entry field to rotate a selected object. Any change in the edit box would imediatly rotate the object - like a preview. If i'd click to cancel the object would flip back to its original state. If i'd click OK, the object would remain rotated.
It must have something to do with event handlers, but i am not good enough to figure it out from scratch. I need an example.
Can you point me in the right direction please? A good link?
(A light forum search availed naught.)
You can do that when you build your dialogs with the ScriptUI instead of InDesign's own routines. ScriptUI offers onChange handlers.
Lots of examples are in the Bridge SDK. Google reveals the URL of that.