A dynamic shape is a way to set the shape of a window depending on the content of the HTML document rendered in your HTML document.
The shape is defined by a transparent color defined by the first pixel in the top-left part of the HTML document.
In this example, two DIV tags are visible. When autoShape is applied,
the grey part is invisible as the color of the first pixel in the top left part of
the browser object is set as transparent color.
Dynamic shape is useful to animate a window, for example to open a side panel, to switch to another shape, etc.
The animation is done in DHTML/JavaScript, Flash or any other embedded component, and the shape of the window will be automatically set in real-time.
For more information about the shape of the window and the transparent color: mio_autoShape_apply.
When mio_autoShape_start is called, MioEngine hides the web browser object, and renders continuously the image of the browser object and the shape of the window.
As the browser object is hidden and only a bitmap is drawn over the window, the user cannot interact with the application.
When the function mio_autoShape_end is called, the shape is fixed, and the user can interact again with the application.
You should proceed as follow:
- Call mio_autoShape_start
- Animate your HTML document, for example to open or close a side panel.
- Call mio_autoShape_end.
If you want to apply a shape with no animation, you can use mio_autoShape_apply. |