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

C++ wxMoveEvent类代码示例

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

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



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

示例1: OnMove

void NyqBench::OnMove(wxMoveEvent & e)
{
   e.Skip();
   if (!IsIconized() && !IsMaximized()) {
      mLastSize.SetPosition(e.GetPosition());
   }
}
开发者ID:finefin,项目名称:audacity,代码行数:7,代码来源:NyqBench.cpp


示例2: OnMoveAround

void MainEmuFrame::OnMoveAround( wxMoveEvent& evt )
{
	if( IsBeingDeleted() || !IsVisible() || IsIconized() ) return;

	// Uncomment this when doing logger stress testing (and then move the window around
	// while the logger spams itself)
	// ... makes for a good test of the message pump's responsiveness.
	if( EnableThreadedLoggingTest )
		Console.Warning( "Threaded Logging Test!  (a window move event)" );

	// evt.GetPosition() returns the client area position, not the window frame position.
	// So read the window's screen-relative position directly.
	g_Conf->MainGuiPosition = GetScreenPosition();

	// wxGTK note: X sends gratuitous amounts of OnMove messages for various crap actions
	// like selecting or deselecting a window, which muck up docking logic.  We filter them
	// out using 'lastpos' here. :)

	static wxPoint lastpos( wxDefaultCoord, wxDefaultCoord );
	if( lastpos == evt.GetPosition() ) return;
	lastpos = evt.GetPosition();

	if( g_Conf->ProgLogBox.AutoDock )
	{
		g_Conf->ProgLogBox.DisplayPosition = GetRect().GetTopRight();
		if( ConsoleLogFrame* proglog = wxGetApp().GetProgramLog() )
			proglog->SetPosition( g_Conf->ProgLogBox.DisplayPosition );
	}

	evt.Skip();
}
开发者ID:aseptilena,项目名称:pcsx2,代码行数:31,代码来源:MainFrame.cpp


示例3: OnMoving

void wxIFMFloatingWindowBase::OnMoving(wxMoveEvent &event)
{
    wxIFMFloatingMoveEvent moveevt(
        (event.GetEventType() == wxEVT_MOVE ? wxEVT_IFM_FLOATING_MOVE : wxEVT_IFM_FLOATING_MOVING),
        this, event);
    if( !GetIP()->ProcessPluginEvent(moveevt) )
        event.Skip();
}
开发者ID:cubemoon,项目名称:game-editor,代码行数:8,代码来源:manager.cpp


示例4: OnMove

void AISTargetQueryDialog::OnMove( wxMoveEvent& event )
{
    //    Record the dialog position
    wxPoint p = event.GetPosition();
    g_ais_query_dialog_x = p.x;
    g_ais_query_dialog_y = p.y;
    event.Skip();
}
开发者ID:libai245,项目名称:wht1,代码行数:8,代码来源:AISTargetQueryDialog.cpp


示例5:

void CM93DSlide::OnMove( wxMoveEvent& event )
{
    //    Record the dialog position
    wxPoint p = event.GetPosition();
    g_cm93detail_dialog_x = p.x;
    g_cm93detail_dialog_y = p.y;

    event.Skip();
}
开发者ID:KastB,项目名称:OpenCPN,代码行数:9,代码来源:CM93DSlide.cpp


示例6: OnMove

void PopUpDSlide::OnMove( wxMoveEvent& event )
{
    //    Record the dialog position
    wxPoint p = event.GetPosition();
    g_detailslider_dialog_x = p.x;
    g_detailslider_dialog_y = p.y;

    event.Skip();
}
开发者ID:mookiejones,项目名称:OpenCPN,代码行数:9,代码来源:DetailSlider.cpp


示例7:

void wxG3DCanvas::handleWindowMove(wxMoveEvent& event) {

    wxPoint& point = event.GetPosition();
    _gWindow->clientX = point.x;
    _gWindow->clientY = point.y;

    _gWindow->settings.x = point.x;
    _gWindow->settings.y = point.y;
    event.Skip();
}
开发者ID:luaman,项目名称:g3d-cpp,代码行数:10,代码来源:wxGWindow.cpp


示例8: OnMove

void MyChild::OnMove(wxMoveEvent& event)
{
    // VZ: here everything is totally wrong under MSW, the positions are
    //     different and both wrong (pos2 is off by 2 pixels for me which seems
    //     to be the width of the MDI canvas border)
    wxPoint pos1 = event.GetPosition(),
            pos2 = GetPosition();
    wxLogStatus("position from event: (%d, %d), from frame (%d, %d)",
                pos1.x, pos1.y, pos2.x, pos2.y);

    event.Skip();
}
开发者ID:czxxjtu,项目名称:wxPython-1,代码行数:12,代码来源:mdi.cpp


示例9: OnMove

void WXAppBar::OnMove( wxMoveEvent& event )
{
#if defined(__WXMSW__)
	SetSize(m_X, m_Y, m_Width, m_Height, 0);
	Raise ();
#endif
	wxPoint p= event.GetPosition();
	
//	printf ("onMove: %d, %d, orig: %d, %d\n", p.x, p.y, m_X, m_Y);
//	wxDialog::OnMove (event);
	event.Skip();
}
开发者ID:rkvsraman,项目名称:eviacam,代码行数:12,代码来源:wxappbar.cpp


