when activating the cross hair cursor in the musrview canvas, enable the event status bar as well. This allows the user to see exactly where the cursor is. This is for instance helpful for Fourier spectra.
This commit is contained in:
@ -1142,10 +1142,13 @@ void PMusrCanvas::HandleCmdKey(Int_t event, Int_t x, Int_t y, TObject *selected)
|
|||||||
}
|
}
|
||||||
} else if (x == 'c') {
|
} else if (x == 'c') {
|
||||||
Int_t state = fDataTheoryPad->GetCrosshair();
|
Int_t state = fDataTheoryPad->GetCrosshair();
|
||||||
if (state == 0)
|
if (state == 0) {
|
||||||
|
fMainCanvas->ToggleEventStatus();
|
||||||
fDataTheoryPad->SetCrosshair(2);
|
fDataTheoryPad->SetCrosshair(2);
|
||||||
else
|
} else {
|
||||||
|
fMainCanvas->ToggleEventStatus();
|
||||||
fDataTheoryPad->SetCrosshair(0);
|
fDataTheoryPad->SetCrosshair(0);
|
||||||
|
}
|
||||||
fMainCanvas->Update();
|
fMainCanvas->Update();
|
||||||
} else {
|
} else {
|
||||||
fMainCanvas->Update();
|
fMainCanvas->Update();
|
||||||
|
Reference in New Issue
Block a user