View previous topic :: View next topic |
Author |
Message |
JosephE Junior Member

Joined: 01 Nov 2007 Posts: 21
|
Posted: Feb 22nd, 2011, 12:48am Post subject: Mouse Wheel |
|
|
I love making graphics applications in LB.
However, LB doesn't trap the average modern mouse's WM_MOUSEWHEEL message when I have a graphicbox with scrollbars, so it's inconvenient for the user to scroll like they would typically expect. So I'm wondering if this is something I could do with wmliberty? I don't really have much experience with it. I'm not exactly sure how I could trap the WM_MOUSEWHEEL message, and what exactly does the WM_MOUSEWHEEL message return to me?
Any tips in the right direction would be great. Also, is there a limit to how many messages I can trap with wmliberty? Can I have a different callback function for each message I trap?
I've been looking at these pages [if it's of any help]:
http://msdn.microsoft.com/en-us/library/ms645601
http://msdn.microsoft.com/en-us/library/ms645617
Thanks!
Joseph |
|
Back to top |
|
 |
Brent Site Admin
Joined: 01 Jul 2005 Posts: 790
|
Posted: Feb 23rd, 2011, 1:16am Post subject: Re: Mouse Wheel |
|
|
Hi Joseph,
Sorry for the slow response. Did you already check out the demo at Responding to the mouse scroll wheel?
As for multiple messages, you can do that about any way you want. However, it has been the experience of many that the more you add the less stable LB gets. _________________ Brent |
|
Back to top |
|
 |
JosephE Junior Member

Joined: 01 Nov 2007 Posts: 21
|
Posted: Feb 23rd, 2011, 4:07am Post subject: Re: Mouse Wheel |
|
|
Wow. Awesome. Didn't see that.
All my questions are answered. =D I can't believe you have all this just lying around lol.
I will certainly take advantage of that. After looking through those demos, I'm particularly impressed with the multi colored listbox as well.
Thanks,
Joseph |
|
Back to top |
|
 |
STPendl Full Member
Joined: 20 Aug 2007 Posts: 161 Location: Austria
|
Posted: Feb 23rd, 2011, 9:33am Post subject: Re: Mouse Wheel |
|
|
There seems to be a problem with the search feature of this forum, since searching for wm_mousewheel returns no hits, only searching for mouse wheel returns the demo. _________________ Stefan
Any code I post can be freely used, just give credit. |
|
Back to top |
|
 |
Brent Site Admin
Joined: 01 Jul 2005 Posts: 790
|
Posted: Feb 24th, 2011, 2:33am Post subject: Re: Mouse Wheel |
|
|
I also found this problem with the search. I tested this on other sites that use the same software. Apparently it is a bug I introduced when tweaking the code many years ago. I'll investigate and try to fix it soon. _________________ Brent |
|
Back to top |
|
 |
|