git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74359
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxRichTextCaretTimer m_timer;
wxRichTextCtrl* m_richTextCtrl;
bool m_refreshEnabled;
wxRichTextCaretTimer m_timer;
wxRichTextCtrl* m_richTextCtrl;
bool m_refreshEnabled;
+ wxPen m_caretPen;
+ wxBrush m_caretBrush;
- if (!m_timer.IsRunning())
+ if (!m_timer.IsRunning() && GetBlinkTime() > 0)
m_timer.Start(GetBlinkTime());
Refresh();
m_timer.Start(GetBlinkTime());
Refresh();
void wxRichTextCaret::DoDraw(wxDC *dc)
{
void wxRichTextCaret::DoDraw(wxDC *dc)
{
- dc->SetPen( *wxBLACK_PEN );
-
- dc->SetBrush(*(m_hasFocus ? wxBLACK_BRUSH : wxTRANSPARENT_BRUSH));
- dc->SetPen(*wxBLACK_PEN);
+ dc->SetBrush((m_hasFocus ? m_caretBrush : *wxTRANSPARENT_BRUSH));
+ dc->SetPen(m_caretPen);