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

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

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

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

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

示例1: wxIcon

void wxDropSource::SetIcons(const wxIcon &iconCopy,                            const wxIcon &iconMove,                            const wxIcon &iconNone){    m_iconCopy = iconCopy;    m_iconMove = iconMove;    m_iconNone = iconNone;    if ( !m_iconCopy.Ok() )        m_iconCopy = wxIcon(page_xpm);    if ( !m_iconMove.Ok() )        m_iconMove = m_iconCopy;    if ( !m_iconNone.Ok() )        m_iconNone = m_iconCopy;}
开发者ID:jonntd,项目名称:dynamica,代码行数:15,


示例2: wxFrame

// My frame constructorMyFrame::MyFrame(wxFrame *frame, wxChar *title, int x, int y, int w, int h):  wxFrame(frame, wxID_ANY, title, wxPoint(x, y), wxSize(w, h)){    // Give it an icon#ifdef __WXMSW__    SetIcon(wxIcon(_T("mondrian")));#else    SetIcon(wxIcon(mondrian_xpm));#endif    // Make a menubar    wxMenu *file_menu = new wxMenu;    file_menu->Append(DYNAMIC_ABOUT, _T("&About"));    file_menu->Append(DYNAMIC_TEST, _T("&Test"));    file_menu->Append(DYNAMIC_QUIT, _T("E&xit"));    wxMenuBar *menu_bar = new wxMenuBar;    menu_bar->Append(file_menu, _T("&File"));    SetMenuBar(menu_bar);    // Make a panel with a message    wxPanel *panel = new wxPanel(this, wxID_ANY, wxPoint(0, 0), wxSize(400, 200), wxTAB_TRAVERSAL);    (void)new wxStaticText(panel, 311, _T("Hello!"), wxPoint(10, 10), wxDefaultSize, 0);    // You used to have to do some casting for param 4, but now there are type-safe handlers    Connect( DYNAMIC_QUIT,  wxID_ANY,                    wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MyFrame::OnQuit) );    Connect( DYNAMIC_TEST, wxID_ANY,                    wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MyFrame::OnTest) );    Connect( DYNAMIC_ABOUT, wxID_ANY,                    wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MyFrame::OnAbout) );    CreateStatusBar();    m_shadow.AddMethod( wxT("OnTest"), &cb_MyFrame_InitStatusbar );}
开发者ID:Bluehorn,项目名称:wxPython,代码行数:37,


示例3: SetExitOnFrameDelete

