This is a small tutorial on how to make dynamic window sizes from within your

application in Multimedia Fusion 2. This tutorial uses the Window Control

Object and the Window Life Object.

------- Step 1 -------
Insert the Window Control and Window Life Objects into your frame. Add a

multiline edit object as an example. You can use anything that you can set

the width and height of in pixels. I am just going to call this object

"Active".

------- Step 2 -------
Go to the event editor, and use these events:

• Window Life Object: On Window Resize
- Window Control > Frame Window > Set Width: ClientWidth( "Window Control" ), adjust frame size: 1
- Window Control > Frame Window > Set Height: ClientHeight( "Window Control" ), adjust frame size: 1
- Edit Box > Size > Set Horizontal Size: ClientWidth( "Window Control" )
- Edit Box > Size > Set Vertical Size: ClientHeight( "Window Control" )

------- Step 3 -------
Go to your application settings (by clicking on the name of your application

in the Workspace Toolbar) and set it to run while resizing.


---------------- CUSTOM RESIZING ----------------
Here are some more custom resizing methods (Assuming you've already done the first two events above):

ALIGN RIGHT

• Window Life Object: On Window Resize
- Edit Box > Set X position: ClientWidth( "Window Control" )-Edit X Size( "Edit Box" )
- Edit Box > Set Y position: 0
- Edit Box > Set Vertical Size: ClientHeight( "Window Control" )

ALIGN TOP

• Window Life Object: On Window Resize
- Edit Box > Set position: 0,0
- Edit Box > Set Horizontal Size: ClientWidth( "Window Control" )

ALIGN BOTTOM

• Window Life Object: On Window Resize
- Edit Box > Set X position: 0
- Edit Box > Set Y position: ClientHeight( "Window Control" )-Edit Y Size( "Edit Box" )
- Edit Box > Set Horizontal Size: ClientWidth( "Window Control" )



I hope you found this tutorial useful. It's not a perfect solution, but it works. There is a problem with the FPS when you have too many aligned "panels". If anyone could find a solution, tell me and I will add it to this article.