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

C++ wxShowEvent类代码示例

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

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



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

示例1: OnShow

void LocalsWnd::OnShow(wxShowEvent& evt)
{
    if (evt.IsShown())
        updateState();

    evt.Skip();
}
开发者ID:ruifig,项目名称:nutcracker,代码行数:7,代码来源:LocalsWnd.cpp


示例2: OnShow

void CslPanelSearch::OnShow(wxShowEvent& event)
{
    if (event.IsShown())
        m_search_ctrl->SetFocus();

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


示例3: DoHidePopup

// Note: according to documentation, this event is only available under wxMSW, wxGTK, and wxOS2
void CCManager::OnAutocompleteHide(wxShowEvent& event)
{
    event.Skip();
    DoHidePopup();
    wxObject* evtObj = event.GetEventObject();
    if (evtObj)
        static_cast<wxWindow*>(evtObj)->Disconnect(wxEVT_SHOW, wxShowEventHandler(CCManager::OnAutocompleteHide), nullptr, this);
    if (m_CallTipActive != wxSCI_INVALID_POSITION && !m_AutoLaunchTimer.IsRunning())
        m_CallTipTimer.Start(CALLTIP_REFRESH_DELAY, wxTIMER_ONE_SHOT);
}
开发者ID:simple-codeblocks,项目名称:Codeblocks,代码行数:11,代码来源:ccmanager.cpp


示例4: OnShow

void DialogCropVolume::OnShow( wxShowEvent& event )
{
  static bool bShowFrames = true;
  MainWindow* mainwnd = MainWindow::GetMainWindowPointer();
  RenderView3D* view = (RenderView3D*)mainwnd->GetRenderView( 3 );

//#if wxCHECK_VERSION(2,9,0)
#if wxVERSION_NUMBER > 2900
  if ( event.IsShown() )
#else
  if ( event.GetShow() )
#endif
  {
    if ( view )
    {
      bShowFrames = view->GetShowSliceFrames();
      view->SetShowSliceFrames( false );
    }
    
    wxConfigBase* config = wxConfigBase::Get();
    if ( config )
    {
      int x = config->Read( _T("/ToolWindowCropVolume/PosX"), 0L );
      int y = config->Read( _T("/ToolWindowCropVolume/PosY"), 0L );
      if ( x == 0 && y == 0 )
        Center();
      else
        Move( x, y );
    }
  }
  else
  {
    if ( view )
      view->SetShowSliceFrames( bShowFrames );
    if ( mainwnd->GetVolumeCropper() )
      mainwnd->GetVolumeCropper()->Show( false );
    if ( mainwnd->IsShown() )
      mainwnd->SetMode( 0 );
    
    wxConfigBase* config = wxConfigBase::Get();
    if ( config )
    {
      int x, y;
      GetPosition( &x, &y );
      config->Write( _T("/ToolWindowCropVolume/PosX"), (long) x );
      config->Write( _T("/ToolWindowCropVolume/PosY"), (long) y );
    }
  }
  
  event.Skip();
}
开发者ID:CBoensel,项目名称:freesurfer,代码行数:51,代码来源:DialogCropVolume.cpp


示例5: OnParentShow

void OOPLyric::OnParentShow(wxShowEvent &e) {
    if (IsOk()) {
        if (!e.IsShown()) {
            m_timer.Stop();
        } else {
            UpdateProgress(NULL);
            Start();

            VdkDC dc(m_Window, GetAbsoluteRect(), NULL);
            Draw(dc);
        }
    }

    e.Skip(true);
}
开发者ID:vanxining,项目名称:M4Player,代码行数:15,代码来源:OOPLyric.cpp


示例6: OnShow

void GameSettings::OnShow(wxShowEvent& event)
{
    if (event.IsShown()) {
        readConfiguration();
        return;
    }
}
开发者ID:dkfans,项目名称:keeperfx,代码行数:7,代码来源:GameSettings.cpp


示例7: OnActivateEvent

/*
void MerryFrame::OnActivateEvent(wxActivateEvent& e)
{
#ifndef DEBUG_ALWAYS_SHOW
	if (!e.GetActive() && !this->IsShownOnScreen())
		this->Hide();
#endif
}
*/
void MerryFrame::OnShowEvent(wxShowEvent& e)
{
	MerryTextCtrl* textCtrl = m_mainPanel->GetTextCtrl();
	assert(textCtrl);
	if (e.IsShown())
	{
		if (g_config->get(PlayPopupNotify))//ÊÇ·ñ²¥·ÅÌáʾÒô
			wxSound("Popup.wav").Play();
		textCtrl->ChangeValue(wxT(""));
		this->CentreOnce();
		m_listBoxPanel->Dismiss();
		this->Raise();
		g_controller->SetWindowPos(this->GetHWND(),HWND_TOPMOST,0,0,0,0,SWP_NOMOVE | SWP_NOSIZE);
		ActiveWindow(this->GetHWND());
//		textCtrl->SetFocus();
#ifdef __WXMSW__
		textCtrl->SetEnInputMode();
#endif
		if (g_config->get(AutoPopup))
			textCtrl->AppendText(wxT(""));
	}
	else
		textCtrl->ChangeValue(wxT(""));

	textCtrl->EnterArgs = 0;
}
开发者ID:stxh,项目名称:ALMRun,代码行数:35,代码来源:MerryFrame.cpp


示例8: OnShow

void CommandOptions::OnShow(wxShowEvent& event)
{
    if (event.IsShown()) {
        readOptions();
        return;
    }
    storeOptions();
}
开发者ID:dkfans,项目名称:keeperfx-launcherwx,代码行数:8,代码来源:CommandOptions.cpp


示例9: OnShow

void GEUIDialog::OnShow(wxShowEvent& event)
{
      LogDebugMessage(_T("GE plugin - OnShow event"));
      if(m_ballowStart)
            GEInitialize();
      SetToolbarItemState(m_toolbar_item_id, IsShown());
      
      event.Skip();
}
开发者ID:nohal,项目名称:gecomapi_pi,代码行数:9,代码来源:gecomapi.cpp


示例10: onShow

// -----------------------------------------------------------------------------
// Called when the panel is shown or hidden
// -----------------------------------------------------------------------------
void TextureXEditor::onShow(wxShowEvent& e)
{
	if (!e.IsShown())
	{
		showTextureMenu(false);
		return;
	}
	else
		theMainWindow->undoHistoryPanel()->setManager(undo_manager_.get());
	updateMenuStatus();
}
开发者ID:sirjuddington,项目名称:SLADE,代码行数:14,代码来源:TextureXEditor.cpp


示例11: OnShow

void CDlgMessages::OnShow(wxShowEvent& event) {
    wxLogTrace(wxT("Function Start/End"), wxT("CDlgMessages::OnShow - Function Begin"));
    static bool bAlreadyRunning = false;

    if ((event.GetEventObject() == this) && !bAlreadyRunning) {
        bAlreadyRunning = true;

        wxLogTrace(wxT("Function Status"), wxT("CDlgMessages::OnShow - Show/Hide Event for CAdvancedFrame detected"));
        if (event.GetShow()) {
            RestoreWindowDimensions();
        } else {
            SaveWindowDimensions();
        }

        bAlreadyRunning = false;
    } else {
        event.Skip();
    }

    wxLogTrace(wxT("Function Start/End"), wxT("CDlgMessages::OnShow - Function End"));
}
开发者ID:Rytiss,项目名称:native-boinc-for-android,代码行数:21,代码来源:sg_DlgMessages.cpp


示例12: onShow

// -----------------------------------------------------------------------------
// Called when the control is shown
// -----------------------------------------------------------------------------
void SCallTip::onShow(wxShowEvent& e)
{
	if (e.IsShown())
	{
		// Get screen bounds and window bounds
		int       index = wxDisplay::GetFromWindow(this->GetParent());
		wxDisplay display((unsigned)index);
		auto      screen_area = display.GetClientArea();
		auto      ct_area     = GetScreenRect();

		// Check if calltip extends off the right of the screen
		if (ct_area.GetRight() > screen_area.GetRight())
		{
			// Move back so we're within the screen
			int offset = ct_area.GetRight() - screen_area.GetRight();
			SetPosition(wxPoint(GetPosition().x - offset, GetPosition().y));
		}
	}

	e.Skip();
}
开发者ID:SteelTitanium,项目名称:SLADE,代码行数:24,代码来源:SCallTip.cpp


示例13: OnShow

void ToolWindowEdit::OnShow( wxShowEvent& event )
{
//#if wxCHECK_VERSION(2,9,0)
#if wxVERSION_NUMBER > 2900  
  if ( event.IsShown() )
#else
  if ( event.GetShow() )
#endif
  {
    wxConfigBase* config = wxConfigBase::Get();
    if ( config )
    {
      int x = config->Read( _T("/ToolWindowEdit/PosX"), 0L );
      int y = config->Read( _T("/ToolWindowEdit/PosY"), 0L );
      if ( x == 0 && y == 0 )
        Center();
      else
        Move( x, y );
    }
    for ( int i = 0; i < 3; i++ )
    {
      RenderView2D* view = ( RenderView2D* )MainWindow::GetMainWindowPointer()->GetRenderView( i );
      view->GetContour2D()->AddListener( this );
    }
  }
  else
  {
    wxConfigBase* config = wxConfigBase::Get();
    if ( config )
    {
      int x, y;
      GetPosition( &x, &y );
      config->Write( _T("/ToolWindowEdit/PosX"), (long) x );
      config->Write( _T("/ToolWindowEdit/PosY"), (long) y );
    } 
  }
  MainWindow::GetMainWindowPointer()->SetFocus();
}
开发者ID:CBoensel,项目名称:freesurfer,代码行数:38,代码来源:ToolWindowEdit.cpp


示例14: OnShow

void DialogProgress::OnShow(wxShowEvent& evt) {
    if (!evt.IsShown()) return;

    // Restore the cancel button in case it was previously switched to a close
    // button
    Bind(wxEVT_BUTTON, &DialogProgress::OnCancel, this, wxID_CANCEL);
    Bind(wxEVT_IDLE, &DialogProgress::OnIdle, this);
    cancel_button->SetLabelText(_("Cancel"));
    cancel_button->Enable();

    wxSizer *sizer = GetSizer();
    if (sizer->IsShown(log_output)) {
        sizer->Hide(log_output);
        Layout();
        sizer->Fit(this);
        log_output->Clear();
    }
}
开发者ID:KagamiChan,项目名称:Aegisub,代码行数:18,代码来源:dialog_progress.cpp


示例15: onShow

/* SDialog::onShow
 * Called when the dialog is shown
 *******************************************************************/
void SDialog::onShow(wxShowEvent& e)
{
	if (e.IsShown())
		CenterOnParent();
	e.Skip();
}
开发者ID:Gaerzi,项目名称:SLADE,代码行数:9,代码来源:SDialog.cpp


示例16: OnShow

void wxIFMFloatingWindowBase::OnShow(wxShowEvent &event)
{
    m_component->Show(event.GetShow(), true);
}
开发者ID:cubemoon,项目名称:game-editor,代码行数:4,代码来源:manager.cpp


示例17:

void Panels::BaseSelectorPanel::OnShow(wxShowEvent& evt)
{
	evt.Skip();
	if( !evt.GetShow() ) return;
	OnShown();
}
开发者ID:docbray,项目名称:pcsx2-online,代码行数:6,代码来源:BiosSelectorPanel.cpp


示例18: OnShow

void Canvas::OnShow(wxShowEvent& event)
{
    e_Show.Raise( event.IsShown() );
}
开发者ID:kevindqc,项目名称:Helium,代码行数:4,代码来源:wxCanvas.cpp


示例19: OnShow

void wxSciterControl::OnShow(wxShowEvent& evt)
{
#ifdef __WINDOWS__
  ShowWindow(m_hwnd, evt.IsShown() ? SW_SHOW : SW_HIDE);
#endif
}
开发者ID:pravic,项目名称:sciter-wxwidgets-sample,代码行数:6,代码来源:sciter-control.cpp


示例20: OnShow

void Simple::OnShow (wxShowEvent& event)
{
  csPrintf("got show %d\n", (int) event.GetShow ());
}
开发者ID:crystalspace,项目名称:CS,代码行数:4,代码来源:wxtest.cpp



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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