Hi,
I've just realized that (in wxplotctrl's sample) that there is no way to set wxCURSOR_CROSS cursor via any combination of keys.
By inspecting ProcessAreaEVT_KEY_UP and ProcessAreaEVT_KEY_DOWN fns, it's evident that wxPLOTCTRL_MOUSE_ZOOM is the default, while it shouldn't be the case. There has to be a way to roll back the cursor to wxCURSOR_CROSS type. Although I'm sure that this is a bug, maybe I'm missing the design concept. Any thoughts?
Thanx in advance,
fantaz
Logged In: YES
user_id=345194
Originator: NO
It's not so much a design issue as that I've run out of keys to use to switch between the modes and I thought that zooming was the most commonly used function.
You can see the modes in the function.
wxPlotCtrl::ProcessAreaEVT_KEY_DOWN
Note that the Alt key is used in KDE for moving the window.
You can freely override them to do what you want, for example I've implemented some toggle buttons in a toolbar to switch between them. I respond to the wxEVT_PLOTCTRL_MOUSE_FUNC_CHANGED events to toggle the buttons when the user presses shift/ctrl/alt.
-John
Logged In: YES
user_id=952458
Originator: YES
Yeah, it's a nightmare. It's just that I got confused that initially there was a wxCURSOR_CROSS and then it wasn't.
best regards,
fantaz
Fixed in CVS.