mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-02-03 09:44:26 -05:00
Fix for windows 7 and below requiring focus for mouse wheel.
This commit is contained in:
parent
27ce295918
commit
bd3b9ac921
@ -163,6 +163,7 @@ void MeterCanvas::OnMouseEnterWindow(wxMouseEvent& event) {
|
||||
InteractiveCanvas::mouseTracker.OnMouseEnterWindow(event);
|
||||
SetCursor(wxCURSOR_CROSS);
|
||||
Refresh();
|
||||
this->SetFocus();
|
||||
}
|
||||
|
||||
void MeterCanvas::setHelpTip(std::string tip) {
|
||||
|
@ -259,6 +259,9 @@ void SpectrumCanvas::OnMouseReleased(wxMouseEvent& event) {
|
||||
void SpectrumCanvas::OnMouseEnterWindow(wxMouseEvent& event) {
|
||||
InteractiveCanvas::OnMouseEnterWindow(event);
|
||||
SetCursor(wxCURSOR_SIZEWE);
|
||||
if (waterfallCanvas) {
|
||||
waterfallCanvas->SetFocus();
|
||||
}
|
||||
}
|
||||
|
||||
void SpectrumCanvas::OnMouseLeftWindow(wxMouseEvent& event) {
|
||||
|
@ -410,6 +410,7 @@ void TuningCanvas::OnMouseEnterWindow(wxMouseEvent& event) {
|
||||
hoverIndex = 0;
|
||||
hoverState = TUNING_HOVER_NONE;
|
||||
lastPPM = currentPPM = wxGetApp().getPPM();
|
||||
this->SetFocus();
|
||||
}
|
||||
|
||||
void TuningCanvas::setHelpTip(std::string tip) {
|
||||
|
@ -852,6 +852,7 @@ void WaterfallCanvas::OnMouseLeftWindow(wxMouseEvent& event) {
|
||||
void WaterfallCanvas::OnMouseEnterWindow(wxMouseEvent& event) {
|
||||
InteractiveCanvas::OnMouseEnterWindow(event);
|
||||
SetCursor(wxCURSOR_CROSS);
|
||||
this->SetFocus();
|
||||
}
|
||||
|
||||
void WaterfallCanvas::OnMouseRightDown(wxMouseEvent& event) {
|
||||
|
Loading…
Reference in New Issue
Block a user