PDA

View Full Version : is it possible to disable mouse wheel


GoOgLe
03-20-2009, 04:27 AM
is it possible to disable mouse wheel in combobox ?

abnrange
03-20-2009, 07:24 AM
try this.....

HKEY_CURRENT_USER\Control Panel\Desktop

Look at the bottom of the list for "Wheel Scroll Lines" Right click and select modify.

Enter the value "0" thats a ZERO, and then close regedit. Restart your computer and the scroll wheel should be disabled.

GoOgLe
03-23-2009, 03:55 AM
no i have to do it on runtime and dont have to restart pc... maybe there is dll or something ?

abnrange
03-23-2009, 08:58 AM
See attached - It may help...

GoOgLe
03-23-2009, 09:01 AM
thanks for example abnrange

but this doesnt do what i want !!!

GoOgLe
03-25-2009, 05:57 AM
what is wrong with this code ?

Page On Show Code:
Page.StartTimer(100);


Page On Timer Code:
result = Page.GetFocus();
if result == "ComboBox1" then
DLL.CallFunction("AutoPlay\\Docs\\DisableMouse.dll", "DisableMouseWheel", 1, DLL_RETURN_TYPE_LONG, DLL_CALL_CDECL);
else
DLL.CallFunction("AutoPlay\\Docs\\DisableMouse.dll", "DisableMouseWheel", 0, DLL_RETURN_TYPE_LONG, DLL_CALL_CDECL);
end

GoOgLe
03-26-2009, 06:31 AM
any help please !!!

GoOgLe
03-30-2009, 10:54 AM
i really really need help with that !!!

here is the file i have been trying to disable mouse wheel... i only want to disable if page focus is in combobox and enable when focus is not in combobox !!!

thanks

GoOgLe
03-31-2009, 02:05 PM
help please :o

also just let me know if not possible

GoOgLe
04-01-2009, 12:41 PM
result = Page.GetFocus();
if result == "ComboBox1" then
DLL.CallFunction("AutoPlay\\Docs\\DisableMouse.dll", "DisableMouseWheel", 1, DLL_RETURN_TYPE_LONG, DLL_CALL_CDECL);
else
DLL.CallFunction("AutoPlay\\Docs\\DisableMouse.dll", "DisableMouseWheel", 0, DLL_RETURN_TYPE_LONG, DLL_CALL_CDECL);
end

Imagine Programming
04-01-2009, 01:42 PM
As I have sayd before, don't message me about existing threads!

mwreyf1
04-01-2009, 03:20 PM
Please DO NOT private message me regarding open forum threads.

If I or someone else see's your post and can help then they will.

longedge
04-01-2009, 03:44 PM
please do not private message me regarding open forum threads.

It's not only me who is irritated then.

mwreyf1
04-01-2009, 03:54 PM
No your not.

DaSoulRed is also a big PM abuser.

I want to be able to get private messages but it would be nice to have a BLOCK list as well.

Imagine Programming
04-01-2009, 06:17 PM
No your not.

DaSoulRed is also a big PM abuser.

I want to be able to get private messages but it would be nice to have a BLOCK list as well.

Agreed. It's very annoying

Worm
04-02-2009, 08:27 AM
Okay... here is a really dirty way to do this. You'll have to play with it to see if it meets your needs. No DLL's, pure AMS and a little trickery. You'll be able to use the wheel while inside the combo, but when you are out of the combo, the focus is shifted to a hidden input box, and the combo is set to the last know selected value in the On Focus of the input. Like I said, it's dirty, and it may need to be cleaned up a bit to meet your needs.

Worm
04-02-2009, 08:37 AM
[SteppingOnSoapbox]
As for PM'ing for open topics. Desperate times call for desperate measures. I'm not saying that everyone should PM forum members for help on a open topic, I *am* saying that replying to the PM with the same message you posted to the forum would have been as effective. Ranting inside the post only makes for garbled posts, and a seemingly unfriendly community to a newbie. Where's the positive in that?
[/SteppingDownSoapBox]

longedge
04-02-2009, 09:37 AM
[SteppingOnSoapbox]
As for PM'ing for open topics. Desperate times call for desperate measures. I'm not saying that everyone should PM forum members for help on a open topic, I *am* saying that replying to the PM with the same message you posted to the forum would have been as effective. Ranting inside the post only makes for garbled posts, and a seemingly unfriendly community to a newbie. Where's the positive in that?
[/SteppingDownSoapBox]

I'm sure you're right Worm. I'm all out of positive at the moment and have felt for a while that I'm not contributing in any helpful way. Some self-evaluation tells me that I get irritated too easily and I need to get out of the habit of spending so much time in front of a computer.

GoOgLe
04-02-2009, 10:34 AM
thanks alot Worm :yes

very good example

just a small thing, when i make combo editable, it scrools to first row !!! why is that ?

example attached

Worm
04-02-2009, 10:54 AM
try this instead.

GoOgLe
04-02-2009, 11:05 AM
thanks alot for ur gret help Worm really

but it is giving error !!!

also i wonder why i cant use sside's dll

jackdaniels
04-02-2009, 11:14 AM
It is possible Google

