![]() |
This document is archived and information here might be outdated. Recommended version. |
| ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Classes > C > ControlsFlickerRateToolControl CoClass (ArcObjects .NET 10.4 SDK) |
Controls the rate (in milliseconds) of the layer flicker.
The CLSID of this command is: {9532F137-EECA-4158-8690-1DD93B286B73}.
This command works with the ToolbarControl, MapControl, PageLayoutControl and GlobeControl.
This command must be used in conjunction with CommandsEnvironment singleton object. Failure to instantiate the CommandsEnvironment singleton object results in this command internally using it's own instance of the CommandsEnvironment object and appearing disabled to the end user.
When the end user selects a rate (in milliseconds) using this tool control they are setting the ILayerEffectProperties::FlickerRate property on the CommandsEnvironment singleton object. The property is used by the ControlsMapFlickerCommand and ControlsGlobeFlickerCommand to flicker the ILayerEffectProperties::FlickerLayer.
| Interfaces | Description |
|---|---|
| ICommand (esriSystemUI) | Provides access to members that define a COM command. |
| IToolControl (esriSystemUI) | Provides access to members that define a toolcontrol. |
usingESRI.ArcGIS.Controls;usingESRI.ArcGIS.SystemUI;publicpartialclassForm1 : Form {privateCommandsEnvironmentClass m_CommandsEnvironment=newCommandsEnvironmentClass();private voidForm1_Load(objectsender, System.EventArgs e) {//Set buddy controlaxToolbarControl1.SetBuddyControl(axMapControl1);//Add items to ToolbarControlaxToolbarControl1.AddItem("esriControls.ControlsOpenDocCommand", -1, -1,false, 0, esriCommandStyles.esriCommandStyleIconOnly); axToolbarControl1.AddItem("esriControls.ControlsMapFlickerCommand", -1, -1,true, 0, esriCommandStyles.esriCommandStyleIconOnly); axToolbarControl1.AddItem("esriControls.ControlsFlickerRateToolControl", -1, -1,true, 0, esriCommandStyles.esriCommandStyleIconOnly); axToolbarControl1.AddItem("esriControls.ControlsLayerListToolControl", -1, -1,false, 0, esriCommandStyles.esriCommandStyleIconOnly); } }
ImportsESRI.ArcGIS.ControlsImportsESRI.ArcGIS.SystemUIPublic ClassForm1Privatem_CommandsEnvironmentAs NewCommandsEnvironmentClassPrivate SubForm1_Load(ByValsenderAsSystem.Object,ByValeAsSystem.EventArgs)HandlesMyBase.Load'Set buddy controlAxToolbarControl1.SetBuddyControl(AxMapControl1)'Add items to ToolbarControlAxToolbarControl1.AddItem("esriControls.ControlsOpenDocCommand", -1, -1,False, 0, esriCommandStyles.esriCommandStyleIconOnly) AxToolbarControl1.AddItem("esriControls.ControlsMapFlickerCommand", -1, -1,True, 0, esriCommandStyles.esriCommandStyleIconOnly) AxToolbarControl1.AddItem("esriControls.ControlsFlickerRateToolControl", -1, -1, True, 0, esriCommandStyles.esriCommandStyleIconOnly) AxToolbarControl1.AddItem("esriControls.ControlsLayerListToolControl", -1, -1,False, 0, esriCommandStyles.esriCommandStyleIconOnly)End Sub EndClass