Button Click Command - WebPages
The Click Command property can be associated with the following WebPages elements, allowing you to interact with the image and/or elements:
Note:
- To enable these interactions, a Display or Recorded Image Viewer element must be on the WebPage.
- These interactions can also be called via a script. For more information, see the $ Functions: WebPages HMI.
Click Command | Description | Property Parameters (with Data Type) |
---|---|---|
WebPages.WebPage.Display.CancelEditGraphic | This command cancels edits made to a graphic. If there are multiple Buttons with Edit Graphic commands on a WebPage, a single Button with the Cancel Edit Graphic command will work with all of the Edit Graphic Buttons. | N/A |
WebPages.WebPage.Display.EditGraphic | This function is tied to a specific VisionPro Vision Tool graphic, typically for editing a Region of Interest (ROI). After enabling the Edit Graphic command, the address property must be specified, which defines which vision tool's ROI the graphic corresponds to. | address : String |
WebPages.WebPage.Display.EndEditGrapic | This command accepts any changes made to a graphic, and saves the changes to the vision system. If there are multiple Buttons with Edit Graphic commands on a WebPage, a single Button with the End Edit Graphic command will work with all of the Edit Graphic Buttons. | N/A |
WebPages.WebPage.Display.Pan | Provides the ability to move the image horizontally and vertically. X and Y coordinates can be specified. | x: Double, y: Double |
WebPages.WebPage.Display.PanTo | Provides the ability to move to a specific pixel location, horizontally and vertically, within the image. X and Y coordinates can be specified; the center of the graphic will be at the specified coordinates. | x: Double, y: Double |
WebPages.WebPage.Display.Rotate90CCW | Rotates the image 90° counter-clockwise. | N/A |
WebPages.WebPage.Display.Rotate90CW | Rotates the image 90° clockwise. | N/A |
WebPages.WebPage.Display.ZoomIn | Provides the ability to zoom in the image. | N/A |
WebPages.WebPage.Display.ZoomOut | Provides the ability to zoom out of the image. | N/A |
WebPages.WebPage.Display.ZoomToFill | Provides an automatic scaling option to scale the image will fill the entire display area. | N/A |
WebPages.WebPage.Display.ZoomToFit | Provides an automatic scaling option to scale the image as large as possible, while still displaying the entire image. If the aspect ratio of the display area differs from the image, this option will result in either horizontal or vertical blank areas within the display. | N/A |
WebPages.WebPage.Display.ZoomToFixed | Provides a manual scaling mode option in which the scale factor between the image and display is fixed, independent of the display size. | N/A |
WebPages.WebPage.RecordedImageViewer.NextImage | Moves the selection to the next image in the File Selector list of the Recorded Image Viewer. | N/A |
WebPages.WebPage.RecordedImageViewer.PreviousImage | Moves the selection to the previous image in the File Selector list of the Recorded Image Viewer. | N/A |
WebPages.WebPage.RecordedImageViewer.Refresh | Reloads all images from the directory specified in the Directory property of the Recorded Image Viewer. | N/A |