onViewerResize - event of the PmgRoot object
Description:
The event is triggered if panel window size is changed. The event can be used for changing the position and size of Pmg objects based on the current panel window size.
Parameters:
pMe | (Object) Reference to the PmgRoot object where the event rises. |
---|
pEvent | (Object) Reference to object describing detailed information about the specific event. pEvent.Dx - ( Long)New panel window size of X axis (in pixels). pEvent.Dy - ( Long)New panel window size of Y axis (in pixels). |
---|
Note:
In this event, it is possible to adapt the size of the panel itself or the individual Pmg objects to the current panel window size. The size of panel content is represented by the size of the
PmgRoot object. The panle size change can be done by changing the values
Dx and
Dy of the
PmgRoot object.
This event is also functional in
Web panels.
Example1:
An example of the event content. The panel size is adapted to current size of panel window. In this process the position and size of individual Pmg objects are not modified. Only the panel size is modified (wihout scrollbars). For changing position and size of selected Pmg objects, these must be modified individually.
JavaScriptVBScriptSelect and copy to clipboard
pMe.Dx = pEvent.Dx;
pMe.Dy = pEvent.Dy;
pMe.Dx = pEvent.Dx
pMe.Dy = pEvent.Dy