mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-04 15:50:10 +01:00
Do not allow resizer to accept focus.
This commit is contained in:
@@ -66,6 +66,9 @@ public:
|
|||||||
ToolBarResizer(ToolBar *mBar);
|
ToolBarResizer(ToolBar *mBar);
|
||||||
virtual ~ToolBarResizer();
|
virtual ~ToolBarResizer();
|
||||||
|
|
||||||
|
// We don't need or want to accept focus.
|
||||||
|
bool AcceptsFocus() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void OnErase(wxEraseEvent & event);
|
void OnErase(wxEraseEvent & event);
|
||||||
void OnPaint(wxPaintEvent & event);
|
void OnPaint(wxPaintEvent & event);
|
||||||
@@ -107,6 +110,11 @@ ToolBarResizer::~ToolBarResizer()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool ToolBarResizer::AcceptsFocus() const
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Handle background erasure
|
// Handle background erasure
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user