I want to implement a 'zoom' feature in a TRichEdit, so that I can shrink or
grow the text by using the customary "Control key plus mouse wheel".
I guess it must be easy but at the moment I've got a mental block and am
completely stumped. I don't know how to detect the mouse wheel rolling, nor
how to test the state of the Ctrl key. Could anyone advise?
Thanks,
SteveT
> I don't know how to detect the mouse wheel rolling
Most controls, including TRichEdit, have published OnMouseWheel... events
for that.
> nor how to test the state of the Ctrl key.
Look at the Win32 API GetKeyState() and GetAsyncKeyState() functions.
Gambit
> Look at the Win32 API GetKeyState() and GetAsyncKeyState() functions.
Ah, thank you, Gambit/Remy! That should get me started.
Thanks again.
SteveT