当前位置: 首页>>代码示例>>C++>>正文


C++ CreateControls函数代码示例

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


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

示例1: ASSERT

	int CTemporalRefCtrl::OnCreate(LPCREATESTRUCT lpCreateStruct)
	{
		if (CWnd::OnCreate(lpCreateStruct) == -1)
			return -1;

		if (m_ref.m_type != CTRef::UNKNOWN)
		{
			m_type = m_ref.m_type;
		}

		ASSERT(m_period.IsInside(m_ref));

		CreateControls();

		return 0;
	}
开发者ID:RNCan,项目名称:WeatherBasedSimulationFramework,代码行数:16,代码来源:TemporalRefCtrl.cpp

示例2: SetExtraStyle

bool mmAppStartDialog::Create(wxWindow* parent, wxWindowID id, const wxString& caption
    , const wxPoint& pos, const wxSize& size, long style)
{
    SetExtraStyle(GetExtraStyle()|wxWS_EX_BLOCK_EVENTS);
    bool ok = wxDialog::Create(parent, id, caption, pos, size, style);

    if (ok) {
        SetIcon(mmex::getProgramIcon());
        CreateControls();
        GetSizer()->Fit(this);
        GetSizer()->SetSizeHints(this);
        CentreOnScreen();
    }

    return ok;
}
开发者ID:Maurizio13,项目名称:moneymanagerex,代码行数:16,代码来源:appstartdialog.cpp

示例3: SetExtraStyle

/*!
 * AboutDlg creator
 */
bool AboutDlg::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
{
////@begin AboutDlg member initialisation
////@end AboutDlg member initialisation

////@begin AboutDlg creation
    SetExtraStyle(GetExtraStyle()|wxWS_EX_BLOCK_EVENTS);
    wxDialog::Create( parent, id, caption, pos, size, style );

    CreateControls();
    GetSizer()->Fit(this);
    GetSizer()->SetSizeHints(this);
    Centre();
////@end AboutDlg creation
    return true;
}
开发者ID:Xangis,项目名称:QuickTileViewer,代码行数:19,代码来源:AboutDlg.cpp

示例4: _

bool AISTargetQueryDialog::Create( wxWindow* parent, wxWindowID id, const wxString& caption,
                                   const wxPoint& pos, const wxSize& size, long style )
{
    //    As a display optimization....
    //    if current color scheme is other than DAY,
    //    Then create the dialog ..WITHOUT.. borders and title bar.
    //    This way, any window decorations set by external themes, etc
    //    will not detract from night-vision

    long wstyle = AIS_TARGET_QUERY_STYLE;
    if( ( global_color_scheme != GLOBAL_COLOR_SCHEME_DAY )
            && ( global_color_scheme != GLOBAL_COLOR_SCHEME_RGB ) ) wstyle |= ( wxNO_BORDER );

    if( !wxDialog::Create( parent, id, caption, pos, size, wstyle ) ) return false;

    m_parent = parent;
    
    wxFont *dFont = FontMgr::Get().GetFont( _("AISTargetQuery") );
    int font_size = wxMax(8, dFont->GetPointSize());
    wxString face = dFont->GetFaceName();
#ifdef __WXGTK__
    face = _T("Monospace");
#endif
    m_basefont = FontMgr::Get().FindOrCreateFont( font_size, wxFONTFAMILY_MODERN,
                      wxFONTSTYLE_NORMAL, dFont->GetWeight(), false, face );

    SetFont( *m_basefont );
    m_adjustedFontSize = dFont->GetPointSize();
    m_control_font_size = dFont->GetPointSize();
    
    CreateControls();

    SetColorScheme( global_color_scheme );


    //Set the maximum size of the entire settings dialog
    wxSize sz = g_Platform->getDisplaySize();
    SetSizeHints( 50, 50, sz.x-20, sz.y-40 );
    
    if(!m_bautosize){
        Fit();          // Sets the horizontal size OK
        Layout(); 
        SetSize( -1, m_adjustedFontSize * 30);          // Estimated vertical size
    }

    return true;
}
开发者ID:registry,项目名称:OpenCPN,代码行数:47,代码来源:AISTargetQueryDialog.cpp

示例5: CreateControls