Here you go ;)

Enjoy it

Worm
04-02-2009, 11:20 AM
I don't get that error, how are you getting it...

Jacks solutions seems to work, maybe a better route too.

GoOgLe
04-02-2009, 11:44 AM
yes Jack Daniels example is very good but i need to disable mouse wheel if combobox has the focus !!! this example only disables when mouse is over combobox !!!

how can i make it with page focus ???

mwreyf1
04-03-2009, 09:28 AM
Worm, it is rude for someone to continually PM you even after requesting that they not do so.

Based on your post I think it would be safe to say you have no preoblem with me forwarding all unwanted future private messages I receive to you.

[Stepping Down]

GoOgLe
04-03-2009, 09:52 AM
Worm, it is rude for someone to continually PM you even after requesting that they not do so.

Based on your post I think it would be safe to say you have no preoblem with me forwarding all unwanted future private messages I receive to you.

[Stepping Down]


@mwreyf1

it is not the topic to write something not even about problem, if u want to say something to Worm then pm him... and if u will not help, dont write under this topic again !!!

Worm
04-03-2009, 09:57 AM
If you requested that they don't, then yes, it is rude. I never said it wasn't. I simply said that letting them know via a PM seems more appropriate. We all have differnt opinions, and I'm not saying that *mine* is the right one. More so, I was simply sharing my opinion.

These forums have been a home for me for a long time. I'd say I have a sweet spot for them and AMS. If my opinion offended anyone, please accept my apologies.

Go ahead and forward all the PMs ya want, chances are I've already got it too
I'd glady put the number of PM's I receive up against anyones on this forum. Receiving a PM does not lead to an obligation to answer. Click the delete button.

Worm
04-03-2009, 09:59 AM
Not cool! Don't stir the pot...

Don't preach etiquette if you can't follow it :)

Suddenly, I feel like the forum police. Quick... somebody get me a billy-club

@mwreyf1

it is not the topic to write something not even about problem, if u want to say something to Worm then pm him... and if u will not help, dont write under this topic again !!!

holtgrewe
04-03-2009, 11:20 AM
This post is getting too serious.

Here is the proper way to disable the mouse wheel.

Worm
04-03-2009, 11:22 AM
This post is getting too serious.

Here is the proper way to disable the mouse wheel.

Not a billy-club, but I'll take it :yes

ButtonMaker
04-03-2009, 11:38 AM
really after all this serious coversations I really wonder if someone will find the answer for question :lol because from the examples it seems like it is not something easy...

stop war enjoy life :D

reteset
04-03-2009, 11:43 AM
This post is getting too serious.

Here is the proper way to disable the mouse wheel.

ehuhehehe :D:D

right !! ,
and , you can use a sledgehammer to disable left and right mouse buttons at once :lol

longedge
04-03-2009, 12:47 PM
Yes it's all getting too serious. PM's disabled and I'm bowing out of the forum for now.

Worm
04-03-2009, 02:43 PM
So, lets get back to it.

Google, can you tell me what you did to get the error in the app I uploaded? I can't reproduce, therefore, cannot fix it.

GoOgLe
04-03-2009, 02:48 PM
ok here is the error i get... just click inside the combo but dont scroll mouse whell and scroll mouse wheel outside the combo...


also i want to block mouse wheel if focus is in combobox and unblock whell when focus is not in combo

Worm
04-03-2009, 02:58 PM
Well, the solution I provided will never do that as you'd either need to disable the mouse or subclass the combo box. The solution I provided would only make it so the scroll didn't work if the mouse wasn't over the combobox.

You might look into jackdaniels solution then.

GoOgLe
04-03-2009, 03:01 PM
yes but jack's solution doesnt work with page focus...
i have this code on timer but it doesnt seem to work !!!
timer code:
result = Page.GetFocus();
if result == ("ComboBox1") then
DLL.CallFunction("AutoPlay\\Docs\\DisableMouse.dll", "DisableMouseWheel", 1, DLL_RETURN_TYPE_LONG, DLL_CALL_CDECL);
else
DLL.CallFunction("AutoPlay\\Docs\\DisableMouse.dll", "DisableMouseWheel", 0, DLL_RETURN_TYPE_LONG, DLL_CALL_CDECL);
end

reteset
04-06-2009, 08:01 AM
a combobox has a edit field in it. left side of drop-down button
if you do not use edit feature of combobox

if you disable edit field of combobox the mouse wheel wont
work on it ,if mouse-wheel event does not captured by combobox itself

FindWindowEx() and EnableWindow() Windows API functions may help on this

just an idea

GoOgLe
04-06-2009, 08:41 AM
do i need ur winapi plugin for that ??

can u show what u mean please ???

a combobox has a edit field in it. left side of drop-down button
if you do not use edit feature of combobox

if you disable edit field of combobox the mouse wheel wont
work on it ,if mouse-wheel event does not captured by combobox itself

FindWindowEx() and EnableWindow() Windows API functions may help on this

just an idea

ButtonMaker
07-07-2009, 05:01 AM
did anyone found a solution for that, i was wondering if comboboxex would work for it ???