• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ wxSpinEvent类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中wxSpinEvent的典型用法代码示例。如果您正苦于以下问题:C++ wxSpinEvent类的具体用法?C++ wxSpinEvent怎么用?C++ wxSpinEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了wxSpinEvent类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: JumpToAddress

void MemoryImpl::JumpToAddress( wxSpinEvent& event )
{
	RefreshMem(event.GetPosition());
//	addressBox->SetValue(wxString::Format(_("%X"),event.GetPosition()));
//	scrollRAM->SetThumbPosition(event.GetPosition() / 16);
	ChangeAddress(event.GetPosition());
}
开发者ID:ColinPitrat,项目名称:cpctools,代码行数:7,代码来源:MemoryImpl.cpp


示例2: onSpinCtrl

void drwnMatrixEditor::onSpinCtrl(wxSpinEvent& event)
{
    if (event.GetId() == ROWS_SPIN_CTRL) {
        int newRows = event.GetPosition() - _grid->GetNumberRows(); 
        if (newRows > 0) {
            _grid->AppendRows(newRows);
            for (int i = 0; i < newRows; i++) {
                for (int j = 0; j < _grid->GetNumberCols(); j++) {
                    _grid->SetCellValue(_grid->GetNumberRows() - i - 1, j, "0.0");
                }
            }
        } else if (newRows < 0) {
            _grid->DeleteRows(0, -newRows);
        }
    } else if (event.GetId() == COLS_SPIN_CTRL) {
        int newCols = event.GetPosition() - _grid->GetNumberCols(); 
        if (newCols > 0) {
            _grid->AppendCols(newCols);
            for (int i = 0; i < _grid->GetNumberRows(); i++) {
                for (int j = 0; j < newCols; j++) {
                    _grid->SetCellValue(i, _grid->GetNumberCols() - j - 1, "0.0");
                }
            }
        } else if (newCols < 0) {
            _grid->DeleteCols(0, -newCols);
        }
    }
}
开发者ID:janthony10,项目名称:drwn,代码行数:28,代码来源:drwnMatrixEditor.cpp


示例3:

void
PreferencesDialog::OnNumberScale(wxSpinEvent & evt)
{
    m_frame->m_gridCtrl->SetNumberScale(evt.GetPosition() / 100.);
    m_frame->m_gridCtrl->Refresh();
    evt.Skip();
}
开发者ID:brho,项目名称:xword,代码行数:7,代码来源:Preferences.cpp


示例4: OnSpinControlChange

void abstract_panel::OnSpinControlChange(wxSpinEvent& event)
{
	if (event.GetId() == ID_WINDOWP_UI_MW_SPD) {
		wxSpinCtrl* zoom = (wxSpinCtrl*)event.GetEventObject();
		(intSettings)[UI_ZOOM[0].key] = zoom->GetValue();
		settingsChanged = true;
	}
}
开发者ID:OursDesCavernes,项目名称:springlobby,代码行数:8,代码来源:tab_abstract.cpp


示例5: ParameterChangeHandler

void lms7002_pnlTxTSP_view::ParameterChangeHandler(wxSpinEvent& event)
{
    wxCommandEvent evt;
    evt.SetInt(event.GetInt());
    evt.SetId(event.GetId());
    evt.SetEventObject(event.GetEventObject());
    ParameterChangeHandler(evt);
}
开发者ID:Analias,项目名称:LimeSuite,代码行数:8,代码来源:lms7002_pnlTxTSP_view.cpp


示例6: OnChangeWidth

void HTMLButcherAdjustSizeDialog::OnChangeWidth(wxSpinEvent &event)
{
    if (updating_) return;

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

    UpdateDisplay();
    event.Skip();
}
开发者ID:RangelReale,项目名称:htmlbutcher,代码行数:9,代码来源:DialogAdjustSize.cpp


示例7: OnChangeMoveTop

void HTMLButcherAdjustSizeDialog::OnChangeMoveTop(wxSpinEvent &event)
{
    if (updating_) return;

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

    UpdateDisplay();
    event.Skip();
}
开发者ID:RangelReale,项目名称:htmlbutcher,代码行数:9,代码来源:DialogAdjustSize.cpp


示例8: OnBinsSpinEvent

void CorrelParamsFrame::OnBinsSpinEvent(wxSpinEvent& ev)
{
    int val = ev.GetValue();
    if (val != num_bins) {
        OnApplyBtn(ev);
    }
    val = num_bins;
    ev.Skip();
}
开发者ID:lixun910,项目名称:geoda,代码行数:9,代码来源:CorrelParamsDlg.cpp


示例9: OnSpinnerChange

void NumericSlider::OnSpinnerChange(wxSpinEvent &event)
{
    wxCommandEvent evt(wxEVT_COMMAND_SPINCTRL_UPDATED);
    evt.SetId(this->GetId());
    evt.SetInt(event.GetInt());
    evt.SetEventObject(this);
    mScroll->SetThumbPosition(event.GetInt() - mSpinner->GetMin());
    wxPostEvent(this, evt);
}
开发者ID:Analias,项目名称:LimeSuite,代码行数:9,代码来源:numericSlider.cpp


示例10: OnSpinBound

void DialogCropVolume::OnSpinBound( wxSpinEvent& event )
{
  for ( int i = 0; i < 6; i++ )
  {
    if ( event.GetEventObject() == m_spinRange[i] )
    {
      MainWindow::GetMainWindowPointer()->GetVolumeCropper()->SetExtent( i, event.GetInt() );
      break;
    }
  }
}
开发者ID:CBoensel,项目名称:freesurfer,代码行数:11,代码来源:DialogCropVolume.cpp


