4D v13

SVGTool_SET_VIEWER_CALLBACK

Home

 
4D v13
SVGTool_SET_VIEWER_CALLBACK

SVGTool_SET_VIEWER_CALLBACK 


 

SVGTool_SET_VIEWER_CALLBACK ( methodName ) 
Parameter Type   Description
methodName  Text in Name of 4D project method

The SVGTool_SET_VIEWER_CALLBACK command is used to install methodName as the project method that will be called when the On Clicked and On Mouse Move events occur on the image displayed by the SVGTool_SHOW_IN_VIEWER command. 

This method receives a text parameter that is the ID of the element being clicked or over which the mouse is moving as provided by the 4D SVG Find element ID by coordinates command.

This parameter must be declared in the methodName project method of the host database by inserting it into the line C_TEXT($1).

You must assign the "Shared by components and host database" property to the methodName method.

If the method does not exist or is not shared, the error -10508 is generated by 4D.

 
PROPERTIES 

Product: 4D
Theme: Utilities
Number: 65875

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D v12