The Automation Toolbar
To complete the Automation components the user should initialize, create and install the LEAD Toolbar into the automation.
To install the toolbar into Automation use the following steps:
Initialize the Toolbar handle.
Create the Toolbar (as a vector toolbar).
Set its position (optional).
Make it visible (optional).
Install it using LAutomation::SetToolbar.
After installing the toolbar, the toolkit will automatically set mouse cursors, handle any needed visual feedback from the drawing process, etc, according to the currently selected tool.
To get the current toolbar, use LAutomation::GetToolbar.
To simulate a toolbar without actually using the toolbar provided by LEAD Automation, use LAutomation::GetCurrentTool and LAutomation::SetCurrentTool to get and set the current tool.