Click here to Skip to main content
15,891,184 members
Home / Discussions / C#
   

C#

 
GeneralRe: Hello Friends Help Needed for My Project [Automatic Login System] Pin
DaveyM694-Jun-11 23:03
professionalDaveyM694-Jun-11 23:03 
GeneralRe: Hello Friends Help Needed for My Project [Automatic Login System] Pin
hackerzpark6-Jun-11 6:16
hackerzpark6-Jun-11 6:16 
GeneralRe: Hello Friends Help Needed for My Project [Automatic Login System] [modified] Pin
DaveyM696-Jun-11 10:39
professionalDaveyM696-Jun-11 10:39 
QuestionHow to disable a panels vertical scroll to the mouse wheel Pin
venomation4-Jun-11 14:23
venomation4-Jun-11 14:23 
AnswerRe: How to disable a panels vertical scroll to the mouse wheel Pin
Mark Salsbery4-Jun-11 16:25
Mark Salsbery4-Jun-11 16:25 
GeneralRe: How to disable a panels vertical scroll to the mouse wheel Pin
venomation4-Jun-11 16:38
venomation4-Jun-11 16:38 
AnswerRe: How to disable a panels vertical scroll to the mouse wheel Pin
Philippe Mori4-Jun-11 16:28
Philippe Mori4-Jun-11 16:28 
GeneralRe: How to disable a panels vertical scroll to the mouse wheel Pin
venomation4-Jun-11 16:45
venomation4-Jun-11 16:45 
Thanks for the reply, I have already tried handling WM_MOUSEWHEEL messages but does not work...


Philippe Mori wrote:
The best thing to do would be to uses a modifier key (like Shift + Mouse wheel) for your action.


This scenario seems like it would also fit the same problem im currently facing?
I would still have to sent the MouseWheel event and then check...

Such as:

            MapRender.MouseWheel += MapRender_MouseWheel;
            MapRender.KeyDown += MapRender_KeyDown;
            MapRender.KeyUp += MapRender_KeyUp;
...
 void MapRender_KeyUp(object sender, KeyEventArgs e)
        {
            if(_current == e.KeyCode)
            {
                _current = Keys.None;
            }
        }

        private Keys _current = Keys.None;
        void MapRender_KeyDown(object sender, KeyEventArgs e)
        {
            _current = e.KeyCode;
        }

        void MapRender_MouseWheel(object sender, MouseEventArgs e)
        {
            if(_current != Keys.ControlKey) return;
            if (e.Delta > 0)
                _presenter.IncreaseTileSize();
            else _presenter.DecreaseTileSize();
        
        }


Still have to pass through the same event handler which calls the scroll bar to change...?
GeneralRe: How to disable a panels vertical scroll to the mouse wheel Pin
Philippe Mori4-Jun-11 17:16
Philippe Mori4-Jun-11 17:16 
GeneralRe: How to disable a panels vertical scroll to the mouse wheel Pin
venomation4-Jun-11 17:35
venomation4-Jun-11 17:35 
GeneralRe: How to disable a panels vertical scroll to the mouse wheel Pin
gavindon5-Jun-11 4:17
gavindon5-Jun-11 4:17 
GeneralRe: How to disable a panels vertical scroll to the mouse wheel Pin
venomation5-Jun-11 11:10
venomation5-Jun-11 11:10 
QuestionWCF Basics Pin
AmbiguousName4-Jun-11 3:27
AmbiguousName4-Jun-11 3:27 
AnswerRe: WCF Basics Pin
Abhinav S4-Jun-11 3:36
Abhinav S4-Jun-11 3:36 
AnswerRe: WCF Basics Pin
AmbiguousName4-Jun-11 3:48
AmbiguousName4-Jun-11 3:48 
GeneralRe: WCF Basics Pin
Richard MacCutchan4-Jun-11 4:05
mveRichard MacCutchan4-Jun-11 4:05 
GeneralRe: WCF Basics Pin
MicroVirus5-Jun-11 3:32
MicroVirus5-Jun-11 3:32 
AnswerRe: WCF Basics Pin
Ravi Bhavnani4-Jun-11 6:01
professionalRavi Bhavnani4-Jun-11 6:01 
QuestionIssue with StrCmpLogicalW (and doubles) [modified] Pin
SledgeHammer013-Jun-11 8:22
SledgeHammer013-Jun-11 8:22 
AnswerRe: Issue with StrCmpLogicalW (and doubles) Pin
SledgeHammer013-Jun-11 8:27
SledgeHammer013-Jun-11 8:27 
AnswerRe: Issue with StrCmpLogicalW (and doubles) Pin
gavindon3-Jun-11 10:25
gavindon3-Jun-11 10:25 
AnswerRe: Issue with StrCmpLogicalW (and doubles) Pin
gavindon3-Jun-11 10:27
gavindon3-Jun-11 10:27 
GeneralRe: Issue with StrCmpLogicalW (and doubles) Pin
SledgeHammer013-Jun-11 11:12
SledgeHammer013-Jun-11 11:12 
AnswerRe: Issue with StrCmpLogicalW (and doubles) PinPopular
Luc Pattyn3-Jun-11 15:24
sitebuilderLuc Pattyn3-Jun-11 15:24 
GeneralRe: Issue with StrCmpLogicalW (and doubles) Pin
SledgeHammer013-Jun-11 16:08
SledgeHammer013-Jun-11 16:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.