Forms.constraints() This page was last modified over 30 day(s) ago and has 0 comment(s)


Back to Forms Class Summary

Availability
Windows, Mac OSX, Linux

Usage
mdm.Forms.formName.constraints(maxWidth:Number, maxHeight:Number, minWidth:Number, minHeight:Number):Void

Parameters
maxWidth:Number - Maximum form width

maxHeight:Number - Maximum form height

minWidth:Number - Minimum form width

minHeight:Number - Minimum form height

Returns
Nothing

Description
Sets the maximum and minimum values that the specified form can be resized to.

Notes
Please note that forms can still be maximized with Forms.maximize().

Example Code
//AS2:
mdm.Forms.MainForm.constraints(400, 400, 200, 200);

//AS3:
mdm.Forms.getFormByName("MainForm").constraints(800, 600, 150, 250);

mdm.Forms Class Example Downloads
No Example Downloads Available


Registered Users must be logged in to 'MyAccount' to add a Comment - Log In Here
  After Logging In, Click Here to Refresh This Page