Implemented blinking icon to highlight a searched field

This commit is contained in:
YuSanka 2020-04-07 12:09:58 +02:00
parent 2317437ede
commit 752083cbe6
6 changed files with 59 additions and 18 deletions

View file

@ -195,23 +195,6 @@ public:
sizer->Add(m_grid_sizer, 0, wxEXPAND | wxALL, wxOSX||!staticbox ? 0: 5);
#endif /* __WXGTK__ */
if (stb)
stb->Bind(wxEVT_PAINT, [this](wxPaintEvent& evt) {
evt.Skip();
const wxSize sz = stb->GetSize();
wxPaintDC dc(stb);
const wxPen pen = wxPen(wxColour(250, 10, 10), 2, wxPENSTYLE_SOLID);
dc.SetPen(pen);
dc.SetBrush(wxBrush(wxColour(250, 0, 0), wxBRUSHSTYLE_SOLID));
dc.DrawRectangle(25, 25, sz.x - 25, sz.y - 25);
/*
HDC hdc = GetHdcOf(dc);
RECT dim = { 5, 5, sz.x - 5, sz.y - 5 };
::FillRect(hdc, &dim, GetHbrushOf(wxBrush(wxColour( 0, 250,0), wxBRUSHSTYLE_SOLID)));
*/
});
}
wxGridSizer* get_grid_sizer() { return m_grid_sizer; }