bool MyApp::OnInit(){	// make sure we exit properly on macosx	SetExitOnFrameDelete(true);	wxPoint pos(100, 100);	MyFrame *frame = new MyFrame(NULL, -1, "Motion Sensor Calibration Tool",		pos, wxSize(1120,760), wxDEFAULT_FRAME_STYLE);#ifdef WINDOWS	frame->SetIcon(wxIcon("MotionCal"));#endif	frame->Show( true );	return true;}
开发者ID:PaulStoffregen,项目名称:MotionCal,代码行数:15,


示例4: wxPanel

BundlePane::BundlePane(EditorFrame& parent, TmSyntaxHandler& syntaxHandler): wxPanel(&parent, wxID_ANY, wxPoint(-100,-100)), m_parentFrame(parent), m_imageList(16,16),  m_syntaxHandler(syntaxHandler), m_plistHandler(m_syntaxHandler.GetPListHandler()) {	// Build Imagelist	m_imageList.Add(wxIcon(tmbundle_xpm));	m_imageList.Add(wxIcon(tmcommand_xpm));	m_imageList.Add(wxIcon(tmsnippet_xpm));	m_imageList.Add(wxIcon(tmdragcmd_xpm));	m_imageList.Add(wxIcon(tmprefs_xpm));	m_imageList.Add(wxIcon(tmlanguage_xpm));	m_imageList.Add(wxIcon(tmsubmenu_xpm));	m_imageList.Add(wxIcon(tmunknown_xpm));	m_imageList.Add(wxIcon(tmseparator_xpm));	// Create the controls	m_bundleTree = new SortTreeCtrl(this, CTRL_BUNDLETREE, wxTR_LINES_AT_ROOT|wxTR_HAS_BUTTONS|wxTR_HIDE_ROOT|wxTR_EDIT_LABELS);	m_bundleTree->SetMinSize(wxSize(50,50)); // ensure resizeability	m_bundlePlus = new wxButton(this, CTRL_NEWBUNDLEITEM, wxT("+"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT);	m_bundleMinus = new wxButton(this, CTRL_DELBUNDLE, wxT("-"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT);	wxButton* bundleManage = new wxButton(this, CTRL_MANAGE, wxT("Manage.."));	m_bundleTree->SetImageList(&m_imageList);	// Set tooltips	m_bundlePlus->SetToolTip(_("Add new item"));	m_bundleMinus->SetToolTip(_("Delete item"));	m_bundleMinus->Disable();	// Create the layout	wxSizer* mainSizer = new wxBoxSizer(wxVERTICAL);		mainSizer->Add(m_bundleTree, 1, wxEXPAND);		wxSizer* buttonSizer = new wxBoxSizer(wxHORIZONTAL);			buttonSizer->Add(m_bundlePlus, 0, wxRIGHT, 2);			buttonSizer->Add(m_bundleMinus, 0, wxRIGHT, 2);			buttonSizer->AddStretchSpacer(1);			buttonSizer->Add(bundleManage, 0, wxALIGN_RIGHT);			mainSizer->Add(buttonSizer, 0, wxEXPAND|wxALL, 2);	SetSizer(mainSizer);	// Bundles will be loaded in idle time}
开发者ID:lenoval,项目名称:e,代码行数:41,


示例5: wxDELETE

void MerryFrame::ShowTrayIcon(const bool show){	if (!show)	{		wxDELETE(m_taskBarIcon);//		if (m_taskBarIcon)//			m_taskBarIcon->RemoveIcon();		return;	}	if (!m_taskBarIcon)		m_taskBarIcon = new MerryTaskBarIcon();	if (m_taskBarIcon->IsIconInstalled())		return;	m_taskBarIcon->SetIcon(wxIcon(MerryIcon_xpm), TASKBARICON_TIP);}
开发者ID:chenall,项目名称:ALMRun,代码行数:15,


示例6: wxImageList

void YardEmployee::CreateImageList(wxTreeCtrl * tree){ 	// Make an image list containing small icons    wxImageList *images = new wxImageList(16, 16, true);    wxIcon icons[1];	    icons[0] = wxIcon(worker_16x16_xpm);	    for ( size_t i = 0; i < WXSIZEOF(icons); i++ )    { 		images->Add(wxBitmap(icons[i]));    }    tree->AssignImageList(images);}
开发者ID:mentat,项目名称:YardSale,代码行数:16,


示例7: Create

PlayerFrame::PlayerFrame(wxWindow* parent,wxWindowID id,const wxPoint& pos,const wxSize& size){    //(*Initialize(PlayerFrame)    Create(parent, id, _("xPlayer"), wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE, _T("id"));    SetClientSize(wxDefaultSize);    Move(wxDefaultPosition);    Connect(wxID_ANY,wxEVT_CLOSE_WINDOW,(wxObjectEventFunction)&PlayerFrame::OnClose);    //*)    SetIcon(wxIcon(xlights_xpm));    //    //  Create and attach the sizer    //    wxFlexGridSizer* sizer = new wxFlexGridSizer(1);    this->SetSizer(sizer);    this->SetAutoLayout(true);    sizer->AddGrowableRow(0);    sizer->AddGrowableCol(0);    //    //  Create and attach the media control    //    MediaCtrl = new wxMediaCtrl();    wxString MediaBackend;#ifdef __WXMSW__    // this causes Windows to use latest installed Windows Media Player version    // On XP, users were getting WMP 6.4 without this    MediaBackend = wxMEDIABACKEND_WMP10;#endif    playbackSpeed = 1.0;    //  Make sure creation was successful    bool bOK = MediaCtrl->Create(this, wxID_MEDIACTRL, wxEmptyString,                                 wxDefaultPosition, wxDefaultSize, wxBORDER_NONE, MediaBackend);    wxASSERT_MSG(bOK, "Could not create media control!");    wxUnusedVar(bOK);    sizer->Add(MediaCtrl, 0, wxALIGN_CENTER_HORIZONTAL|wxALL|wxEXPAND, 0);    PlayAfterLoad=false;    Connect(wxID_MEDIACTRL, wxEVT_MEDIA_LOADED,            wxMediaEventHandler(PlayerFrame::OnMediaLoaded));}
开发者ID:rickcowan,项目名称:xLights,代码行数:47,


示例8: SetIcon

VAutoDialog::VAutoDialog (){	wxXmlResource::Get()->LoadDialog(this, NULL, "MainDialog");	SetIcon (wxIcon ("res/dslr.ico"));	m_DeviceText = XRCCTRL(*this, "DEVICE_TEXT", wxStaticText);	m_FindObject = XRCCTRL(*this, "ID_FIND_OBJECT", wxBitmapButton);	m_buttonOptions = XRCCTRL(*this, "ID_OPTIONS", wxBitmapButton);	m_buttonOpenPlan = XRCCTRL(*this, "ID_OPENPLAN", wxBitmapButton);	m_buttonDeletePlan = XRCCTRL(*this, "ID_DELETEPLAN", wxBitmapButton);	m_MoveButton = XRCCTRL(*this, "ID_MOVE", wxButton);	m_ShootButton = XRCCTRL(*this, "ID_SHOOT", wxButton);	m_AbortButton = XRCCTRL(*this, "ID_ABORT", wxButton);	m_AutoButton = XRCCTRL(*this, "ID_AUTO", wxButton);	m_SkipButton = XRCCTRL(*this, "ID_SKIP", wxButton);	m_StatusBar = XRCCTRL(*this, "ID_STATUS_BAR", wxStaticText);	m_StatusCoords = XRCCTRL(*this, "ID_STATUS_COORDS", wxStaticText);	m_ObjectName = XRCCTRL(*this, "ID_OBJNAME", wxTextCtrl);	m_DisplayName = XRCCTRL(*this, "ID_NAME", wxStaticText);	m_DisplayRa = XRCCTRL(*this, "ID_RA", wxStaticText);	m_DisplayDecl = XRCCTRL(*this, "ID_DECL", wxStaticText);	m_Duration = XRCCTRL(*this, "ID_DURATION", wxSpinCtrl);	m_FrameCount = XRCCTRL(*this, "ID_FRAMECOUNT", wxSpinCtrl);	m_PlanList = XRCCTRL(*this, "ID_PLAN_LIST", wxListCtrl);	wxSize s = m_PlanList->GetSize();	int sss = (s.GetWidth () - 24) / 2;	m_PlanList->InsertColumn (0, "", wxLIST_FORMAT_LEFT, 24);	m_PlanList->InsertColumn (1, _("Object name"), wxLIST_FORMAT_LEFT, sss);	m_PlanList->InsertColumn (2, _("Coords"), wxLIST_FORMAT_LEFT, sss);	m_PlanFile = XRCCTRL(*this, "ID_PLANFILE", wxStaticText);	wxImageList* imageList = new wxImageList (13, 13);	imageList->Add (wxBitmap (plan_ok_xpm));	imageList->Add (wxBitmap (plan_up_xpm));	imageList->Add (wxBitmap (plan_down_xpm));	imageList->Add (wxBitmap (plan_disabled_xpm));//	imageList->Add (wxBitmap (plan_moon_xpm));	m_PlanList->SetImageList (imageList, wxIMAGE_LIST_SMALL);}
开发者ID:kovihome,项目名称:VAuto,代码行数:47,


示例9: Menu

//Construtor da FrameMainFrame::MainFrame(const wxString& title, const wxPoint& pos, const wxSize& size)                 :wxFrame(NULL, wxID_ANY, title, pos, size){        //Cria
C++ wxIdleEventHandler函数代码示例
C++ wxGlobalDisplay函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。