bool MainFrame::Create(wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style)
{
////@begin MainFrame creation
    wxFrame::Create( parent, id, caption, pos, size, style );

    CreateControls();
    SetIcon(GetIconResource(wxT("res/nwnx4_icon.xpm")));
////@end MainFrame creation

	m_logger = new wxLogTextCtrl(m_log);
	wxLog::SetActiveTarget(m_logger);
	wxLog::AddTraceMask(TRACE_NORMAL);
	wxLog::AddTraceMask(TRACE_VERBOSE);

	wxLogMessage(wxT("Running in GUI mode."));

	wxDateTime now = wxDateTime::Now();
	m_startedAt->AppendText(now.Format());

	controller = new NWNXController(m_config);

	m_CmdLine->AppendText(controller->parameters);
	m_PWEnabled->SetValue(controller->processWatchdog);
	m_GWEnabled->SetValue(controller->gamespyWatchdog);
    m_PWInterval->AppendText(wxT("1"));
	m_GWInterval->AppendText(wxString::Format(wxT("%d"), controller->gamespyInterval));
    m_GWRetries->AppendText(wxString::Format(wxT("%d"), controller->gamespyTolerance));

	m_BtnStop->Enable(false);

	// Create worker thread
	worker = new NWNXWorker(controller, this);
	if (worker->Create() != wxTHREAD_NO_ERROR)
	{
		wxLogError(wxT("Can't create worker thread!"));
		worker->Delete();
		worker = NULL;
	}
	else
	{
		worker->Run();
		m_BtnStart->Enable(false);
		worker->startServer();
	}

    return true;
}
开发者ID:NWNX,项目名称:nwnx4,代码行数:47,代码来源:mainframe.cpp

示例6: project

SaveSelectionDlg::SaveSelectionDlg(Project* project_s,
								   wxWindow* parent,
								   wxWindowID id,
								   const wxString& caption,
								   const wxPoint& pos,
								   const wxSize& size, long style )
: project(project_s), grid_base(project_s->GetGridBase()),
m_all_init(false), is_space_time(project_s->GetGridBase()->IsTimeVariant())
{
	SetParent(parent);
    CreateControls();
    Centre();
	InitTime();
	FillColIdMap();
	InitField();
	m_all_init = true;
}
开发者ID:gouchangjiang,项目名称:opengeoda,代码行数:17,代码来源:SaveSelectionDlg.cpp

示例7: SetExtraStyle

void mmCustomFieldListDialog::Create(wxWindow* parent)
{
    SetExtraStyle(GetExtraStyle()|wxWS_EX_BLOCK_EVENTS);
    long style = wxCAPTION | wxCLOSE_BOX | wxRESIZE_BORDER;

    wxString WindowTitle = wxString::Format(_("Personalize custom fields | %s"), m_RefType);
    if (!wxDialog::Create(parent, wxID_ANY, WindowTitle, wxDefaultPosition, wxDefaultSize, style))
        return;

    CreateControls();
    fillControls();
    GetSizer()->Fit(this);
    GetSizer()->SetSizeHints(this);
    fillControls();
    SetIcon(mmex::getProgramIcon());
    Centre();
}
开发者ID:vomikan,项目名称:moneymanagerex,代码行数:17,代码来源:customfieldlistdialog.cpp

示例8: SetExtraStyle

bool mmMainCurrencyDialog::Create(wxWindow* parent
    , wxWindowID id
    , const wxString& caption
    , const wxPoint& pos
    , const wxSize& size
    , long style)
{
    SetExtraStyle(GetExtraStyle()|wxWS_EX_BLOCK_EVENTS);
    wxDialog::Create(parent, id, caption, pos, size, style);

    CreateControls();
    SetIcon(mmex::getProgramIcon());
    fillControls();
    Centre();

    return TRUE;
}
开发者ID:Zorg2409,项目名称:moneymanagerex,代码行数:17,代码来源:maincurrencydialog.cpp

示例9: SetExtraStyle

bool mmCategDialog::Create(wxWindow* parent, wxWindowID id
    , const wxString& caption, const wxPoint& pos
    , const wxSize& size, long style)
{
    SetExtraStyle(GetExtraStyle() | wxWS_EX_BLOCK_EVENTS);
    wxDialog::Create(parent, id, caption, pos, size, style);

    CreateControls();
    fillControls();
    GetSizer()->Fit(this);
    GetSizer()->SetSizeHints(this);
    this->SetInitialSize();
    SetIcon(mmex::getProgramIcon());
    SetMinSize(wxSize(316, 316));
    Centre();
    return TRUE;
}
开发者ID:bacanhtai,项目名称:moneymanagerex,代码行数:17,代码来源:categdialog.cpp

