本文整理汇总了C++中wxSashEvent类的典型用法代码示例。如果您正苦于以下问题:C++ wxSashEvent类的具体用法?C++ wxSashEvent怎么用?C++ wxSashEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了wxSashEvent类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: OnSashDragProjectWindow
void csFrame::OnSashDragProjectWindow(wxSashEvent& event)
{
if (event.GetDragStatus() == wxSASH_STATUS_OUT_OF_RANGE)
return;
switch (event.GetId())
{
case ID_LAYOUT_WINDOW_PROJECT:
{
wxGetApp().GetProjectSashWindow()->SetDefaultSize(wxSize(event.GetDragRect().width, 10000));
break;
}
}
wxLayoutAlgorithm layout;
layout.LayoutMDIFrame(this);
}
开发者ID:nealey,项目名称:vera,代码行数:16,代码来源:mainfrm.cpp
示例2: OnSashDragPaletteWindow
void csFrame::OnSashDragPaletteWindow(wxSashEvent& event)
{
if (event.GetDragStatus() == wxSASH_STATUS_OUT_OF_RANGE)
return;
switch (event.GetId())
{
case ID_LAYOUT_WINDOW_PALETTE:
{
wxGetApp().GetDiagramPaletteSashWindow()->SetDefaultSize(wxSize(10000, event.GetDragRect().height));
break;
}
}
wxLayoutAlgorithm layout;
layout.LayoutMDIFrame(this);
}
开发者ID:nealey,项目名称:vera,代码行数:16,代码来源:mainfrm.cpp
示例3: bmx_wxsashevent_getdragrect
void bmx_wxsashevent_getdragrect(wxSashEvent & event, int * x, int * y, int * w, int * h) {
wxRect r = event.GetDragRect();
*x = r.x;
*y = r.y;
*w = r.width;
*h = r.height;
}
开发者ID:GWRon,项目名称:wx.mod,代码行数:7,代码来源:glue.cpp
示例4: OnSashDrag
void AudioBox::OnSashDrag(wxSashEvent &event) {
if (event.GetDragStatus() == wxSASH_STATUS_OUT_OF_RANGE)
return;
int new_height = std::min(event.GetDragRect().GetHeight(), GetParent()->GetSize().GetHeight() - 1);
SetMinSize(wxSize(-1, new_height));
GetParent()->Layout();
// Karaoke mode is always disabled when the audio box is first opened, so
// the initial height shouldn't include it
if (context->karaoke->IsEnabled())
new_height -= context->karaoke->GetSize().GetHeight() + 6;
OPT_SET("Audio/Display Height")->SetInt(new_height);
}
开发者ID:Phonations,项目名称:Aegisub,代码行数:16,代码来源:audio_box.cpp
示例5: OnSashDrag
void DecisionLogicFrame::OnSashDrag(wxSashEvent& event)
{
if (event.GetDragStatus() == wxSASH_STATUS_OUT_OF_RANGE ||
winTree == NULL)
return;
if (event.GetId() == DecisionLogic_TreeWindow)
winTree->SetDefaultSize(wxSize(event.GetDragRect().width, this->GetSize().GetHeight()));
else if (event.GetId() == DecisionLogic_LogWindow)
winLog->SetDefaultSize(wxSize(800, event.GetDragRect().height));
#if wxUSE_MDI_ARCHITECTURE
wxLayoutAlgorithm layout;
layout.LayoutMDIFrame(this);
#endif // wxUSE_MDI_ARCHITECTURE
// Leaves bits of itself behind sometimes
GetClientWindow()->Refresh();
}
开发者ID:e1d1s1,项目名称:Logician,代码行数:19,代码来源:DecisionLogic.cpp
示例6: OnSashDrag
void WinEDA_MainFrame::OnSashDrag(wxSashEvent& event)
/****************************************************/
/* Resize windows when dragging window borders
*/
{
int w, h;
wxSize newsize;
if (event.GetDragStatus() == wxSASH_STATUS_OUT_OF_RANGE)
return;
GetClientSize(&w, &h);
switch (event.GetId())
{
case ID_LEFT_FRAME:
{
m_LeftWin->SetDefaultSize(wxSize(event.GetDragRect().width, -1));
break;
}
case ID_BOTTOM_FRAME:
{
newsize = event.GetDragRect().GetSize();
m_LeftWin->SetDefaultSize(wxSize(w-newsize.x, -1));
m_BottomWin->SetDefaultSize(wxSize(-1, newsize.y));
m_CommandWin->SetDefaultSize(wxSize(-1, h - newsize.y));
break;
}
case ID_MAIN_COMMAND:
{
newsize = event.GetDragRect().GetSize();
m_LeftWin->SetDefaultSize(wxSize(w-newsize.x, -1));
m_CommandWin->SetDefaultSize(wxSize(-1, newsize.y));
m_BottomWin->SetDefaultSize(wxSize(-1, h - newsize.y));
break;
}
}
wxLayoutAlgorithm layout;
layout.LayoutFrame(this);
}
开发者ID:BackupTheBerlios,项目名称:kicad-svn,代码行数:42,代码来源:mdiframe.cpp
示例7: OnSashDrag
void MainWindow::OnSashDrag(wxSashEvent& event)
{
s->SetDefaultSize(wxSize(event.GetDragRect().width, h));
#if wxUSE_MDI_ARCHITECTURE
wxLayoutAlgorithm layout;
layout.LayoutMDIFrame(this);
#endif // wxUSE_MDI_ARCHITECTURE
// Leaves bits of itself behind sometimes
GetClientWindow()->Refresh();
}
开发者ID:CristinaGajate,项目名称:Apolo,代码行数:13,代码来源:mainWindow.cpp
示例8: OnSashDrag
void MyFrame::OnSashDrag(wxSashEvent& event)
{
if (event.GetDragStatus() == wxSASH_STATUS_OUT_OF_RANGE)
return;
switch (event.GetId())
{
case ID_WINDOW_TOP:
{
m_topWindow->SetDefaultSize(wxSize(1000, event.GetDragRect().height));
break;
}
case ID_WINDOW_LEFT1:
{
m_leftWindow1->SetDefaultSize(wxSize(event.GetDragRect().width, 1000));
break;
}
case ID_WINDOW_LEFT2:
{
m_leftWindow2->SetDefaultSize(wxSize(event.GetDragRect().width, 1000));
break;
}
case ID_WINDOW_BOTTOM:
{
m_bottomWindow->SetDefaultSize(wxSize(1000, event.GetDragRect().height));
break;
}
}
#if wxUSE_MDI_ARCHITECTURE
wxLayoutAlgorithm layout;
layout.LayoutMDIFrame(this);
#endif // wxUSE_MDI_ARCHITECTURE
// Leaves bits of itself behind sometimes
GetClientWindow()->Refresh();
}
开发者ID:euler0,项目名称:Helium,代码行数:37,代码来源:sashtest.cpp
示例9: wxMax
void CActivityAreaCtrl::OnSashDragged (wxSashEvent & ev)
{
wxGetApp().Prefs.nActivityCtrlHeight = wxMax(ev.GetDragRect().height,50);
SetDefaultSize(wxSize( 1000, wxGetApp().Prefs.nActivityCtrlHeight));
ev.Skip();
}
开发者ID:BackupTheBerlios,项目名称:musik-svn,代码行数:6,代码来源:ActivityAreaCtrl.cpp
示例10: bmx_wxsashevent_getedge
int bmx_wxsashevent_getedge(wxSashEvent & event) {
return static_cast<int>(event.GetEdge());
}
开发者ID:GWRon,项目名称:wx.mod,代码行数:3,代码来源:glue.cpp
示例11: bmx_wxsashevent_getdragstatus
int bmx_wxsashevent_getdragstatus(wxSashEvent & event) {
return static_cast<wxSashDragStatus>(event.GetDragStatus());
}
开发者ID:GWRon,项目名称:wx.mod,代码行数:3,代码来源:glue.cpp
示例12: wxMax
void CSourcesBox::OnSashDragged (wxSashEvent & ev)
{
wxGetApp().Prefs.nSourceBoxWidth = wxMax(ev.GetDragRect().width,50);
SetDefaultSize(wxSize(wxGetApp().Prefs.nSourceBoxWidth, 1000));
ev.Skip();
}
开发者ID:BackupTheBerlios,项目名称:musik-svn,代码行数:6,代码来源:SourcesBox.cpp
注:本文中的wxSashEvent类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论