private void axToolbarControl1_OnItemClick(object sender, ESRI.ArcGIS.Controls.IToolbarControlEvents_OnItemClickEvent e) { //Display help when fly tool and walk tools are selected... //check if key intercept is enabled,if not enable it. if (axGlobeControl1.KeyIntercept != 1) { axGlobeControl1.KeyIntercept = 1; } UID uID = axToolbarControl1.GetItem(e.index).UID; //uid for fly tool={2C327C42-8CA9-4FC3-8C7B-F6290680FABB} //uid for walk tool={56C3BDD4-C51A-4574-8954-D3E1F5F54E57} if (uID.Value.ToString() == "{2C327C42-8CA9-4FC3-8C7B-F6290680FABB}") { //fly... lblStatus.Text = "Use arrow up or arrow left keys to decelerate and arrow up or arrow left keys to accelerate."; } else if (uID.Value.ToString() == "{56C3BDD4-C51A-4574-8954-D3E1F5F54E57}") { //walk... lblStatus.Text = "Use arrow up or down keys to change elevation and the arrow left or right keys to fine-tune travel speed."; } else { lblStatus.Text = ""; } }
private void tbMapView_OnItemClick(object sender, ESRI.ArcGIS.Controls.IToolbarControlEvents_OnItemClickEvent e) { currentOperatoin = "DO_NOTHING"; }