How to handle changes to a Slider bar by Keyboard
-
i have a slider bar and i have used onreleasedsliderbar event to handle its changes. but it is not fired when Keyboard is used to change the bar. How could i handle changes to Slider bar by Keyboard ?
-
i have a slider bar and i have used onreleasedsliderbar event to handle its changes. but it is not fired when Keyboard is used to change the bar. How could i handle changes to Slider bar by Keyboard ?
What compiler are you using? Is MFC involved?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
What compiler are you using? Is MFC involved?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
it is a visual c++ MFC project in Visual Studio .net 2003 IDE.
-
it is a visual c++ MFC project in Visual Studio .net 2003 IDE.
Ok, what message are you responding to?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
Ok, what message are you responding to?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
just OnNMReleasedCaptureSlider from slider events, but also OnMouseMove but not KeyStroke events.
-
just OnNMReleasedCaptureSlider from slider events, but also OnMouseMove but not KeyStroke events.
I want to handle changes to a slider bar which are made by a keyboard!
-
just OnNMReleasedCaptureSlider from slider events, but also OnMouseMove but not KeyStroke events.
Why not use Spy++ to see which of the
NM_xxx
notification messages are being sent (when the keyboard is used with that control)?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
Why not use Spy++ to see which of the
NM_xxx
notification messages are being sent (when the keyboard is used with that control)?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
I did use Spy, but there are just Key_Down and Key_Up Events. Would you think there is another way except handle Key_Down or Key_Up events?
-
i have a slider bar and i have used onreleasedsliderbar event to handle its changes. but it is not fired when Keyboard is used to change the bar. How could i handle changes to Slider bar by Keyboard ?
Did a quick search on MSDN, and found the following article: Trackbar Controls[^] Scrolling down, it tells you about the notification messages. It behaves just like a scroll bar, and sends WM_HSCROLL, or WM_VSCROLL as appropriate. You will want to use WM_xSCROLL / TB_ENDTRACK. It is sent when you use both keyboard and mouse. I hope this puts you on the right path, Iain.