Method
Description:
The window serves for setting the parameters of one method.
It is opened from the "Draw" tab.
Configuration items:
Name | Method name. This name must not be identical with another existing method of this object. |
---|
Initial method content | Specifies the initial content of the method script when it is created. empty content - The method will be created with empty script. select PmgCanvas image - The method will be created with script that implements the drawing of selected PmgCanvas image. draw PmgCanvas image - The method will be created including the script that is generated by drawing the PmgCanvas image in Canvas editor. |
---|
Parameters | The name of method parameters separated by a comma, for example par1,par2,par3. If not set, then the method is without parameters. |
---|
Image selection | It is used for PmgCanvas image selection from Pmg object palette. |
---|
Image drawing | It is used for opening the window of Canvas editor. |
---|
Insert calling of this method to the end of 'onDraw' event | If checked, then a code is added automatically to the end of 'onDraw' method that sets the necessary parameters and calls the event. |
---|
Image position | Specifies image position and size relative to the area of the whole Pmg object. over the whole area of the Pmg object - The image will be drawn over the whole area of the Pmg object. If a non-zero border size is entered, then the area will be smaller by the defined value symetricaly. in the selected subregion of the Pmg object - The image will be drawn in manualy selected subregion of the Pmg object. |
---|
Border width | Image border width. Entered in pixels or in percentage relative to the whole Pmg object size. |
---|
x | X coordinate of upper left corner of the image. Entered in pixels or in percentage relative to the size of whole Pmg object. |
---|
y | Y coordinate of upper left corner of the image. Entered in pixels or in percentage relative to the size of whole Pmg object. |
---|
dx | Image width. Entered in pixels or in percentage relative to the size of whole Pmg object. |
---|
dy | Image height. Entered in pixels or in percentage relative to the size of whole Pmg object. |
---|