mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-09-28 16:16:58 -04: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);
|
InteractiveCanvas::mouseTracker.OnMouseEnterWindow(event);
|
||||||
SetCursor(wxCURSOR_CROSS);
|
SetCursor(wxCURSOR_CROSS);
|
||||||
Refresh();
|
Refresh();
|
||||||
|
this->SetFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MeterCanvas::setHelpTip(std::string tip) {
|
void MeterCanvas::setHelpTip(std::string tip) {
|
||||||
|
@ -259,6 +259,9 @@ void SpectrumCanvas::OnMouseReleased(wxMouseEvent& event) {
|
|||||||
void SpectrumCanvas::OnMouseEnterWindow(wxMouseEvent& event) {
|
void SpectrumCanvas::OnMouseEnterWindow(wxMouseEvent& event) {
|
||||||
InteractiveCanvas::OnMouseEnterWindow(event);
|
InteractiveCanvas::OnMouseEnterWindow(event);
|
||||||
SetCursor(wxCURSOR_SIZEWE);
|
SetCursor(wxCURSOR_SIZEWE);
|
||||||
|
if (waterfallCanvas) {
|
||||||
|
waterfallCanvas->SetFocus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SpectrumCanvas::OnMouseLeftWindow(wxMouseEvent& event) {
|
void SpectrumCanvas::OnMouseLeftWindow(wxMouseEvent& event) {
|
||||||
|
@ -410,6 +410,7 @@ void TuningCanvas::OnMouseEnterWindow(wxMouseEvent& event) {
|
|||||||
hoverIndex = 0;
|
hoverIndex = 0;
|
||||||
hoverState = TUNING_HOVER_NONE;
|
hoverState = TUNING_HOVER_NONE;
|
||||||
lastPPM = currentPPM = wxGetApp().getPPM();
|
lastPPM = currentPPM = wxGetApp().getPPM();
|
||||||
|
this->SetFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
void TuningCanvas::setHelpTip(std::string tip) {
|
void TuningCanvas::setHelpTip(std::string tip) {
|
||||||
|
@ -852,6 +852,7 @@ void WaterfallCanvas::OnMouseLeftWindow(wxMouseEvent& event) {
|
|||||||
void WaterfallCanvas::OnMouseEnterWindow(wxMouseEvent& event) {
|
void WaterfallCanvas::OnMouseEnterWindow(wxMouseEvent& event) {
|
||||||
InteractiveCanvas::OnMouseEnterWindow(event);
|
InteractiveCanvas::OnMouseEnterWindow(event);
|
||||||
SetCursor(wxCURSOR_CROSS);
|
SetCursor(wxCURSOR_CROSS);
|
||||||
|
this->SetFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
void WaterfallCanvas::OnMouseRightDown(wxMouseEvent& event) {
|
void WaterfallCanvas::OnMouseRightDown(wxMouseEvent& event) {
|
||||||
|
Loading…
Reference in New Issue
Block a user