Window Control
From FusionWiki
| Window Control | |
|---|---|
| General Information | |
| Author: | Clickteam |
| Release Date: | 2006 |
| Status: | Released |
| Last updated: | Unknown |
| Version: | ? |
| Build: | Core |
| Developer-only: | No |
| Website: | Not available |
| Download: | Core |
| Runtime Versions | |
| HWA: | Yes |
| Flash: | No |
| Java: | No |
| Java Mobile: | No |
| Vitalize!: | No |
| Unicode: | No |
Window Control is one of the brought along standard extensions for Multimedia Fusion 2. The Window Control object is used to control the window used to display your application. You can hide the window, show it, and move it in front of or behind all other windows. Other features of the Window Control object include the ability to restore, maximize, minimize, and resize the application Window.
The Window Control object can also be used in sub-applications to manipulate the sub-application window.
Contents |
Actions
- Set Title - Sets the window title.
- Position
- Set Position - Positioned the window to a fixed position.
- 0 - top left of the screen
- 1 - top center of the screen
- 2 - top right of the screen
- 3 - middle left of the screen
- 4 - center of the screen
- 5 - middle right of the screen
- 6 - bottom left of the screen
- 7 - bottom center of the screen
- 8 - bottom right of the screen
- Set X Coordinate... - Sets the horizontal coordinate of the window.
- Set X Coordinate... - Sets the vertical coordinate of the window.
- Immediate Move... - Positioned the window to given horizontal and vertical coordinates.
- Bring Window to Top - Brings window to top once.
- Bring Window to Back - Brings window to back once.
- Bring Window Always on Top - Brings window always to top per one event.
- Bring Window not Always on Top - Brings window always to back with per event.
- Bring Window Always on Top - Brings window always to top per one event.
- Bring Window not Always on Top - Brings window always to back with per event.
- Attach to desktop - Attaches window to desktop.
- Detach from desktop - Detaches window to desktop.
- Set Position - Positioned the window to a fixed position.
- Visibility
- Make Window Invisible - Hides the window.
- Make Window Reppear - No more hides the window.
- Set Background Color - Sets the background color of the window by color selector or calculation.
- Flash Window in Taskbar - Flashs window in taskbar.
- Resize
- X Size... - Modifies the horizontal size of the window.
- Y Size... - Modifies the vertical size of the window.
- Restore Window - Restores the window back from the taskbar.
- Minimize Window - Minmizes the window to the taskbar.
- Maximize Window - Maximizes the window to the entire screen.
- Frame Window
- Set X Position - Sets the horizontal position of the application frame.
- Set Y Position - Sets the vertical position of the application frame.
- Set Width - Modifies the height of the application frame.
- Set Height - Modifies the width of the application frame.
- Focus
- Set Focus - Gives the input focus to the window.
- Save Focus - Memorizes the window that has the input focus.
- Restore Focus - Gives the input focus to the window memorized with Save Focus.
Conditions
- Window is minimized? - Tests to see if the application Window had been minimized.
- Window is maximized? - Tests to see if the application Window is maximized to the entire screen.
- Window is visible? - Tests to see if the application Window is visible.
- Has Focus? - Tests to see if the application has the input focus.
- Window is attached to desktop? - Tests to see if the application has been attached to the desktop.
- application is active? - Tests to see if the application is active.
Expressions
- Application Window
- Window Title - Retrieves the title of the application Window.
- Horizontal position of the window - Retrieves the horizontal coordinate of the window.
- Vertical position of the window - Retrieves the vertical coordinate of the window.
- Horizontal size of the window - Retrieves the width in pixels of the window.
- Vertical size of the window - Retrieves the height in pixels of the window.
- Horizontal size of the client area - Retrieves the width in pixels of the window without borders.
- Vertical size of the client area - Retrieves the height in pixels of the window without borders.
- Background Color - Retrieves the RGB value of the background color of the application window.
- Window Title - Retrieves the title of the application Window.
- Frame window
- X Position - Retrieves the horizontal position of the frame window.
- Y Position - Retrieves the vertical position of the frame window.
- X Size - Retrieves the width of the frame window.
- Y Size - Retrieves the height of the frame window.
- Screen
- Horizontal size of the screen - Retrieves the width in pixels of the entire screen.
- Vertical size of the screen - Retrieves the height in pixels of the entirescreen.
- Screen Depth - Retrieves the number of bit planes of the screen.
- 8 in 256 colors
- 15 in 32000 colors
- 16 in 65000 colors
- 24 or 32 in true color mode
Usage
Here's an example of how to attach the window to the desktop, positioning it to the left bottom corner after clicking onto a button and restore it after 10 seconds.
| 1 |
And here's another example, flashing the the icon in the taskbar if the window isn't active to remind the user that there is still something left.
| 1 |
