Menu

#12 Drop down arrow can get stuck in 'hover' state. fix supplied

open
nobody
None
5
2008-01-29
2008-01-29
Anonymous
No

The drop down arrow can get stuck in the 'hover state' after the mouse leaves the window because it is not redrawn.

Its simple to fix:

svn diff:
Index: wxFlatNotebook.cpp
===================================================================
--- wxFlatNotebook.cpp (revision 42)
+++ wxFlatNotebook.cpp (working copy)
@@ -1596,6 +1596,7 @@
render->DrawX(this, dc);
render->DrawLeftArrow(this, dc);
render->DrawRightArrow(this, dc);
+ render->DrawDropDownArrow(this, dc);
if(GetSelection() != -1 && IsTabVisible((size_t)GetSelection()))
{
render->DrawTabX(this, dc, m_pagesInfoVec[GetSelection()].GetXRect(), GetSelection(), m_nTabXButtonStatus);

Discussion