peResizeMode - cWebDrawing
Determines how the canvas should handle resizing changes
Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None
Syntax
{ WebProperty=Client }
Property Integer peResizeMode
| Access Type | Syntax |
|---|---|
| Read Access: | WebGet peResizeMode to IntegerVariable |
| Write Access: | WebSet peResizeMode to IntegerVariable/Value |
Description
Determines how the canvas should handle resizing changes.
Valid values are:
| Constant | Meaning |
|---|---|
| wdResizeModeDisabled | Keeps the canvas to the sizes that were specified in piDrawingWidth and piDrawingHeight |
| wdResizeModeScale | Allows you to set a piDrawingWidth and piDrawingHeight that will set the viewbox of the svg canvas |
| wdResizeModeCrop | Changes the size of the canvas to the size of the control (the div that its in) whenever the size of the control is changed |
wdResizeModeCrop changes the size of the canvas to the size of the control (the div that its in) whenever the size of the control is changed. When wdResizeModeCrop is selected, piDrawingWidth and piDrawingHeight will be ignored.
wdResizeModeScale allows you to set a piDrawingWidth and piDrawingHeight that will set the viewbox of the svg canvas. When the control is resized, the canvas will resize the same way, keeping the original aspect ratio of whatever was on the canvas. This helps things that are drawn on the canvas to appear the same on smaller and larger monitor sizes.
wdResizeModeDisabled keeps the canvas to the sizes that were specified in piDrawingWidth and piDrawingHeight. It will always try and keep those sizes. Whenever the control is made really small it will still be cut shorter, but when it is expanded again it will only resize up untill the point where the width is equal to piDrawingWidth and the height is equal to piDrawingHeight.
About Web Properties
Each web property maintains two values: The regular property value is set during object creation and should not be changed during the lifetime of that object. To access that value, use the standard property Get and Set syntax.
The web property value is the local value stored at each client. This is synchronized to the client's local value whenever a server call is being processed. To access the web property value, use the WebGet and WebSet syntax above instead of the standard Get and Set syntax.
About Web Properties
Each web property maintains two values: The regular property value is set during object creation and should not be changed during the lifetime of that object. To access that value, use the standard property Get and Set syntax.
The web property value is the local value stored at each client. This is synchronized to the client's local value whenever a server call is being processed. To access the web property value, use the WebGet and WebSet syntax above instead of the standard Get and Set syntax.