update the caret bitmap size in EVT_SIZE (patch 990361)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28483 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -59,6 +59,7 @@ protected:
|
|||||||
virtual void DoShow();
|
virtual void DoShow();
|
||||||
virtual void DoHide();
|
virtual void DoHide();
|
||||||
virtual void DoMove();
|
virtual void DoMove();
|
||||||
|
virtual void DoSize();
|
||||||
|
|
||||||
// blink the caret once
|
// blink the caret once
|
||||||
void Blink();
|
void Blink();
|
||||||
|
@@ -150,6 +150,23 @@ void wxCaret::DoMove()
|
|||||||
//else: will be shown at the correct location when it is shown
|
//else: will be shown at the correct location when it is shown
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wxCaret::DoSize()
|
||||||
|
{
|
||||||
|
int countVisible = m_countVisible;
|
||||||
|
if (countVisible > 0)
|
||||||
|
{
|
||||||
|
m_countVisible = 0;
|
||||||
|
DoHide();
|
||||||
|
}
|
||||||
|
// Change bitmap size
|
||||||
|
m_bmpUnderCaret = wxBitmap(m_width, m_height);
|
||||||
|
if (countVisible > 0)
|
||||||
|
{
|
||||||
|
m_countVisible = countVisible;
|
||||||
|
DoShow();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// handling the focus
|
// handling the focus
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user