本文整理汇总了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();
}
示例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);
}
示例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());
}
示例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();
}
示例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();
}