wxToolBar::OnLeftClick

Bool OnLeftClick(int toolIndex, Bool toggleDown)

Called when the user clicks on a tool. The programmer should override this function to detect tool clicks. toolIndex is the identifier passed to AddTool, and toggleDown is TRUE if the tool is a toggle and the toggle is down, otherwise is FALSE.

If the tool is a toggle and this function returns FALSE, the toggle toggle state (internal and visual) will not be changed. This provides a way of specifying that toggle operations are not permitted in some circumstances.