示例10: SetExtraStyle

bool ShareTransactionDialog::Create(wxWindow* parent, wxWindowID id, const wxString& caption
    , const wxPoint& pos, const wxSize& size, long style)
{
    SetExtraStyle(GetExtraStyle()|wxWS_EX_BLOCK_EVENTS);
    wxDialog::Create(parent, id, caption, pos, size, style);

    CreateControls();
    GetSizer()->Fit(this);
    GetSizer()->SetSizeHints(this);

    SetIcon(mmex::getProgramIcon());

    DataToControls();

    Centre();
    return TRUE;
}
开发者ID:mek-x,项目名称:moneymanagerex,代码行数:17,代码来源:sharetransactiondialog.cpp

示例11: SetExtraStyle

/*---------------------------------------------------------------------------*/
bool wxSQLHistory::Create(wxWindow* parent, wxWindowID id,
                          const wxString& caption, const wxPoint& pos,
                          const wxSize& size, long style)
{
   SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
   wxDialog::Create(parent, id, caption, pos, size, style);

   CreateControls();
   SetIcon(wxGetApp().GetIcon(ID_ICO_SQLHISTO));

   if (GetSizer())
   {
      GetSizer()->SetSizeHints(this);
   }
   Centre();
   return true;
}
开发者ID:pr1n4ple,项目名称:wxSqlitePlus,代码行数:18,代码来源:sqlhistory.cpp

示例12: SetExtraStyle

ShipDesigner::ShipDesigner( wxWindow* parent)
		:m_ToDesign(TD_SHIPS)
		,m_ToView(TV_EXISTING)
		,m_ChoosenView(-1)
{
    SetExtraStyle(GetExtraStyle()|wxWS_EX_BLOCK_EVENTS);
    wxDialog::Create( parent, ID_SHIPDESIGNER, _("Ship & Starbase Designer")
				,wxDefaultPosition, wxSize(-1, -1)
				,wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX );

	CreateControls();
    if (GetSizer())
    {
        GetSizer()->SetSizeHints(this);
    }
    Centre();
}
开发者ID:Zardoz89,项目名称:freestars-code,代码行数:17,代码来源:shipdesigner.cpp

示例13: CreateControls

bool panTaskLogo::Create( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style )
{
////@begin panTaskLogo creation
    wxPanel::Create( parent, id, pos, size, style );

    CreateControls();
    if (GetSizer())
    {
        GetSizer()->SetSizeHints(this);
    }
    Centre();
////@end panTaskLogo creation

	ReadParam();
	m_isloadImage =false;
    return true;
}
开发者ID:dmccskylove,项目名称:src,代码行数:17,代码来源:pantasklogo.cpp

示例14: SetExtraStyle

bool SetOtherDialog::Create(wxWindow *parent,wxWindowID id,const wxString &caption,const wxPoint &pos,const wxSize &size,long style)
{
	SetExtraStyle(wxWS_EX_BLOCK_EVENTS | wxDIALOG_EX_CONTEXTHELP);

	if(!wxDialog::Create(parent,id,caption,pos,size,style)){
	  return false;
	}

	CreateControls();

	GetSizer()->Fit(this);
	GetSizer()->SetSizeHints(this);

	Center();

	return true;
}
开发者ID:GCY,项目名称:wxRovio,代码行数:17,代码来源:SetOtherDialog.cpp

示例15: CreateControls

/*
 * ColdfireUnlockerDialogue creator
 */
bool ColdfireUnlockerPanel::Create( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style )
{
//    SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
    wxPanel::Create(parent, id, pos, size, style);
    CreateControls();
    if (GetSizer()) {
        GetSizer()->SetSizeHints(this);
    }
    knownDevices.loadConfigFile();
    loadDeviceList();
//    flashEraseMethods.loadMethods();
    loadEraseMethodsList();

    versionStaticControl->SetLabel(_(PROGRAM_VERSION_STRING));
    targetSpeedTextControl->SetDecimalValue(8000);
    return true;
}
开发者ID:qiaozhou,项目名称:usbdm-applications,代码行数:20,代码来源:CFUnlockerPanel.cpp


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