designnewz
Automotive
- Jan 11, 2014
- 52
I am currently using Snap Journaling and When I create a script AND RUN FOR first time the script generates a DLX file. Does anyone Know Where the DLX File would reside on any computer. This may help me when Different groups that are in Play with this specific Script.
When you use the BlockStyler to create a dialog, a separate file (.DLX) is created, and stored in that file is a lot of info about how the dialog should look when launched. In addition, in the code that calls the dialog into existence, there is something called an initialize callback which is a function that lets you control how the dialog will be displayed, and it will override what was stored in the .DLX file. In that scenario, when your apply callback runs, it also runs the initialize callback to reset any of the values in the dialog that you program it to reset.
When using SNAP to create these dialogs on the fly, there is no initialize callback, and the apply callback just takes whatever actions you tell it to, so nothing automatically resets the dialog. The code in New() only runs the first time you display the dialog - that is, as long as the dialog remains displayed, it never runs again. After you exit the dialog, then when you run it again, New() runs again.
When you use the BlockStyler to create a dialog, a separate file (.DLX) is created, and stored in that file is a lot of info about how the dialog should look when launched. In addition, in the code that calls the dialog into existence, there is something called an initialize callback which is a function that lets you control how the dialog will be displayed, and it will override what was stored in the .DLX file. In that scenario, when your apply callback runs, it also runs the initialize callback to reset any of the values in the dialog that you program it to reset.
When using SNAP to create these dialogs on the fly, there is no initialize callback, and the apply callback just takes whatever actions you tell it to, so nothing automatically resets the dialog. The code in New() only runs the first time you display the dialog - that is, as long as the dialog remains displayed, it never runs again. After you exit the dialog, then when you run it again, New() runs again.