Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
frmSearch: Added window icon
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Wed, 18 Jan 2017 00:09:34 +0000 (00:09 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Wed, 18 Jan 2017 00:09:34 +0000 (00:09 +0000)
source/bitmaps/bigimgs/searchicon.png [new file with mode: 0644]
source/search/frmSearch.cpp
source/search/frmSearch.h

diff --git a/source/bitmaps/bigimgs/searchicon.png b/source/bitmaps/bigimgs/searchicon.png
new file mode 100644 (file)
index 0000000..ebf2742
Binary files /dev/null and b/source/bitmaps/bigimgs/searchicon.png differ
index 3ef2a0d..b2d1ac3 100644 (file)
@@ -1,6 +1,6 @@
 // frmSearch.cpp - Search form.
 //
-// (c) 2012-2015 Xestia Software Development.
+// (c) 2012-2017 Xestia Software Development.
 //
 // This file is part of Xestia Address Book.
 //
@@ -59,6 +59,15 @@ frmSearch::frmSearch( wxWindow* parent )
 frmSearchADT( parent )
 {
        
+       // Setup the application icon.
+       
+       wxMemoryInputStream istream(bigimgs_searchicon_png, sizeof(bigimgs_searchicon_png));
+       wxImage bigimgs_searchiconi(istream, wxBITMAP_TYPE_PNG);
+       wxBitmap searchiconbmp(bigimgs_searchiconi, -1);    
+       wxIcon searchicon;
+       searchicon.CopyFromBitmap(searchiconbmp);
+       this->SetIcon(searchicon);
+       
        // Setup the search window.
        
        XABSearchPanel *InitPanel = new XABSearchPanel( tabSearch );
index 63abb01..088818f 100644 (file)
@@ -1,6 +1,6 @@
 // frmSearch.h - Search form header.
 //
-// (c) 2012-2015 Xestia Software Development.
+// (c) 2012-2017 Xestia Software Development.
 //
 // This file is part of Xestia Address Book.
 //
@@ -28,6 +28,7 @@ Subclass of frmSearchADT, which is generated by wxFormBuilder.
 #include "../vcard/vcard.h"
 #include "../widgets/XABContactMenu.h"
 #include "XABSearchPanel.h"
+#include "../bitmaps.h"
 
 #include <map>
 #include <wx/fs_mem.h>
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy