/***** Implementation for class wxToolWindow *****/
-IMPLEMENT_DYNAMIC_CLASS( wxToolWindow, wxWindow )
+IMPLEMENT_DYNAMIC_CLASS( wxToolWindow, wxFrame)
-BEGIN_EVENT_TABLE( wxToolWindow, wxWindow )
+BEGIN_EVENT_TABLE( wxToolWindow, wxFrame )
EVT_PAINT ( wxToolWindow::OnPaint )
EVT_MOTION ( wxToolWindow::OnMotion )
mTitleFont( 8, wxSWISS, wxNORMAL, wxNORMAL ),
#else
// just to simulate MS-Dev style
- mTitleFont( 8, wxSWISS, wxNORMAL, wxNORMAL, FALSE, "MS Sans Serif" ),
+ mTitleFont( 8, wxSWISS, wxNORMAL, wxNORMAL, FALSE, wxT("MS Sans Serif") ),
#endif
mTitleHeight ( 16 ),
void wxToolWindow::SetHintCursor( int type )
{
- if ( mResizeStarted ) return;
+ if ( mResizeStarted )
+ return;
if ( type == HITS_WND_NOTHING || type == HITS_WND_CLIENT )
{
// the cursor is out of window - reset to arrow
- if ( mMouseCaptured && !mResizeStarted )
+ if ( mMouseCaptured )
{
ReleaseMouse();
mMouseCaptured = FALSE;
}
- if ( mCursorType == HITS_WND_NOTHING && !mResizeStarted )
-
- SetCursor( wxCURSOR_ARROW );
+ SetCursor( wxCURSOR_ARROW );
mCursorType = type;
}
else
{
- wxFAIL( _T("what did the cursor hit?") );
+ wxFAIL_MSG( _T("what did the cursor hit?") );
}
rect.x = left;
{
DrawHintRect( mPrevHintRect );
DrawHintRect( finalRect );
+
+ ::wxLogTrace(wxT("%d,%d / %d,%d\n"), finalRect.x, finalRect.y, finalRect.width, finalRect.height);
}
mPrevHintRect = finalRect;
void cbCloseBox::Draw( wxDC& dc )
{
-#ifdef __WXGTK__
+#if defined(__WXGTK__) || defined(__WXX11__)
cbMiniButton::Draw( dc );