示例10: GetParent

void GNC::GUI::StatusBarProgreso::OnMove(wxMoveEvent& event)
{
        wxPoint esquinaInferiorDerecha = GetParent()->GetPosition();
        esquinaInferiorDerecha.x += GetParent()->GetSize().x;
        esquinaInferiorDerecha.y += GetParent()->GetSize().y;
        event.Skip();
}
开发者ID:151706061,项目名称:ginkgocadx,代码行数:7,代码来源:statusbarprogreso.cpp


示例11: OnMove

void GLIShaders::OnMove(wxMoveEvent &event)
{
  // Get the new position relative to the main window
  positionOffset = GetPosition() - ste->GetPosition();

  event.Skip();
}
开发者ID:Shailla,项目名称:jeukitue.moteur,代码行数:7,代码来源:GLIShaders.cpp


示例12: onMove

void gcFrame::onMove(wxMoveEvent  &event)
{
	if (m_pCVarInfo && !IsMaximized())
		m_pCVarInfo->onMove(GetPosition().x, GetPosition().y);

	event.Skip();
}
开发者ID:Alasaad,项目名称:Desurium,代码行数:7,代码来源:gcFrame.cpp


示例13: OnMove

void AISTargetAlertDialog::OnMove( wxMoveEvent& event )
{
    //    Record the dialog position
    g_ais_alert_dialog_x = GetPosition().x;
    g_ais_alert_dialog_y = GetPosition().y;

    event.Skip();
}
开发者ID:KastB,项目名称:OpenCPN,代码行数:8,代码来源:AISTargetAlertDialog.cpp


示例14: OnMove

void CWindowStateManager::OnMove(wxMoveEvent& event)
{
	if (!m_pWindow->IsIconized() && !m_pWindow->IsMaximized())
	{
		m_lastWindowPosition = m_pWindow->GetPosition();
		m_lastWindowSize = m_pWindow->GetClientSize();
	}
	event.Skip();
}
开发者ID:idgaf,项目名称:FileZilla3,代码行数:9,代码来源:window_state_manager.cpp


示例15: OnMove

void CCamFrame::OnMove(wxMoveEvent &event)
{
	// We want to remember the size of the window if we are not maximised or minimised
	if (!IsIconized() && !IsMaximized())
		m_WndRect = GetRect();

	// We want to skip the event even when we do have a FrameManager
	event.Skip();
}
开发者ID:Amadiro,项目名称:xara-cairo,代码行数:9,代码来源:camframe.cpp


示例16: OnMove

void GRIBUIDialog::OnMove( wxMoveEvent& event )
{
    //    Record the dialog position
    wxPoint p = GetPosition();
    pPlugIn->SetGribDialogX( p.x );
    pPlugIn->SetGribDialogY( p.y );

    event.Skip();
}
开发者ID:IgorMikhal,项目名称:OpenCPN,代码行数:9,代码来源:GribUIDialog.cpp


示例17: onMove

/* MainWindow::onMove
 * Called when the window moves
 *******************************************************************/
void MainWindow::onMove(wxMoveEvent& e) {
	// Update window position settings, but only if not maximized
	if (!IsMaximized()) {
		mw_left = GetPosition().x;
		mw_top = GetPosition().y;
	}

	e.Skip();
}
开发者ID:doomtech,项目名称:slade,代码行数:12,代码来源:MainWindow.cpp


示例18: OnRenderParentMove

void CFrame::OnRenderParentMove(wxMoveEvent& event)
{
  if (Core::GetState() != Core::CORE_UNINITIALIZED && !RendererIsFullscreen() &&
      !m_RenderFrame->IsMaximized() && !m_RenderFrame->IsIconized())
  {
    SConfig::GetInstance().iRenderWindowXPos = m_RenderFrame->GetPosition().x;
    SConfig::GetInstance().iRenderWindowYPos = m_RenderFrame->GetPosition().y;
  }
  event.Skip();
}
开发者ID:TwitchPlaysPokemon,项目名称:dolphinWatch,代码行数:10,代码来源:FrameTools.cpp


示例19: OnMove

void ConfigDialog::OnMove( wxMoveEvent& event )
{
	_gCfgDlgPos = event.GetPosition();

#ifdef __WINDOWS__
	// HACK::......
	_gCfgDlgPos.y -= 23; // title-bar?
	_gCfgDlgPos.x -= 4;
#endif
}
开发者ID:stahta01,项目名称:wxCode_components,代码行数:10,代码来源:layout_test.cpp


示例20: onMove

void LoginForm::onMove(wxMoveEvent  &event)
{
	if (m_bSavePos)
	{
		gc_login_x.setValue(GetPosition().x);
		gc_login_y.setValue(GetPosition().y);
	}

	event.Skip();
}
开发者ID:EasyCoding,项目名称:desura-app,代码行数:10,代码来源:LoginForm.cpp



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C++ wxMutex类代码示例发布时间:2022-05-31
下一篇:
C++ wxMouseEvent类代码示例发布时间: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