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


C# BaseItem.OnGotFocus方法代码示例

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


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

示例1:

 // Currently we are using this to communicate "focus" when control is in
 // design mode. This can be used later if we decide to add focus
 // handling to our BaseItem class.
 void IOwner.SetFocusItem(BaseItem objFocusItem)
 {
     if (m_FocusItem != null && m_FocusItem != objFocusItem)
     {
         m_FocusItem.OnLostFocus();
     }
     m_FocusItem = objFocusItem;
     if (m_FocusItem != null)
         m_FocusItem.OnGotFocus();
 }
开发者ID:,项目名称:,代码行数:13,代码来源:

示例2: foreach

		// Currently we are using this to communicate "focus" when control is in
		// design mode. This can be used later if we decide to add focus
		// handling to our BaseItem class.
		void IOwner.SetFocusItem(BaseItem objFocusItem)
		{
			if(m_FocusItem!=null && m_FocusItem!=objFocusItem)
			{
				m_FocusItem.OnLostFocus();
			}
			if(this.DesignMode && this.Groups.Contains(objFocusItem))
			{
				foreach(BaseItem panel in this.Groups)
					BaseItem.CollapseSubItems(panel);
			}
			m_FocusItem=objFocusItem;
			if(m_FocusItem!=null)
				m_FocusItem.OnGotFocus();
			
			if(!this.DesignMode)
				EnsureVisible(m_FocusItem);
		}
开发者ID:,项目名称:,代码行数:21,代码来源:

示例3: FocusItemChange

        void IOwner.SetFocusItem(BaseItem objFocusItem)
        {
            if (DockSide == eDockSide.Document && m_Owner != null)
            {
                ((IOwner)m_Owner).SetFocusItem(objFocusItem);
                return;
            }

            if (m_FocusItem != null && m_FocusItem != objFocusItem)
            {
                m_FocusItem.OnLostFocus();
            }
            m_FocusItem = objFocusItem;
            if (m_FocusItem != null)
                m_FocusItem.OnGotFocus();

            if (FocusItemChange != null)
                FocusItemChange(this, new EventArgs());
        }
开发者ID:,项目名称:,代码行数:19,代码来源:

示例4: SetFocusItem

		internal void SetFocusItem(BaseItem objFocus)
		{
			if(m_ParentItem==null || m_ParentItem.Parent!=null)
				return;
			BaseItem objItem=FocusedItem();
            if(objItem==objFocus)
				return;
			
			if(objItem!=null)
				objItem.OnLostFocus();

			if(objFocus!=null)
				objFocus.OnGotFocus();
		}
开发者ID:,项目名称:,代码行数:14,代码来源:

示例5: OnSetFocusItem

 // Currently we are using this to communicate "focus" when control is in
 // design mode. This can be used later if we decide to add focus
 // handling to our BaseItem class.
 void IOwner.SetFocusItem(BaseItem objFocusItem)
 {
     if (_FocusItem != null && _FocusItem != objFocusItem)
     {
         _FocusItem.OnLostFocus();
     }
     OnSetFocusItem(objFocusItem);
     _FocusItem = objFocusItem;
     if (_FocusItem != null)
         _FocusItem.OnGotFocus();
 }
开发者ID:,项目名称:,代码行数:14,代码来源:


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