X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fsearch%2FfrmSearch.cpp;h=b2d1ac376a7e7eee9de958f30312c102b31d996d;hb=d078d1fbc762fbb62bd08fe80dfe726feb078543;hp=9e4d8aa6a0622cf705b0f5a9faac4f3172c5bbcc;hpb=9802970e8be1fe9511ad9a9d0eb9ffe8d2cfea41;p=xestiaab%2F.git diff --git a/source/search/frmSearch.cpp b/source/search/frmSearch.cpp index 9e4d8aa..b2d1ac3 100644 --- a/source/search/frmSearch.cpp +++ b/source/search/frmSearch.cpp @@ -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 ); @@ -232,6 +241,15 @@ void frmSearch::ResetContacts( wxCommandEvent& event ) } + // Clear the status bar. + + wxCommandEvent statusResetEvent (SE_SBUPDATE); + + wxString *statusReset = new wxString(wxT("")); + + statusResetEvent.SetClientData(statusReset); + wxPostEvent(this, statusResetEvent); + // Add a search settings with the default things. ScrollGen = 0;