Hi guys, I will try to script a little, using the samples from Jon Bradley, and see what else can I do with Strata.
I am writing a scale converter and I would like to keep the dialog window always open (I will share the script as soon as it is done). Here how it works: - using a dialog window, users can select what the measurement system they want to convert to (a radio box collects the selection) - user informs the value to be converted - user click CONVERT - after calculations, the return should be an static text in the window informing the results (Alerts bother everybody and I like to keep the scale converter always open)
Problem currently is: - [severe] how to keep the dialog window always open?
You can pass a callback function to the s3d.ui.Dialog Present method. It gets called for every control hit, including the buttons, so you can detect a button press and do whatever you'd like.
We're starting to fill in the scripting documentation now. Look here for more dialog examples and look here for the most recent Dialog class documentation.