}
-void cbBarHintsPlugin::Draw3DBox( wxDC& dc, const wxPoint& pos, bool pressed )
+void cbBarHintsPlugin::Draw3DBox( wxDC& WXUNUSED(dc), const wxPoint& WXUNUSED(pos), bool WXUNUSED(pressed) )
{
}
-void cbBarHintsPlugin::DrawCloseBox( wxDC& dc, const wxPoint& pos, bool pressed )
+void cbBarHintsPlugin::DrawCloseBox( wxDC& WXUNUSED(dc), const wxPoint& WXUNUSED(pos), bool WXUNUSED(pressed) )
{
}
-void cbBarHintsPlugin::DrawCollapseBox( wxDC& dc, const wxPoint& pos,
- bool atLeft, bool disabled, bool pressed )
+void cbBarHintsPlugin::DrawCollapseBox( wxDC& WXUNUSED(dc), const wxPoint& WXUNUSED(pos),
+ bool WXUNUSED(atLeft), bool WXUNUSED(disabled), bool WXUNUSED(pressed) )
{
}
}
void cbBarHintsPlugin::DoDrawHint( wxDC& dc, wxRect& rect,
- int pos, int boxOfs, int grooveOfs,
+ int pos, int WXUNUSED(boxOfs), int grooveOfs,
bool isFixed )
{
if ( !isFixed )
{
int i;
for ( i = 0; i != BOXES_IN_HINT; ++i )
+ {
+ mBoxes[i]->mPressed = FALSE;
+ mBoxes[i]->mWasClicked = FALSE;
+ }
+ for ( i = 0; i != BOXES_IN_HINT; ++i )
{
mBoxes[i]->OnLeftDown( inFrame );
GetHintsLayout( mpClickedBar->mBoundsInParent, *mpClickedBar, boxOfs, grooveOfs, pos );
- int result = HitTestHints( *mpClickedBar, event.mPos );
+ HitTestHints( *mpClickedBar, event.mPos );
int i;
for ( i = 0; i != BOXES_IN_HINT; ++i )
if ( i == 0 )
{
mpLayout->SetBarState( mpClickedBar, wxCBAR_HIDDEN, TRUE );
+ // Notify bar child window of close event:
+ if(mpClickedBar->mpBarWnd!=NULL)
+ mpClickedBar->mpBarWnd->Close();
}
else
{