コード例 #1
0
ファイル: Preferences.cpp プロジェクト: brho/xword
void
PreferencesDialog::OnNumberScale(wxSpinEvent & evt)
{
    m_frame->m_gridCtrl->SetNumberScale(evt.GetPosition() / 100.);
    m_frame->m_gridCtrl->Refresh();
    evt.Skip();
}
コード例 #2
0
void HTMLButcherAdjustSizeDialog::OnChangeWidth(wxSpinEvent &event)
{
    if (updating_) return;

    area_->Resize(event.GetPosition());

    UpdateDisplay();
    event.Skip();
}
コード例 #3
0
void HTMLButcherAdjustSizeDialog::OnChangeMoveTop(wxSpinEvent &event)
{
    if (updating_) return;

    area_->Move(-1, event.GetPosition());

    UpdateDisplay();
    event.Skip();
}
コード例 #4
0
ファイル: CorrelParamsDlg.cpp プロジェクト: lixun910/geoda
void CorrelParamsFrame::OnBinsSpinEvent(wxSpinEvent& ev)
{
    int val = ev.GetValue();
    if (val != num_bins) {
        OnApplyBtn(ev);
    }
    val = num_bins;
    ev.Skip();
}
コード例 #5
0
void HTMLButcherAdjustSizeDialog::OnChangeBottom(wxSpinEvent &event)
{
    if (updating_) return;

    if (area_->GetBottom()->CanMove(event.GetPosition()+1))
    {
        area_->GetBottom()->Move(event.GetPosition()+1);
    }
    UpdateDisplay();
    event.Skip();
}
コード例 #6
0
void ParamCon::OnSpin(wxSpinEvent& event)
{
	wxString text;

	//int spindir = event.GetPosition();
	//if(mainwin && mainwin->diagnostic) mainwin->diagbox->textbox->AppendText(text.Format("\nspin click %d\n", spindir));

	if(panel->toolbox) {
		//panel->toolbox->diagbox->Write("tool spin click\n");
		panel->toolbox->SpinClick(name);
	}

	event.Skip();
}
コード例 #7
0
ファイル: transdialog.cpp プロジェクト: twoubt/moneymanagerex
void mmTransDialog::OnSpin(wxSpinEvent& event)
{
    wxDateTime date = dpc_->GetValue();
    int value = event.GetPosition();

    date = date.Add(wxDateSpan::Days(value));
    dpc_->SetValue(date);
    spinCtrl_->SetValue(0);

    //process date change event for set weekday name
    wxDateEvent dateEvent(dpc_, date, wxEVT_DATE_CHANGED);
    GetEventHandler()->ProcessEvent(dateEvent);

    event.Skip();
}
コード例 #8
0
ファイル: childframe.cpp プロジェクト: SergiiRv/stimfit
void wxStfChildFrame::OnSpinCtrlTraces( wxSpinEvent& event ){
    event.Skip();

    wxStfView* pView=(wxStfView*)GetView();
    wxStfDoc* pDoc=(wxStfDoc*)GetDocument();

    if (pDoc == NULL || pView == NULL) {
        wxGetApp().ErrorMsg(wxT("Null pointer in wxStfChildFrame::OnSpinCtrlTraces()"));
        return;
    }

    pDoc->SetSection(GetCurTrace()); 
    wxGetApp().OnPeakcalcexecMsg();

    if (pView->GetGraph() != NULL) {
        pView->GetGraph()->Refresh();
        pView->GetGraph()->Enable();
        pView->GetGraph()->SetFocus();
    }
}
コード例 #9
0
void nmeaSendObjectDlg::OnSpinctrlUpdated( wxSpinEvent& event )
{
    SendObjOfThisDlg->SetRepeatTime( itemSpinCtrl->GetValue() ); 
    event.Skip();
}
コード例 #10
0
ファイル: popup.cpp プロジェクト: ruifig/nutcracker
void SimpleTransientPopup::OnSpinCtrl(wxSpinEvent& event)
{
    wxLogMessage( "%p SimpleTransientPopup::OnSpinCtrl ID %d Value %d",
                  this, event.GetId(), event.GetInt());
    event.Skip();
}
コード例 #11
0
ファイル: CorrelParamsDlg.cpp プロジェクト: GeoDaCenter/geoda
void CorrelParamsFrame::OnBinsSpinEvent(wxSpinEvent& ev)
{
    OnApplyBtn(ev);
    ev.Skip();
}