Brass Plugins: Mime
Supported Directives: Api - Set
Window Size
This directive manipulates the position of a window.
It can manipulate top level windows and child windows.
The format of the directive is:
[WindowSize(width,height)]
The width and height parameters are the dimensions in pixels you
want to resize the window to. If you need
to resize a window belonging to another application, you must first
change the target window using the SetTargetWnd() directive.
Example
Resize the window to 400 pixels wide and 300 pixels high:
[WindowSize(400,300)]
Technical Notes
Be aware that this directive can override an application's
normal behaviour. For example many applications prevent the user
from resizing some of their windows. This directive will ignore
any restrictions and try to forcibly resize the window. This can
sometimes result in a strange looking user interface. This is not
a bug in the directive, just that the application is being forced
to do something it wasn't designed to.
Generally if you can resize a window manually with
the mouse, this directive will cause no problems.
|