当前位置: 首页>>代码示例>>C#>>正文


C# Label.ModifyFg方法代码示例

本文整理汇总了C#中Label.ModifyFg方法的典型用法代码示例。如果您正苦于以下问题:C# Label.ModifyFg方法的具体用法?C# Label.ModifyFg怎么用?C# Label.ModifyFg使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Label的用法示例。


在下文中一共展示了Label.ModifyFg方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: InitializeGui

	public void InitializeGui()
	{
		m_ColorConnectionClosed = new Gdk.Color(255,0,0);
		m_ColorConnectionOpened = new Gdk.Color(0,255,0);
		Pango.FontDescription fontMaintTitle = Pango.FontDescription.FromString("Garamond 30");
		
		
		m_MainPanel = new Fixed();
		
		m_OutConnectionStatus = new Label("Jaco is not connected.");
		m_OutConnectionStatus.ModifyFg(StateType.Normal, m_ColorConnectionClosed);
		
		m_MainTitle = new Label("Kinova software example");
		
		m_TxtTimeAbsolute = new Label("Time absolute :");
		m_TxtTimeStartUp = new Label("Time from startup :");
		m_TxtTimeStampSavings = new Label("timestamp savings :");
		m_TxtSupplyVoltage = new Label("Supply voltage :");
		m_TxtCurrentConsumed = new Label("Current consumed :");
		m_TxtPowerConsumed = new Label("Power consumed :");
		m_TxtAveragePower = new Label("Average power :");
		m_TxtAccelerationX = new Label("Acceleration X :");
		m_TxtAccelerationY = new Label("Acceleration Y :");
		m_TxtAccelerationZ = new Label("Acceleration Z :");
		m_TxtCodeVersion = new Label("Code version :");
		m_TxtCodeRevision = new Label("Code revision :");
		m_TxtControlOperator = new Label("Control operator :");
		m_TxtControlMode = new Label("Control mode :");
		m_TxtHandMode = new Label("Hand mode :");
		m_TxtConnectedJointQuantity = new Label("Connected joint quantity :");
		m_TxtPositionType = new Label("Position type :");
		m_TxtErrorsSpiMain = new Label("Main SPI errors :");
		m_TxtErrorsSpiExternal = new Label("External SPI errors :");
		m_TxtErrorsMainCAN = new Label("Main CAN errors :");
		m_TxtErrorsExternalCAN = new Label("External CAN errors :");
		m_TxtCartesianX = new Label("Cartesian X :");
		m_TxtCartesianY = new Label("Cartesian Y :");
		m_TxtCartesianZ = new Label("Cartesian Z :");
		m_TxtCartesianThetaX = new Label("Cartesian Theta X :");
		m_TxtCartesianThetaY = new Label("Cartesian Theta Y :");
		m_TxtCartesianThetaZ = new Label("Cartesian Theta Z :");
		m_TxtAngle1 = new Label("Angle 1 :");
		m_TxtAngle2 = new Label("Angle 2 :");
		m_TxtAngle3 = new Label("Angle 3 :");
		m_TxtAngle4 = new Label("Angle 4 :");
		m_TxtAngle5 = new Label("Angle 5 :");
		m_TxtAngle6 = new Label("Angle 6 :");
		
		m_OutTimeAbsolute = new Label("????");
		m_OutTimeStartUp = new Label("????");
		m_OutTimeStampSavings = new Label("????");
		m_OutSupplyVoltage = new Label("????");
		m_OutCurrentConsumed = new Label("????");
		m_OutPowerConsumed = new Label("????");
		m_OutAveragePower = new Label("????");
		m_OutAccelerationX = new Label("????");
		m_OutAccelerationY = new Label("????");
		m_OutAccelerationZ = new Label("????");
		m_OutCodeVersion = new Label("????");
		m_OutCodeRevision = new Label("????");
		m_OutControlOperator = new Label("????");
		m_OutControlMode = new Label("????");
		m_OutHandMode = new Label("????");
		m_OutConnectedJointQuantity = new Label("????");
		m_OutPositionType = new Label("????");
		m_OutErrorsSpiMain = new Label("????");
		m_OutErrorsSpiExternal = new Label("????");
		m_OutErrorsMainCAN = new Label("????");
		m_OutErrorsExternalCAN = new Label("????");
		m_OutCartesianX = new Label("????");
		m_OutCartesianY = new Label("????");
		m_OutCartesianZ = new Label("????");
		m_OutCartesianThetaX = new Label("????");
		m_OutCartesianThetaY = new Label("????");
		m_OutCartesianThetaZ = new Label("????");
		m_OutAngle1 = new Label("????");
		m_OutAngle2 = new Label("????");
		m_OutAngle3 = new Label("????");
		m_OutAngle4 = new Label("????");
		m_OutAngle5 = new Label("????");
		m_OutAngle6 = new Label("????");
		
		m_MainTitle.ModifyFont(fontMaintTitle);
		
	}
开发者ID:ksatyaki,项目名称:JacoROS,代码行数:85,代码来源:MainWindow.cs


注:本文中的Label.ModifyFg方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。