本文整理汇总了C++中Panel::KillFocus方法的典型用法代码示例。如果您正苦于以下问题:C++ Panel::KillFocus方法的具体用法?C++ Panel::KillFocus怎么用?C++ Panel::KillFocus使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Panel
的用法示例。
在下文中一共展示了Panel::KillFocus方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ChangePanel
//.........这里部分代码省略.........
}
}
else
{
Current->Hide();
DeletePanel(Current);
if (OldType==FILE_PANEL && NewType==FILE_PANEL)
{
DeletePanel(LastFilePanel);
LastFilePanel=nullptr;
}
}
if (!CreateNew && NewType==FILE_PANEL && LastFilePanel)
{
int LastX1,LastY1,LastX2,LastY2;
LastFilePanel->GetPosition(LastX1,LastY1,LastX2,LastY2);
if (LastFilePanel->IsFullScreen())
LastFilePanel->SetPosition(LastX1,Y1,LastX2,Y2);
else
LastFilePanel->SetPosition(X1,Y1,X2,Y2);
NewPanel=LastFilePanel;
if (!ChangePosition)
{
if ((NewPanel->IsFullScreen() && !OldFullScreen) ||
(!NewPanel->IsFullScreen() && OldFullScreen))
{
Panel *AnotherPanel=GetAnotherPanel(Current);
if (SaveScr && AnotherPanel->IsVisible() &&
AnotherPanel->GetType()==FILE_PANEL && AnotherPanel->IsFullScreen())
SaveScr->Discard();
delete SaveScr;
}
else
NewPanel->SaveScr=SaveScr;
}
if (!OldFocus && NewPanel->GetFocus())
NewPanel->KillFocus();
UseLastPanel=TRUE;
}
else
NewPanel=CreatePanel(NewType);
if (Current==ActivePanel)
ActivePanel=NewPanel;
if (LeftPosition)
{
LeftPanel=NewPanel;
LastLeftType=OldType;
}
else
{
RightPanel=NewPanel;
LastRightType=OldType;
}
if (!UseLastPanel)
{
if (ChangePosition)
{
if (LeftPosition)
{
NewPanel->SetPosition(0,Y1,ScrX/2-Opt.WidthDecrement,Y2);
RightPanel->Redraw();
}
else
{
NewPanel->SetPosition(ScrX/2+1-Opt.WidthDecrement,Y1,ScrX,Y2);
LeftPanel->Redraw();
}
}
else
{
NewPanel->SaveScr=SaveScr;
NewPanel->SetPosition(X1,Y1,X2,Y2);
}
NewPanel->SetSortMode(OldSortMode);
NewPanel->SetSortOrder(OldSortOrder);
NewPanel->SetNumericSort(OldNumericSort);
NewPanel->SetCaseSensitiveSort(OldCaseSensitiveSort);
NewPanel->SetSortGroups(OldSortGroups);
NewPanel->SetShowShortNamesMode(OldShowShortNames);
NewPanel->SetPrevViewMode(OldViewMode);
NewPanel->SetViewMode(OldViewMode);
NewPanel->SetSelectedFirstMode(OldSelectedFirst);
NewPanel->SetDirectoriesFirst(OldDirectoriesFirst);
}
return(NewPanel);
}