您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ wxBeginBusyCursor函数代码示例

51自学网 2021-06-03 10:08:44
  C++
这篇教程C++ wxBeginBusyCursor函数代码示例写得很实用,希望能帮到您。

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

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

示例1: wxDialog

EditServerListDlg::EditServerListDlg(wxWindow *parent,                                     const wxString& caption,                                     const wxString& message,				     const wxString& filename) : wxDialog(parent, -1, caption,								      wxDefaultPosition, wxSize(400,200),								      wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER){  m_file = filename;  wxBeginBusyCursor();  wxBoxSizer *topsizer = new wxBoxSizer( wxVERTICAL );  topsizer->Add( CreateTextSizer( message ), 0, wxALL, 10 );  m_textctrl = new wxTextCtrl(this, -1, wxEmptyString,			      wxDefaultPosition,			      wxDefaultSize,			      wxTE_MULTILINE);  topsizer->Add( m_textctrl, 1, wxEXPAND | wxLEFT|wxRIGHT, 15 );  topsizer->Add( CreateButtonSizer( wxOK | wxCANCEL ), 0, wxCENTRE | wxALL, 10 );  SetAutoLayout( TRUE );  SetSizer( topsizer );  Centre( wxBOTH );  if (wxFile::Exists(filename))	m_textctrl->LoadFile(filename);  m_textctrl->SetFocus();  wxEndBusyCursor();}
开发者ID:Artoria2e5,项目名称:amule-dlp,代码行数:35,


示例2: wxDialog

