// headers
// ----------------------------------------------------------------------------
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "caret.h"
#endif
void wxCaret::InitGeneric()
{
m_hasFocus = TRUE;
- m_blinkedOut = FALSE;
+ m_blinkedOut = TRUE;
m_xOld =
m_yOld = -1;
if ( blinkTime )
m_timer.Start(blinkTime);
- m_blinkedOut = TRUE;
- Blink();
+ if ( m_blinkedOut )
+ Blink();
}
void wxCaret::DoHide()
{
m_hasFocus = TRUE;
- Refresh();
+ if ( IsVisible() )
+ Refresh();
}
void wxCaret::OnKillFocus()