本文整理汇总了C++中wxInitDialogEvent类的典型用法代码示例。如果您正苦于以下问题:C++ wxInitDialogEvent类的具体用法?C++ wxInitDialogEvent怎么用?C++ wxInitDialogEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了wxInitDialogEvent类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: OnInit
///////////////////////////////////////////////////////////////////////////////
// Called before the dialog is shown and initializes all the controls.
//
void ExportOptionsDialog::OnInit( wxInitDialogEvent& event )
{
wxBoxSizer* topmostSizer = new wxBoxSizer( wxVERTICAL );
// Message explaining the options
wxString msg = wxT( "Options" );
wxStaticBoxSizer* groupBox = new wxStaticBoxSizer( wxHORIZONTAL, this, msg );
wxBoxSizer* innerGroupBoxSizer = new wxBoxSizer( wxVERTICAL );
// Checkboxes inside of the group box
innerGroupBoxSizer->Add( &m_DependencyCheckbox, wxSizerFlags().Border( wxALL, 10 ) );
innerGroupBoxSizer->Add( &m_HierarchyCheckbox, wxSizerFlags().Border( wxLEFT | wxRIGHT | wxBOTTOM, 10 ) );
innerGroupBoxSizer->Layout();
groupBox->Add( innerGroupBoxSizer );
groupBox->Layout();
// Ok/Cancel buttons at the bottom
wxBoxSizer* buttonSizer = new wxBoxSizer( wxHORIZONTAL );
buttonSizer->Add( CreateButtonSizer( wxOK ) );
buttonSizer->Add( 40, 1, 0, wxEXPAND );
buttonSizer->Add( CreateButtonSizer( wxCANCEL ) );
buttonSizer->Layout();
// Add all the controls in the proper order
topmostSizer->Add( groupBox, wxSizerFlags().Border( wxALL, 10 ) );
topmostSizer->Add( buttonSizer, wxSizerFlags().Border( wxBOTTOM | wxLEFT | wxRIGHT, 10 ).Center() );
topmostSizer->Layout();
// Assign the topmost sizer to this dialog, otherwise things don't layout correctly
SetSizer( topmostSizer );
topmostSizer->SetSizeHints( this );
// Let the base class do its initialization
event.Skip();
}
开发者ID:HeliumProject,项目名称:Helium,代码行数:38,代码来源:ExportOptionsDialog.cpp
示例2: OnInitDialog
void dlgInterfaceSettings::OnInitDialog( wxInitDialogEvent& event )
{
////@begin wxEVT_INIT_DIALOG event handler for ID_DIALOG_INTERFACE_SETTINGS in DlgInterfaceSettings.
// Before editing this code, remove the block markers.
event.Skip();
////@end wxEVT_INIT_DIALOG event handler for ID_DIALOG_INTERFACE_SETTINGS in DlgInterfaceSettings.
}
开发者ID:ajje,项目名称:vscp,代码行数:7,代码来源:dlgifsettings.cpp
示例3: OnInit
void TableSettings::OnInit(wxInitDialogEvent& event)
{
m_textName->SetValue( m_pTable->GetName() );
// fill database data types
wxArrayString* pDbTypes = m_pDbAdapter->GetDbTypes();
if( pDbTypes ) {
wxArrayString choices;
for (unsigned int i = 0; i < pDbTypes->GetCount(); ++i) {
choices.Add( pDbTypes->Item(i) );
}
m_dvColumns->DeleteColumn( m_dvColumns->GetColumn(1) );
m_dvColumns->InsertColumn( 1, new wxDataViewColumn( _("Type"), new wxDataViewChoiceRenderer( choices, wxDATAVIEW_CELL_EDITABLE, wxDVR_DEFAULT_ALIGNMENT), 1, -2, wxALIGN_LEFT));
pDbTypes->Clear();
delete pDbTypes;
}
// fill referenced tables
ShapeList tables;
m_choiceRefTable->Append( wxT("") );
m_pDiagramManager->GetShapes( CLASSINFO(ErdTable), tables );
for( ShapeList::iterator it = tables.begin(); it != tables.end(); ++it ) {
Table *t = (Table*) (*it)->GetUserData();
if( t && t->GetName() != m_pTable->GetName() ) m_choiceRefTable->Append( t->GetName() );
}
UpdateView();
event.Skip();
}
开发者ID:05storm26,项目名称:codelite,代码行数:32,代码来源:TableSettings.cpp
示例4: OnInitDialog
void DlgCANMsg::OnInitDialog( wxInitDialogEvent& event )
{
////@begin wxEVT_INIT_DIALOG event handler for ID_DIALOG_CAN_MESSAGE in DlgCANMsg.
// Before editing this code, remove the block markers.
event.Skip();
////@end wxEVT_INIT_DIALOG event handler for ID_DIALOG_CAN_MESSAGE in DlgCANMsg.
}
开发者ID:BlueAndi,项目名称:vscp_software,代码行数:7,代码来源:dlgcanmsg.cpp
示例5: OnInitDialog
void dlgNewCanalSession::OnInitDialog( wxInitDialogEvent& event )
{
////@begin wxEVT_INIT_DIALOG event handler for ID_DIALOG_NEW_CANAL_SESSION in DlgNewCanalSession.
// Before editing this code, remove the block markers.
event.Skip();
////@end wxEVT_INIT_DIALOG event handler for ID_DIALOG_NEW_CANAL_SESSION in DlgNewCanalSession.
}
开发者ID:BlueAndi,项目名称:vscp_software,代码行数:7,代码来源:dlgnewcanalsession.cpp
示例6: OnInitDialog
void dlgNewVSCPSession::OnInitDialog(wxInitDialogEvent& event)
{
////@begin wxEVT_INIT_DIALOG event handler for ID_DIALOG_NEW_VSCP_SESSION in DlgNewVSCPSession.
// Before editing this code, remove the block markers.
event.Skip();
////@end wxEVT_INIT_DIALOG event handler for ID_DIALOG_NEW_VSCP_SESSION in DlgNewVSCPSession.
fillListBox(wxString(_("")));
}
开发者ID:dinguluer,项目名称:vscp_software,代码行数:9,代码来源:dlgnewvscpsession.cpp
示例7: OnInitDialog
void dlgConfiguration::OnInitDialog( wxInitDialogEvent& event )
{
if ( g_Config.m_bAutoscollRcv ) {
m_ChkAutoScroll->SetValue( 1 );
}
else {
m_ChkAutoScroll->SetValue( 0 );
}
event.Skip();
}
开发者ID:datenheim,项目名称:vscp_software,代码行数:10,代码来源:dlgconfiguration.cpp
示例8: OnInitDialog
// ------------------------------------------------------------
void SpellCheckerSettings::OnInitDialog(wxInitDialogEvent& event)
{
event.Skip();
if(m_pHunspell) {
m_pDirPicker->SetPath(m_dictionaryPath);
if(!m_dictionaryPath.IsEmpty()) FillLanguageList();
}
}
开发者ID:05storm26,项目名称:codelite,代码行数:11,代码来源:SpellCheckerSettings.cpp
示例9: OnInit
void ModuleManagerDialog::OnInit(wxInitDialogEvent& event) {
Common::LoadModules();
m_loaded_modules_list->Clear();
for (std::uint32_t i = 0, max_i = System::GetLoadedPunkModulesCount(); i < max_i; ++i) {
auto module = System::GetLoadedPunkModule(i);
m_loaded_modules_list->Insert(wxString((const wchar_t*)module->GetName().Data()), 0, (void**)module);
}
event.Skip();
}
开发者ID:Mikalai,项目名称:punk_project_a,代码行数:11,代码来源:module_manager_impl.cpp
示例10: OnInitDialog
/*---------------------------------------------------------------------------*/
void wxPrefDlg::OnInitDialog(wxInitDialogEvent& event)
{
m_OddLineColour->SetColour(m_Val_OddColour);
m_LineNumberFG->SetColour(m_Val_LineFG);
m_LineNumberBG->SetColour(m_Val_LineBG);
m_ItemFG->SetColour(m_Val_ItemFG[0]);
m_ItemBG->SetColour(m_Val_ItemBG[0]);
event.Skip();
}
开发者ID:zaytcev-andrey,项目名称:sqlite-crc,代码行数:12,代码来源:preferences.cpp
示例11: onInit
/// Set the focus if it is not already set in a derived constructor to a specific control.
void DIALOG_SHIM::onInit( wxInitDialogEvent& aEvent )
{
wxWindow* focusWnd = wxWindow::FindFocus();
// If focusWnd is not already this window or a child of it, then SetFocus().
// Otherwise the derived class's constructor SetFocus() already to a specific
// child control.
if( !findWindowRecursively( this, focusWnd ) )
{
// Linux wxGTK needs this to allow the ESCAPE key to close a wxDialog window.
SetFocus();
}
aEvent.Skip(); // derived class's handler should be called too
}
开发者ID:BTR1,项目名称:kicad-source-mirror,代码行数:17,代码来源:dialog_shim.cpp
示例12: UponInitDialog
void MvcController::UponInitDialog(wxInitDialogEvent& event)
{
event.Skip();
Initialize();
::Connect
(this
,wxEVT_REFOCUS_INVALID_CONTROL
,&MvcController::UponRefocusInvalidControl
);
::Connect
(this
,wxEVT_COMMAND_BOOKCTRL_PAGE_CHANGING
,&MvcController::UponPageChanging
,wxXmlResource::GetXRCID(view_.BookControlName())
);
::Connect
(this
,wxEVT_COMMAND_BOOKCTRL_PAGE_CHANGED
,&MvcController::UponPageChanged
,wxXmlResource::GetXRCID(view_.BookControlName())
);
::Connect
(this
,wxEVT_CHILD_FOCUS
,&MvcController::UponChildFocus
);
::Connect
(this
,wxEVT_UPDATE_UI
,&MvcController::UponUpdateUI
,wxXmlResource::GetXRCID(view_.MainDialogName())
);
if(contains(global_settings::instance().pyx(), "show_mvc_dims"))
{
int width = 0;
int height = 0;
GetSize(&width, &height);
status() << width << " by " << height << std::flush;
}
}
开发者ID:vadz,项目名称:lmi,代码行数:43,代码来源:mvc_controller.cpp
示例13: OnInitDialog
void dlgNewVSCPSession::OnInitDialog(wxInitDialogEvent& event)
{
event.Skip();
fillListBox( wxString(_("") ) );
}
开发者ID:ajje,项目名称:vscp,代码行数:6,代码来源:dlgnewvscpsession.cpp
示例14: evento_cambiar_user_cargar_dbs
void VDialogoCambiarUser::evento_cambiar_user_cargar_dbs( wxInitDialogEvent& event ) {
sistemas->Obtener_dbs(cambiar_user_dbs);
event.Skip();
}
开发者ID:hostelix,项目名称:ADM-Mysql,代码行数:4,代码来源:VDialogoCambiarUser.cpp
示例15: onInit
void serverOperationsForm::onInit(wxInitDialogEvent& event)
{
wxLogDebug( _T("[serverOpForm] on init fired") );
runThread();
event.Skip();
}
开发者ID:gszura,项目名称:wx-nfp,代码行数:6,代码来源:serverOperationsForm.cpp
注:本文中的wxInitDialogEvent类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论