Up | CameraError | ImageComplete | LoadTools | SaveTools | ToolApply | ToolVariantChange | DataInputApply | Query Events | UpdateResultPanel | UpdateIndicatorPanel | ContextChange | Mouse Events | Timer | LogMsg

 

  

 
ToolApply
The ToolApply event is called when the user press Apply on a tool

Example: Saving a tool to a spb file

def Handle_System_ToolApply(Tool):
#
# Tool = VT_BSTR
#
# Return 1 if handled by script
# Return 0 if default handling
#
  filename=GetValue('System.Profile')+'\\Tools\\'+Tool+'.spb'
  t=GetToolList().get(Tool)
  if t<>None:t.save(filename)
  return 0
 

 

Scorpion Vision Version XII : Build 646 - Date: 20170225
Scorpion Vision Software® is a registered trademark of Tordivel AS.
Copyright © 2000 - 2017 Tordivel AS.