API Documentation > CorelDRAW > 2025-v26
ToolState class
ToolState class
Syntax:
Class ToolState
Properties:
Name Description
IsDrawing Determines if the tool is in a drawing mode
Methods:
Name Description
OnAbort Called when the escape key is pressed
OnClick Called when the left mouse button is clicked
OnCommit Called when the enter key is pressed
OnDelete Called when the delete key is pressed
OnExitState Called when the state exits
OnKeyDown Called when a key is pressed
OnKeyUp Called when a key is released
OnLButtonDblClick Called when the left mouse button is double clicked
OnLButtonDown Called when the left mouse button is pressed
OnLButtonDownLeaveGrace Called after the left mouse button is pressed and the mouse is moved
OnLButtonUp Called when the left mouse button is released
OnMouseMove Called when the mouse is moved
OnRButtonDown Called when the right mouse button pressed
OnRButtonUp Called when the right mouse button released
OnSnapMouse Called before a mouse move to allow the snapped position to be set
OnStartState Called when the state starts
OnTimer Called when a timer event is fired