* Warning * The format is completely revamped

Now it is just Include xControl.ew

 

This will allow me to add new controls without each one requiring an include statement in the main file.

 

 

Function: LS = xControl( LimitSize, “”, Parent, MinCX, MinCY, MaxCX, MaxCY, 0, 0 )

 

Creates a new LimitSize control and returns it's ID. The extra fields colored in red are not used in this control but needed for uniformity.

 

When resizing the parent, this control will monitor the changes and restrict the parents size according to params 4-7.

 

MinCX: Minimum allowable width in pixels

MinCY: Minimum allowable height in pixels

 

MaxCX: Maximum allowable width in pixels

MaxCY: Maximum allowable height in pixels

 

Note: Any value less than 1 will be ignored.

 

Example:

Limits = xControl( LimitSize, “”, MainWin, 300, 300, 0, 0, 0, 0 )

 

This will limit MainWin’s minimum size to 300 x 300.  Maximum will not be affected.

 

Version 1.0

Initial release

 

Enjoy!

Any questions, comments, suggestions, (ack bugs!) are welcome:

< eunexus@yahoo.com >