Working with Forms


 

Forms in Zinc™ v2 can be added and removed from the Forms Pane:

 

Forms_01

 

 

Forms do not need to be used in your Project, but they can easily be incorporated as your application grows in size and complexity. Every entry under your MainForm is referred to as a SubForm. All Forms can be given unique names by clicking on the Form Name, and then clicking again to edit it. A quick double-click will execute a quick preview of the Form.

 

Form Properties

 

Each Form has it's own properties and settings which are independent to the Main Form. For example, the Main Form can be transparent, but sub-Forms can have standard Windows Styles, or be masked, or be Transparent also.

 

Sub-Forms can also be "Modal" which means that an action must be completed (either by the user or within the Form) before other Forms become active again. This can be a great asset when developing your own custom dialogs.

 

Form Communication

 

Each Form is created from an individual SWF file. This means that each Form can also execute any available {mdm}Script™ 2.0 Command, just as the main SWF does. In addition, Forms have a number of unique commands which can be used to control other Forms from any location. Using Forms in Zinc™ v2.5 opens up new possibilities in Flash Application Development!

 

Form Class

 

{mdm}Script™ 2.0 also has a Forms class which contains methods and properties specifically for Application Forms. A typical Forms command would be:

 

mdm.Forms.MainForm.width = 400;

 

 

Notice that the name of the form, MainForm, is referenced in the actual command. If the name of the Form is not known, you can also use "thisForm":

 

mdm.Forms.thisForm.width = 400;