POWERBUILDER I PBToolBarControl

The PBToolBarControl can be used if the OCR library has been set up correctly (see chapter "Enabling the OCR interface").

In addition, the"WIN32 I OCR components" offers additional steering settings.

The PBToolBarControl is supported by Microsoft® Windows XP and Microsoft® Windows 10. Due to the missing OCR support, this control is not supported by Microsoft® Windows 7 and Vista.

Input

The ToolBar buttons in a window are identified via the tooltip. In each toolbar of the window is verified whether the desired button exists. If it is found, the search process is terminated by a click. The tooltip of the button is saved as image file to the directory, which has been specified in the Path to temporary path setting (see setting "Path to temporary file").

In many cases it is faster to perform actions via the menu, since PowerBuilder toolbars are only an alternate display of the window menu.

Verify

The PBToolBarControl does not support Verify operations.

Creating a Module for the PBToolBarControl

The following process is required to create a Module for the control PBToolBarControl.

  • In Tosca Commander™, a Module of the ScreenType PB is created.

  • The TechnicalID of the Module or of the ObjectMap is the TechnicalID of the window (information from Tosca Wizard).

  • A simple control is added; it has the ScreenType PB and type PBToolBarControl.

  • The TechnicalID of the control must be identical to the TechnicalID of the ObjectMap or of the Module.

  • The OCR setup is the last step to successfully create a Module (see chapter "Enabling the OCR interface").