toolbar Overview


With the toolbar object wrapper you can simulate clicks on the buttons of a standard Windows toolbar. Its select method accepts either a zero-based button index or a button text. Searching by text only works if buttons are displayed as text.

Example

// Click on the "Open" button on the standard bar
Toolbar.select(1);
		

Methods

select Simulates a click on the specified toolbar button. No actual mouse events are generated so the application does not need to be in the foreground.
click Generates a real mouse click on the specified button. The application is brought to foreground if required.

Properties

count Returns the number of buttons on the toolbar.

 


© 2003 Lightweight Technologies. All rights reserved.