wxNumberEntryDialog::wxNumberEntryDialog(wxWindow *parent,                                         const wxString& message,                                         const wxString& prompt,                                         const wxString& caption,                                         long value,                                         long min,                                         long max,                                         const wxPoint& pos)                   : wxDialog(parent, wxID_ANY, caption,                              pos, wxDefaultSize){    m_value = value;    m_max = max;    m_min = min;    wxBeginBusyCursor();    wxBoxSizer *topsizer = new wxBoxSizer( wxVERTICAL );#if wxUSE_STATTEXT    // 1) text message    topsizer->Add( CreateTextSizer( message ), 0, wxALL, 10 );#endif    // 2) prompt and text ctrl    wxBoxSizer *inputsizer = new wxBoxSizer( wxHORIZONTAL );#if wxUSE_STATTEXT    // prompt if any    if (!prompt.empty())        inputsizer->Add( new wxStaticText( this, wxID_ANY, prompt ), 0, wxCENTER | wxLEFT, 10 );#endif    // spin ctrl    wxString valStr;    valStr.Printf(wxT("%ld"), m_value);    m_spinctrl = new wxSpinCtrl(this, wxID_ANY, valStr, wxDefaultPosition, wxSize( 140, wxDefaultCoord ), wxSP_ARROW_KEYS, (int)m_min, (int)m_max, (int)m_value);    inputsizer->Add( m_spinctrl, 1, wxCENTER | wxLEFT | wxRIGHT, 10 );    // add both    topsizer->Add( inputsizer, 0, wxEXPAND | wxLEFT|wxRIGHT, 5 );    // 3) buttons if any    wxSizer *buttonSizer = CreateSeparatedButtonSizer(wxOK | wxCANCEL);    if ( buttonSizer )    {        topsizer->Add(buttonSizer, wxSizerFlags().Expand().DoubleBorder());    }    SetSizer( topsizer );    SetAutoLayout( true );    topsizer->SetSizeHints( this );    topsizer->Fit( this );    Centre( wxBOTH );    m_spinctrl->SetSelection(-1, -1);    m_spinctrl->SetFocus();    wxEndBusyCursor();}
开发者ID:ACanadianKernel,项目名称:pcsx2,代码行数:60,


示例3: wxWindowDisabler

void IntensityCorrectionFilterPanel::OnSetProgress( wxCommandEvent& event ){  int progress = event.GetInt();    // start_progress() sends -1  if (progress < 0)  {    disabler_ = new wxWindowDisabler();#ifndef _WIN32    wxBeginBusyCursor();#endif    progress = 0;  }  // finish_progress() sends 101  if (progress > 100)  {    if (disabler_) { delete disabler_; disabler_ = 0; }#ifndef _WIN32    wxEndBusyCursor();#endif    progress = 100;  }  if (progress == 0 || progress > mPercentage->GetValue())  {    mPercentage->SetValue(progress);  }}
开发者ID:pip010,项目名称:scirun4plus,代码行数:27,


示例4: wxBeginBusyCursor

///////////////////////////////////////////////////////// Report base///////////////////////////////////////////////////////wxWindow *reportBaseFactory::StartDialog(frmMain *form, pgObject *obj){	parent = form;	wxBeginBusyCursor();	frmReport *report = new frmReport(GetFrmMain());	// Generate the report header	wxDateTime now = wxDateTime::Now();	report->XmlAddHeaderValue(wxT("generated"), now.Format(wxT("%c")));	if (obj->GetServer())		report->XmlAddHeaderValue(wxT("server"), obj->GetServer()->GetFullIdentifier());	if (obj->GetDatabase())		report->XmlAddHeaderValue(wxT("database"), obj->GetDatabase()->GetName());	if (obj->GetSchema())	{		if (obj->GetSchema()->GetMetaType() == PGM_CATALOG)			report->XmlAddHeaderValue(wxT("catalog"), obj->GetSchema()->GetDisplayName());		else			report->XmlAddHeaderValue(wxT("schema"), obj->GetSchema()->GetName());	}	if (obj->GetJob())		report->XmlAddHeaderValue(wxT("job"), obj->GetJob()->GetName());	if (obj->GetTable())		report->XmlAddHeaderValue(wxT("table"), obj->GetTable()->GetName());	GenerateReport(report, obj);	wxEndBusyCursor();	report->ShowModal();	return 0;}
开发者ID:apolyton,项目名称:pgadmin3,代码行数:35,


示例5: WXUNUSED

void SigUIFrame::m_installOnButtonClick( wxCommandEvent& WXUNUSED(event) ){    wxWakeUpIdle();    wxBeginBusyCursor();    m_panel_sigman->Disable();    wxFileName exec(wxStandardPaths::Get().GetExecutablePath());    m_siginst_process = new wxProcess(this);    m_siginst_process->Redirect();    long pid = wxExecute("/"" + exec.GetFullPath() + "/" -i", wxEXEC_ASYNC | wxEXEC_NOHIDE, m_siginst_process);    if (!pid) {	wxLogError(_("Failed to reexecute self for installing the virus signatures!"));	return;    }    m_siginst_process->SetPid(pid);    wxOutputStream *out = m_siginst_process->GetOutputStream();    for (unsigned i=0;i<m_sig_candidates->GetCount();i++) {	wxString str = m_sig_candidates->GetString(i) + "/n";	const char *s = str.mb_str();	if (*s) {	    out->Write(s, strlen(s));	} else {	    // see bb #2343	    wxLogError(_("Filenames with non-ASCII characters not yet supported: %s"), str);	    return;	}    }    m_siginst_process->CloseOutput();    wxWakeUpIdle();}
开发者ID:LZ-SecurityTeam,项目名称:clamav-devel,代码行数:32,


示例6: OnButtonBrowseRptFileClick

void DIALOG_DRC_CONTROL::OnStartdrcClick( wxCommandEvent& event ){    wxString reportName;    bool make_report = m_CreateRptCtrl->IsChecked();    if( make_report )      // Create a rpt file    {        reportName = m_RptFilenameCtrl->GetValue();        if( reportName.IsEmpty() )        {            wxCommandEvent dummy;            OnButtonBrowseRptFileClick( dummy );        }        if( !reportName.IsEmpty() )            reportName = makeValidFileNameReport();    }    SetDrcParmeters();    m_tester->SetSettings( true,        // Pad to pad DRC test enabled                           true,        // unconnected pads DRC test enabled                           true,        // DRC test for zones enabled                           true,        // DRC test for keepout areas enabled                           reportName, make_report );    DelDRCMarkers();    wxBeginBusyCursor();    // run all the tests, with no UI at this time.    m_Messages->Clear();    wxSafeYield();                          // Allows time slice to refresh the m_Messages window    m_brdEditor->GetBoard()->m_Status_Pcb = 0; // Force full connectivity and ratsnest recalculations    m_tester->RunTests(m_Messages);    m_Notebook->ChangeSelection( 0 );       // display the 1at tab "...Markers ..."    // Generate the report    if( !reportName.IsEmpty() )    {        if( writeReport( reportName ) )        {            wxString        msg;            msg.Printf( _( "Report file /"%s/" created" ), GetChars( reportName ) );            wxString        caption( _( "Disk File Report Completed" ) );            wxMessageDialog popupWindow( this, msg, caption );            popupWindow.ShowModal();        }        else            DisplayError( this, wxString::Format( _( "Unable to create report file '%s' "),                          GetChars( reportName ) ) );    }    wxEndBusyCursor();    RedrawDrawPanel();}
开发者ID:AlexanderBrevig,项目名称:kicad-source-mirror,代码行数:60,


示例7: wxBeginBusyCursor

void CamShiftPlugin::OnOK(){	wxBeginBusyCursor();	if (!GetScope())		ProcessImage(cm->book[cm->GetPos()], cm->GetPos());	else{		FetchParams();		ImagePlus *oimg;		CvRect orect, searchwin;		CvPoint ocenter;		oimg = cm->book[0];		int numContours = (int) oimg->contourArray.size();		for (int i=1; i<cm->GetFrameCount(); i++)			cm->book[i]->CloneContours(oimg);		int frameCount = cm->GetFrameCount();		CreateProgressDlg(numContours*frameCount);		bool cont=true;		for (int j=0; j<numContours && cont; j++){			for (int i=1; i<frameCount && (cont=progressDlg->Update(j*frameCount+i, wxString::Format("Cell %d of %d, Frame %d of %d", j+1,numContours, i+1, frameCount))); i++){				ProcessStatic(j, cm->book[i], cm->book[useFirst ? 0 : i-1], hsizes, criteria,		planes, hist, backproject, orect, ocenter, searchwin, rotation, shift, i>1);			}		}		DestroyProgressDlg();	}	cm->ReloadCurrentFrameContours(true, false);	wxEndBusyCursor();}
开发者ID:conanhung,项目名称:examples,代码行数:28,


示例8: wxFAIL_MSG

void tmwxOptimizerDialog::DoStartModal() {  /* CAF - essentially lifted from wxGTK 2.5.1's wxDialog::ShowModal, up to     grabbing the focus. */    if (IsModal()) {       wxFAIL_MSG( wxT("wxDialog:ShowModal called twice") );       mStatus = GetReturnCode();       return;    }    // use the apps top level window as parent if none given unless explicitly    // forbidden    if (! GetParent() && !(GetWindowStyleFlag() & wxDIALOG_NO_PARENT)) {        wxWindow *parent = wxTheApp->GetTopWindow();        if (parent && parent != this &&            parent -> IsBeingDeleted() &&            ! (parent->GetExtraStyle() & wxWS_EX_TRANSIENT)) {            m_parent = parent;            gtk_window_set_transient_for (GTK_WINDOW(m_widget),            GTK_WINDOW(parent->m_widget) );        }    }    wxBeginBusyCursor ();    Show (true);    SetFocus();    m_modalShowing = true;    g_openDialogs++;    gtk_grab_add (m_widget);}
开发者ID:strange-attractors,项目名称:TreeMaker,代码行数:29,


示例9: OnButtonBrowseRptFileClick

void DIALOG_DRC_CONTROL::OnListUnconnectedClick( wxCommandEvent& event ){    wxString reportName;    bool make_report = m_CreateRptCtrl->IsChecked();    if( make_report )      // Create a file rpt    {        reportName = m_RptFilenameCtrl->GetValue();        if( reportName.IsEmpty() )        {            wxCommandEvent junk;            OnButtonBrowseRptFileClick( junk );        }        if( !reportName.IsEmpty() )            reportName = makeValidFileNameReport();    }    SetDrcParmeters();    m_tester->SetSettings( true,        // Pad to pad DRC test enabled                           true,        // unconnected pads DRC test enabled                           true,        // DRC test for zones enabled                           true,        // DRC test for keepout areas enabled                           reportName, make_report );    DelDRCMarkers();    wxBeginBusyCursor();    m_Messages->Clear();    m_tester->ListUnconnectedPads();    m_Notebook->ChangeSelection( 1 );       // display the 2nd tab "Unconnected..."    // Generate the report    if( !reportName.IsEmpty() )    {        if( writeReport( reportName ) )        {            wxString        msg;            msg.Printf( _( "Report file /"%s/" created" ), GetChars( reportName ) );            wxString        caption( _( "Disk File Report Completed" ) );            wxMessageDialog popupWindow( this, msg, caption );            popupWindow.ShowModal();        }        else            DisplayError( this, wxString::Format( _( "Unable to create report file '%s' "),                          GetChars( reportName ) ) );    }    wxEndBusyCursor();    /* there is currently nothing visible on the DrawPanel for unconnected pads     *  RedrawDrawPanel();     */}
开发者ID:blairbonnett-mirrors,项目名称:kicad,代码行数:59,


示例10: wxBeginBusyCursor

/*! * wxEVT_COMMAND_BUTTON_CLICKED event handler for START_BUTTON */void CropVolCylinder::OnStartButtonClick( wxCommandEvent& event ){  wxBeginBusyCursor();  SCIRun::Painter::ThrowSkinnerSignal("Painter::FinishTool");  wxEndBusyCursor();  SCIRun::Painter::global_seg3dframe_pointer_->HideTool();}
开发者ID:viscenter,项目名称:educe,代码行数:11,


示例11: OnButtonBrowseRptFileClick

void DIALOG_DRC_CONTROL::OnStartdrcClick( wxCommandEvent& event ){    wxString reportName;    if( m_CreateRptCtrl->IsChecked() )      // Create a file rpt    {        reportName = m_RptFilenameCtrl->GetValue();        if( reportName.IsEmpty() )        {            wxCommandEvent junk;            OnButtonBrowseRptFileClick( junk );        }        reportName = m_RptFilenameCtrl->GetValue();    }    SetDrcParmeters();    m_tester->SetSettings( true,        // Pad to pad DRC test enabled                           true,        // unconnected pdas DRC test enabled                           true,        // DRC test for zones enabled                           true,        // DRC test for keepout areas enabled                           reportName, m_CreateRptCtrl->IsChecked() );    DelDRCMarkers();    wxBeginBusyCursor();    // run all the tests, with no UI at this time.    m_Messages->Clear();    wxSafeYield();                          // Allows time slice to refresh the m_Messages window    m_tester->m_pcb->m_Status_Pcb = 0;      // Force full connectivity and ratsnest recalculations    m_tester->RunTests(m_Messages);    m_Notebook->ChangeSelection( 0 );       // display the 1at tab "...Markers ..."    // Generate the report    if( !reportName.IsEmpty() )    {        FILE* fp = wxFopen( reportName, wxT( "w" ) );        writeReport( fp );        fclose( fp );        wxString        msg;        msg.Printf( _( "Report file /"%s/" created" ), GetChars( reportName ) );        wxString        caption( _( "Disk File Report Completed" ) );        wxMessageDialog popupWindow( this, msg, caption );        popupWindow.ShowModal();    }    wxEndBusyCursor();    RedrawDrawPanel();}
开发者ID:chgans,项目名称:kicad,代码行数:58,


示例12: wxDirDialog

voidAnPickFromFs::onPickButton(wxCommandEvent &){	if (pickButtonMenu_.IsChecked(dirMenuId_)) {		wxDirDialog	*dlg;		long		 flags = wxDD_DEFAULT_STYLE;		if ((pickerMode_ & MODE_NEW) == 0)			flags |= wxDD_DIR_MUST_EXIST;		dlg = new wxDirDialog(this,wxEmptyString, wxEmptyString, flags);		wxBeginBusyCursor();		dlg->SetPath(getDialogPath());		wxEndBusyCursor();		if (dlg->ShowModal() == wxID_OK) {			adoptFileName(dlg->GetPath());		}		dlg->Destroy();	} else {		wxFileDialog	*dlg;		long		 flags;		wxFileName	 defaultPath;		defaultPath.Assign(fileName_);		flags  = wxDD_DEFAULT_STYLE | wxFD_FILE_MUST_EXIST;		if (pickerMode_ & MODE_NEW)			flags = wxFD_SAVE;		dlg = new wxFileDialog(this,wxEmptyString, wxEmptyString,		    wxEmptyString, wxEmptyString, flags);		wxBeginBusyCursor();		dlg->SetDirectory(getDialogPath());		dlg->SetFilename(defaultPath.GetFullName());		dlg->SetWildcard(wxT("*"));		wxEndBusyCursor();		if (dlg->ShowModal() == wxID_OK) {			adoptFileName(dlg->GetPath());		}		dlg->Destroy();	}}
开发者ID:genua,项目名称:anoubis,代码行数:45,


示例13: wxBeginBusyCursor

void wxGenericColourDialog::CreateWidgets(){    wxBeginBusyCursor();    wxBoxSizer *topSizer = new wxBoxSizer( wxVERTICAL );    const int sliderHeight = 160;    // first sliders#if wxUSE_SLIDER    const int sliderX = m_singleCustomColourRect.x + m_singleCustomColourRect.width + m_sectionSpacing;    m_redSlider = new wxSlider(this, wxID_RED_SLIDER, m_colourData.m_dataColour.Red(), 0, 255,        wxDefaultPosition, wxSize(wxDefaultCoord, sliderHeight), wxSL_VERTICAL|wxSL_LABELS|wxSL_INVERSE);    m_greenSlider = new wxSlider(this, wxID_GREEN_SLIDER, m_colourData.m_dataColour.Green(), 0, 255,        wxDefaultPosition, wxSize(wxDefaultCoord, sliderHeight), wxSL_VERTICAL|wxSL_LABELS|wxSL_INVERSE);    m_blueSlider = new wxSlider(this, wxID_BLUE_SLIDER, m_colourData.m_dataColour.Blue(), 0, 255,        wxDefaultPosition, wxSize(wxDefaultCoord, sliderHeight), wxSL_VERTICAL|wxSL_LABELS|wxSL_INVERSE);    wxBoxSizer *sliderSizer = new wxBoxSizer( wxHORIZONTAL );    sliderSizer->Add(sliderX, sliderHeight );    wxSizerFlags flagsRight;    flagsRight.Align(wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL).DoubleBorder();    sliderSizer->Add(m_redSlider, flagsRight);    sliderSizer->Add(m_greenSlider,flagsRight);    sliderSizer->Add(m_blueSlider,flagsRight);    topSizer->Add(sliderSizer, wxSizerFlags().Centre().DoubleBorder());#else    topSizer->Add(1, sliderHeight, wxSizerFlags(1).Centre().TripleBorder());#endif // wxUSE_SLIDER    // then the custom button    topSizer->Add(new wxButton(this, wxID_ADD_CUSTOM,                                  _("Add to custom colours") ),                     wxSizerFlags().DoubleHorzBorder());    // then the standard buttons    wxSizer *buttonsizer = CreateSeparatedButtonSizer(wxOK | wxCANCEL);    if ( buttonsizer )    {        topSizer->Add(buttonsizer, wxSizerFlags().Expand().DoubleBorder());    }    SetAutoLayout( true );    SetSizer( topSizer );    topSizer->SetSizeHints( this );    topSizer->Fit( this );    Centre( wxBOTH );    wxEndBusyCursor();}
开发者ID:iokto,项目名称:newton-dynamics,代码行数:57,


示例14: wxBeginBusyCursor

/*! * wxEVT_COMMAND_BUTTON_CLICKED event handler for ERASE_BUTTON */void PolylineToolPanel::OnEraseButtonClick( wxCommandEvent& event ){  wxBeginBusyCursor();  SCIRun::ThrowSkinnerSignalEvent *tsse =    new SCIRun::ThrowSkinnerSignalEvent("Painter::FinishTool");  tsse->add_var("Painter::polylinetool_erase", "1");  SCIRun::Painter::ThrowSkinnerSignal(tsse);  wxEndBusyCursor();}
开发者ID:pip010,项目名称:scirun4plus,代码行数:12,


示例15: WXUNUSED

void DecisionLogicFrame::OnSaveProject(wxCommandEvent& WXUNUSED(event)){	wxBeginBusyCursor();	this->m_tree->Enable(false);	if (m_worker->Save())		EnableAllMenus();	this->m_tree->Enable(true);	wxEndBusyCursor();}
开发者ID:e1d1s1,项目名称:Logician,代码行数:9,


示例16: SLM_TRACE_FUNC

int App::OnExit(){    SLM_TRACE_FUNC();    wxBeginBusyCursor();    //::fwServices::RootManager::uninitializeRootObject();    wxEndBusyCursor();    delete m_checker;    return 0;}
开发者ID:dragonlet,项目名称:fw4spl,代码行数:11,


示例17: wxBeginBusyCursor

void frmMain::StartMsg(const wxString& msg){   if (msgLevel++)        return;    timermsg.Printf(wxT("%s..."), msg.c_str());    wxBeginBusyCursor();    stopwatch.Start(0);    wxLogStatus(timermsg);    statusBar->SetStatusText(timermsg, 1);    statusBar->SetStatusText(wxT(""), 2);}
开发者ID:mhagander,项目名称:pgadmin3,代码行数:12,


示例18: _busy

DLL_LOCAL VALUE _busy(int argc,VALUE *argv,VALUE self){    VALUE cursor;    rb_scan_args(argc, argv, "01",&cursor);    app_protected();    wxBeginBusyCursor(NIL_P(cursor) ? wxHOURGLASS_CURSOR : unwrap<wxCursor*>(cursor));    rb_yield(Qnil);    wxEndBusyCursor();    return self;}
开发者ID:rinkevichjm,项目名称:rwx,代码行数:12,


示例19: WXUNUSED

void wxCheatsWindow::OnEvent_ButtonUpdateLog_Press(wxCommandEvent& WXUNUSED(event)){	wxBeginBusyCursor();	m_textctrl_log->Freeze();	m_textctrl_log->Clear();	for (const std::string& text : ActionReplay::GetSelfLog())	{		m_textctrl_log->AppendText(StrToWxStr(text));	}	m_textctrl_log->Thaw();	wxEndBusyCursor();}
开发者ID:MarquiseRosier,项目名称:dolphin,代码行数:12,


示例20: wxBeginBusyCursor

/*! * wxEVT_COMMAND_BUTTON_CLICKED event handler for START_BUTTON */void HistoEqFilter::OnStartButtonClick( wxCommandEvent& event ){  // Call synchronously and wait.  wxBeginBusyCursor();  SCIRun::ThrowSkinnerSignalEvent *tsse =    new SCIRun::ThrowSkinnerSignalEvent("Painter::HistoEqFilter");  tsse->add_var("Painter::HistoEq::bins",                SCIRun::to_string(mIgnore->GetValue()));  tsse->add_var("Painter::HistoEq::alpha",                wx2std(mAlpha->GetValue()));  SCIRun::Painter::ThrowSkinnerSignal(tsse);  wxEndBusyCursor();}
开发者ID:viscenter,项目名称:educe,代码行数:16,


示例21: wxDialog

wxCustomEntryDialog::wxCustomEntryDialog(wxWindow *parent,                                         const wxString& message,                                         const wxString& caption,                                         const wxPoint& pos)                   : wxDialog(parent, wxID_ANY, caption,				   pos, wxDefaultSize,wxCAPTION | wxSYSTEM_MENU | wxCLOSE_BOX | wxRESIZE_BORDER){	this->SetMinSize(FromDIP(wxSize(320,320)));    wxBeginBusyCursor();	wxBoxSizer* topsizer = new wxBoxSizer( wxVERTICAL );#if wxUSE_STATTEXT    // 1) text message    topsizer->Add( CreateTextSizer( message ), 0, wxALL, 10 );#endif    // 2) prompt and text ctrl	wxBoxSizer* vinputsizer = new wxBoxSizer(wxHORIZONTAL);	//vinputsizer->SetVGap(5);	//vinputsizer->SetHGap(5);	topsizer->Add( vinputsizer, 1, wxEXPAND | wxTOP|wxBOTTOM, 5 );    // 3) buttons if any    wxSizer *buttonSizer = CreateSeparatedButtonSizer(wxOK | wxCANCEL);    if ( buttonSizer )    {        topsizer->Add(buttonSizer, wxSizerFlags().Expand().DoubleBorder());    }	PropGrid* newGrid=new PropGrid(this,wxCustomEntryDialog::CUSTOM_DIALOG_CTRLS_GRID);	vinputsizer->Add( newGrid,1,wxEXPAND);	//newGrid->SetMinSize(FromDIP(wxSize(300,200)));	//newGrid->AppendCols();	newGrid->SetColLabelValue(0,_("Value"));	newGrid->SetColLabelAlignment(wxVERTICAL,wxALIGN_LEFT);    SetSizer( topsizer );    SetAutoLayout( true );    topsizer->SetSizeHints( this );    topsizer->Fit( this );    Centre( wxBOTH );    wxEndBusyCursor();}
开发者ID:Ifsttar,项目名称:I-Simpa,代码行数:51,


示例22: wxBeginBusyCursor

/*! * wxEVT_COMMAND_BUTTON_CLICKED event handler for START_BUTTON */void OptionlessFilter::OnStartButtonClick( wxCommandEvent& event ){  if (show_progress_)  {    SCIRun::Painter::ThrowSkinnerSignal(skinner_callback_, false);  }  else  {    // Call synchronously and wait.    wxBeginBusyCursor();    SCIRun::Painter::ThrowSkinnerSignal(skinner_callback_, true);    wxEndBusyCursor();  }}
开发者ID:pip010,项目名称:scirun4plus,代码行数:17,


示例23: wxBeginBusyCursor

/*! * wxEVT_COMMAND_BUTTON_CLICKED event handler for START_BUTTON */void ResampleTool::OnStartButtonClick( wxCommandEvent& event ){  wxBeginBusyCursor();  SCIRun::ThrowSkinnerSignalEvent *tsse =    new SCIRun::ThrowSkinnerSignalEvent("Painter::FinishTool");  tsse->add_var( "Painter::Resample::x", SCIRun::to_string( mX->GetValue() ) );  tsse->add_var( "Painter::Resample::y", SCIRun::to_string( mY->GetValue() ) );  tsse->add_var( "Painter::Resample::z", SCIRun::to_string( mZ->GetValue() ) );  tsse->add_var( "Painter::Resample::filter", wx2std( mFilter->GetStringSelection() ) );  SCIRun::Painter::ThrowSkinnerSignal(tsse);  wxEndBusyCursor();  SCIRun::Painter::global_seg3dframe_pointer_->HideTool();}
开发者ID:pip010,项目名称:scirun4plus,代码行数:17,


示例24: WXUNUSED

void MyFrame::OnDial(wxCommandEvent& WXUNUSED(event)){    wxLogStatus(this, wxT("Preparing to dial..."));    wxYield();    wxBeginBusyCursor();    if ( wxGetApp().GetDialer()->Dial() )    {        wxLogStatus(this, wxT("Dialing..."));    }    else    {        wxLogStatus(this, wxT("Dialing attempt failed."));    }    wxEndBusyCursor();}
开发者ID:ExperimentationBox,项目名称:Edenite,代码行数:17,


示例25: wxDialog

MultiLineDialog::MultiLineDialog(wxWindow *parent,                                 const wxString& caption,                                 const wxString& message,                                 const wxString& value)     : wxDialog(GetParentForModalDialog(parent, wxOK | wxCANCEL),                wxID_ANY, caption, wxDefaultPosition, wxDefaultSize,                wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER){    wxBeginBusyCursor();    wxBoxSizer* topsizer = new wxBoxSizer( wxVERTICAL );    wxSizerFlags flagsBorder2;    flagsBorder2.DoubleBorder();    topsizer->Add(CreateTextSizer(message), flagsBorder2);    m_textctrl = new wxTextCtrl(this, wxID_ANY, value,                                wxDefaultPosition, wxSize(100,50), wxTE_MULTILINE | wxTE_PROCESS_TAB);    #ifdef __WXMAC__        // need bigger font on Mac, and need to specify facename to get Monaco instead of Courier        wxFont font(12, wxMODERN, wxNORMAL, wxNORMAL, false, wxT("Monaco"));    #else        wxFont font(10, wxTELETYPE, wxFONTSTYLE_NORMAL, wxNORMAL, false, _T("Monospace"), wxFONTENCODING_DEFAULT);    #endif    m_textctrl->SetFont(font);        // allow people to use small dialog if they wish    // m_textctrl->SetMinSize(wxSize(800,500));    topsizer->Add(m_textctrl, wxSizerFlags(1).Expand().TripleBorder(wxLEFT | wxRIGHT));    wxSizer* buttonSizer = CreateSeparatedButtonSizer(wxOK | wxCANCEL);    topsizer->Add(buttonSizer, wxSizerFlags(flagsBorder2).Expand());    SetAutoLayout(true);    SetSizer(topsizer);    topsizer->SetSizeHints(this);    topsizer->Fit(this);    m_textctrl->SetFocus();    m_textctrl->SetSelection(0,0);      // probably nicer not to select all text    wxEndBusyCursor();}
开发者ID:silky,项目名称:ready,代码行数:46,


示例26: wxBeginBusyCursor

void frmMain::StartMsg(const wxString &msg){	if (msgLevel++)		return;	timermsg.Printf(wxT("%s..."), msg.c_str());	wxBeginBusyCursor();	stopwatch.Start(0);	// Create a copy of the message, with %'s escaped for wxLogStatus	wxString logmsg = timermsg;	logmsg.Replace(wxT("%"), wxT("%%"));	wxLogStatus(logmsg);	statusBar->SetStatusText(timermsg, 1);	statusBar->SetStatusText(wxT(""), 2);}
开发者ID:kleopatra999,项目名称:pgadmin3,代码行数:17,


示例27: wxBeginBusyCursor

void WIZARD_FPLIB_TABLE::getLibsListGithub( wxArrayString& aList ){    wxBeginBusyCursor();    // Be sure there is no trailing '/' at the end of the repo name    wxString git_url = m_textCtrlGithubURL->GetValue();    if( git_url.EndsWith( wxT( "/" ) ) )    {        git_url.RemoveLast();        m_textCtrlGithubURL->SetValue( git_url );    }    GITHUB_GETLIBLIST getter( git_url );    getter.GetLibraryList( aList );    wxEndBusyCursor();}
开发者ID:blueantst,项目名称:kicad-source-mirror,代码行数:18,


示例28: wxFileDialog

voidRuleWizardContextExceptionPage::onAddButton(wxCommandEvent &){	wxFileDialog *fileDlg = new wxFileDialog(this);	wxBeginBusyCursor();	fileDlg->SetDirectory(wxT("/usr/bin"));	fileDlg->SetFilename(wxEmptyString);	fileDlg->SetWildcard(wxT("*"));	wxEndBusyCursor();	if (fileDlg->ShowModal() == wxID_OK) {		history_->getContextExceptions()->add(fileDlg->GetPath());		updateNavi();	}	fileDlg->Destroy();}
开发者ID:genua,项目名称:anoubis,代码行数:18,



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


C++ wxBrush函数代码示例
C++ wxAuiPaneInfo函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。