示例#1
0
void MySplitterWindow::OnPositionChanging(wxSplitterEvent& event)
{
    wxLogStatus(m_frame, wxT("Position is changing, now = %d (or %d)"),
                event.GetSashPosition(), GetSashPosition());

    event.Skip();
}
示例#2
0
/*****************************************************
**
**   SplitterWidget   ---   OnPositionChanged
**
******************************************************/
void SplitterWidget::OnPositionChanged(wxSplitterEvent& event)
{
	wxSize size1 = wxSplitterWindow::GetSize();
	size1.x = event.GetSashPosition();
	GetWindow1()->SetSize( size1 );
	GetWindow1()->Refresh();
	wxSize size2 = wxSplitterWindow::GetSize();
	size2.x -= event.GetSashPosition();
	GetWindow2()->SetSize( size2 );
	GetWindow2()->Refresh();
	//event.Skip();
}
示例#3
0
void ctSplitterWindow::OnChangeSash(wxSplitterEvent& event)
{
    if (!m_updateSettings)
        return;

    m_position = event.GetSashPosition();
}
示例#4
0
void MySplitterWindow::OnUnsplitEvent(wxSplitterEvent& event)
{
#if wxUSE_STATUSBAR
    m_frame->SetStatusText(wxT("Splitter unsplit"), 1);
#endif // wxUSE_STATUSBAR

    event.Skip();
}
示例#5
0
void gqbSplitter::onVerticalSashResize(wxSplitterEvent& event)
{
    wxSize s = tablesBrowser->GetSize();
    s.SetWidth(event.GetSashPosition());
    browserPanel->SetSize(s);
    tablesBrowser->SetSize(s);
    // GQB-TODO: Set a minimun value
}
示例#6
0
void MySplitterWindow::OnDClick(wxSplitterEvent& event)
{
#if wxUSE_STATUSBAR
    m_frame->SetStatusText(wxT("Splitter double clicked"), 1);
#endif // wxUSE_STATUSBAR

    event.Skip();
}
void moLayersPanelCtrl::SashPosition( wxSplitterEvent& event ) {

    //wxMessageBox("position");

    int i = event.GetSashPosition();

    m_pLayersTreeCtrl->SetSplitPosition( i );
    BottomSplitter->SetSashPosition(i);
    TopSplitter->SetSashPosition(i);

}
示例#8
0
void CSplitterCellHistory::OnSplitterChange(wxSplitterEvent &e)
{
    wxSplitterWindow *p = (wxSplitterWindow *) e.GetEventObject();
    if(p != this)
    {
        m_syncSplitter.Sync(p);
#if !PANEL_LOCUS_NOTEBOOK
        m_syncSplitter2.Sync(p);
#endif
    }
}
示例#9
0
void CSplitterCellHistory::OnSplitterChanging(wxSplitterEvent &e)
{
    // inform m_syncSplitter that the user is moving the sash
    // and not resizing the entire window (frame)

    wxSplitterWindow *p = (wxSplitterWindow *) e.GetEventObject();
    if(p != this)
    {
        m_syncSplitter.SetIsChanging(p);
#if !PANEL_LOCUS_NOTEBOOK
        m_syncSplitter2.SetIsChanging(p);
#endif
    }
}
示例#10
0
void MySplitterWindow::OnPositionChanging(wxSplitterEvent& event)
{

    event.Skip();
}
示例#11
0
/*****************************************************
**
**   SplitterWidget   ---   OnSplitterDoubleClick
**
******************************************************/
void SplitterWidget::OnSplitterDoubleClick(wxSplitterEvent& event)
{
	// no nothing because default behaviour will remove one of the widgets
	event.Veto();
}
示例#12
0
void wxGISIdentifyDlg::OnDoubleClickSash(wxSplitterEvent& event)
{
	event.Veto();
}
示例#13
0
void MySplitterWindow::OnUnsplitEvent(wxSplitterEvent& event)
{

    event.Skip();
}
示例#14
0
bool wxSplitterWindow::DoSendEvent(wxSplitterEvent& event)
{
    return !GetEventHandler()->ProcessEvent(event) || event.IsAllowed();
}
示例#15
0
void WidgetDownloadPanel::OnSashChanged( wxSplitterEvent& evt )
{
    sett().SetSashPosition( GetName(), evt.GetSashPosition( ) );
    evt.Skip();
}
示例#16
0
void MySplitterWindow::OnDClick(wxSplitterEvent& event)
{
    event.Skip();
}
示例#17
0
文件: glue.cpp 项目: maxmods/wx.mod
int bmx_wxsplitterevent_getsashposition(wxSplitterEvent & event) {
	return event.GetSashPosition();
}
示例#18
0
文件: glue.cpp 项目: maxmods/wx.mod
void bmx_wxsplitterevent_setsashposition(wxSplitterEvent & event, int pos) {
	event.SetSashPosition(pos);
}
示例#19
0
文件: glue.cpp 项目: maxmods/wx.mod
int bmx_wxsplitterevent_gety(wxSplitterEvent & event) {
	return event.GetY();
}