示例11: OnChangeBottom

void HTMLButcherAdjustSizeDialog::OnChangeBottom(wxSpinEvent &event)
{
    if (updating_) return;

    if (area_->GetBottom()->CanMove(event.GetPosition()+1))
    {
        area_->GetBottom()->Move(event.GetPosition()+1);
    }
    UpdateDisplay();
    event.Skip();
}
开发者ID:RangelReale,项目名称:htmlbutcher,代码行数:11,代码来源:DialogAdjustSize.cpp


示例12: OnSpin

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();
}
开发者ID:twoubt,项目名称:moneymanagerex,代码行数:15,代码来源:transdialog.cpp


示例13: OnSpinChange

void wxSpinCtrl::OnSpinChange(
  wxSpinEvent&                      rEventSpin
)
{
    wxCommandEvent                  vEvent( wxEVT_COMMAND_SPINCTRL_UPDATED
                                           ,GetId()
                                          );

    vEvent.SetEventObject(this);
    vEvent.SetInt(rEventSpin.GetPosition());
    (void)HandleWindowEvent(vEvent);
    if (rEventSpin.GetSkipped())
    {
        vEvent.Skip();
    }
} // end of wxSpinCtrl::OnSpinChange
开发者ID:jonntd,项目名称:dynamica,代码行数:16,代码来源:spinctrl.cpp


示例14: OnSpinChange

void wxSpinCtrl::OnSpinChange(wxSpinEvent& eventSpin)
{
    const int value = eventSpin.GetPosition();
    if ( value != m_oldValue )
    {
        SendSpinUpdate(value);
    }
}
开发者ID:georgemoralis,项目名称:jpcsp2c,代码行数:8,代码来源:spinctrl.cpp


示例15: UpdateSlitPos

static void UpdateSlitPos(wxSpinEvent& event)
{
    SlitPosCtx *ctx = static_cast<SlitPosCtx *>(event.GetEventUserData());
    wxPoint center(ctx->dlg->m_x->GetValue(), ctx->dlg->m_y->GetValue());
    wxSize size(ctx->dlg->m_width->GetValue(), ctx->dlg->m_height->GetValue());
    int angle = ctx->dlg->m_angle->GetValue();
    ctx->guider->SetOverlaySlitCoords(center, size, angle);
}
开发者ID:xeqtr1982,项目名称:phd2,代码行数:8,代码来源:myframe_events.cpp


示例16: OnFrameTo

void FifoPlayerDlg::OnFrameTo(wxSpinEvent& event)
{
	FifoPlayer &player = FifoPlayer::GetInstance();
	player.SetFrameRangeEnd(event.GetPosition());

	m_FrameFromCtrl->SetValue(player.GetFrameRangeStart());
	m_FrameToCtrl->SetValue(player.GetFrameRangeEnd());	
}
开发者ID:madnessw,项目名称:thesnow,代码行数:8,代码来源:FifoPlayerDlg.cpp


示例17: OnSpinChange

void wxSpinCtrl::OnSpinChange(wxSpinEvent& eventSpin)
{
    wxCommandEvent event(wxEVT_COMMAND_SPINCTRL_UPDATED, GetId());
    event.SetEventObject(this);
    int value = eventSpin.GetPosition();
    event.SetInt( value );
    
    if (value != m_oldValue)
        (void)GetEventHandler()->ProcessEvent(event);

    if ( eventSpin.GetSkipped() )
    {
        event.Skip();
    }
    
    m_oldValue = value;
}
开发者ID:czxxjtu,项目名称:wxPython-1,代码行数:17,代码来源:spinctrl.cpp


示例18: OnSpinMaxZ

void CropVolCylinder::OnSpinMaxZ( wxSpinEvent &event )
{
  SCIRun::ThrowSkinnerSignalEvent *tsse =
    new SCIRun::ThrowSkinnerSignalEvent("Painter::RedrawAll");
  tsse->add_var("Painter::crop::max::z",
                SCIRun::to_string(event.GetPosition()));
  SCIRun::Painter::ThrowSkinnerSignal(tsse);
}
开发者ID:viscenter,项目名称:educe,代码行数:8,代码来源:cropvolcylinder.cpp


示例19: OnSpinVectorPointSize

void PanelSurface::OnSpinVectorPointSize( wxSpinEvent& event )
{
  LayerSurface* surf = ( LayerSurface* )MainWindow::GetMainWindowPointer()->GetLayerCollection( "Surface" )->GetActiveLayer();
  if ( surf )
  {
    surf->GetProperties()->SetVectorPointSize( event.GetInt() );
  }
}
开发者ID:CBoensel,项目名称:freesurfer,代码行数:8,代码来源:PanelSurface.cpp


示例20: OnMarginSpin

void SettingsDlg::OnMarginSpin(wxSpinEvent& event) {
	const int marginChars = event.GetPosition();

	m_settings.SetSettingInt(wxT("marginChars"), marginChars);

	// Notify that the settings have changed
	Dispatcher& dispatcher = m_catalyst.GetDispatcher();
	dispatcher.Notify(wxT("SETTINGS_CHANGED"), NULL, 0);
}
开发者ID:MattStopa,项目名称:e,代码行数:9,代码来源:SettingsDlg.cpp



注:本文中的wxSpinEvent类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ wxSplitterEvent类代码示例发布时间:2022-05-31
下一篇:
C++ wxSortedArrayString类代码示例发布时间:2022-05-31
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap