[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Intellimouse Support

Posted on 1998-11-05
9
Medium Priority
?
148 Views
Last Modified: 2010-04-03
Is there any Freeware Compoment for IntelliMouse Support ?
or can someone write the code how to support IntelliMouse
on All my Forms ?

Thanx
0
Comment
Question by:k6__
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 2

Author Comment

by:k6__
ID: 1345826
Edited text of question
0
 
LVL 12

Expert Comment

by:rwilson032697
ID: 1345827
If you want components looks at these:

http://ourworld.compuserve.com/homepages/S_Page/wheelms.zip
http://ftp/d20free/mswheel.zip (on DSP)

If you are using D4 then use the OnMouseWheel, OnMouseWheelUp and  OnMouseWheelDown events.

If you are not using D4 then you will need to handle the wm_mousewheel message.

Cheers,

Raymond.

0
 
LVL 2

Author Comment

by:k6__
ID: 1345828
i need freeware components or sample .. i don't have money to
pay them =(

Thanx
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 10

Expert Comment

by:viktornet
ID: 1345829
What's an intelli mouse anyway???

Viktor
0
 
LVL 12

Expert Comment

by:rwilson032697
ID: 1345830
The second one is free:

http://ftp/d20free/mswheel.zip (on DSP)

Cheers,

Raymond.

Viktor: An Intellimouse is made by Microsoft and has a little wheel in between the two mouse button so you can move the scrollbar.
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1345831
Oh, my mother's computer has got one of those since she bought the computer about 5 weeks ago. I'm still using Win95 and my old 133MHz computer....
0
 
LVL 2

Author Comment

by:k6__
ID: 1345832
ermh sorry again =) .. i want the source not just the DCU's only.

0
 
LVL 12

Expert Comment

by:rwilson032697
ID: 1345833
Are you using D4?
0
 
LVL 4

Accepted Solution

by:
BoRiS earned 200 total points
ID: 1345834
K6___

I recieved this not so long ago, it shows how to trap the mousewheel message in windows 9x and send a mesage is NT for the mouse
    wheel...this should shed so light...

     
                  unit Unit1;
                   
                  interface
                   
                  uses
                    Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
                  StdCtrls, ComCtrls;
                   
                  type
                    (*
                    WM_MOUSEWHEEL
                    fwKeys = LOWORD(wParam); // key flags
                    zDelta = (short) HIWORD(wParam); // wheel rotation
                    xPos = (short) LOWORD(lParam); // horizontal position of pointer
                    yPos = (short) HIWORD(lParam); // vertical position of pointer
                   
                    fwKeys: Value of the low-order word of wParam. Indicates whether
                            various virtual keys are down. This parameter can be any
                            combination of the following values:
                                MK_CONTROL Set if the CTRL key is down.
                                MK_LBUTTON Set if the left mouse button is down.
                                MK_MBUTTON Set if the middle mouse button is down.
                                MK_RBUTTON Set if the right mouse button is down.
                                MK_SHIFT Set if the SHIFT key is down.
                    *)
                    TWMMouseWheelNT = record
                      msg: Cardinal; // msg
                      fwKeys: smallint;
                      rotation: smallint; // wParam
                      mousepos: TSmallPoint; // lParam
                      result: longint;
                    end;
                   
                    TWMMouseWheel95 = record
                      msg: Cardinal; // msg
                      rotation: integer; // wParam
                      mousepos: TSmallPoint; // lParam
                      result: longint;
                    end;
                   
                    TForm1 = class(TForm)
                      Button1: TButton;
                      Memo1: TRichEdit;
                      procedure FormCreate(Sender: TObject);
                      procedure Button1Click(Sender: TObject);
                    private
                      { Private declarations }
                      FWheelMsg: Cardinal;
                    protected
                      { Protected declarations }
                      procedure wheelMove(numScroll: integer);
                    public
                      { Public declarations }
                      procedure WndProc(var Message: TMessage); override;
                      procedure WMMouseWheel(var Msg: TWMMouseWheelNT);
                                message WM_MOUSEWHEEL;
                    end;
                   
                  var
                    Form1: TForm1;
                   
                  implementation
                   
                  {$R *.DFM}
                   
                  procedure TForm1.FormCreate(Sender: TObject);
                  begin
                    Memo1.Lines.LoadFromFile('C:\WINDOWS\WIN.INI');
                   
                    // line below only is meaningfull under Windows 95
                    FWheelMsg := RegisterWindowMessage('MSWHEEL_ROLLMSG');
                  end;
                   
                  procedure TForm1.wheelMove(numScroll: integer);
                  var
                    i: integer;
                  begin
                    if (numScroll > 0) then
                      for i := 0 to numScroll do
                        SendMessage(Memo1.Handle, WM_VSCROLL, SB_LINEUP, 0)
                    else
                      for i := 0 downto numScroll do
                        SendMessage(Memo1.Handle, WM_VSCROLL, SB_LINEDOWN, 0);
                  end;
                   
                  procedure TForm1.WndProc(var Message: TMessage);
                  begin
                    // called only under Windows 95
                    inherited WndProc(Message);
                    if (TMessage(Message).Msg = FWheelMsg) then
                      wheelMove( TWMMouseWheel95(Message).Rotation div WHEEL_DELTA );
                  end;
                   
                  procedure TForm1.WMMouseWheel(var Msg: TWMMouseWheelNT);
                  begin
                    // called only under NT 4
                    wheelMove( msg.Rotation div WHEEL_DELTA );
                  end;
                   
                  procedure TForm1.Button1Click(Sender: TObject);
                  begin
                    Close;
                  end;
                   
                  end.

Thank you to Peter Below for this...

this is how to add the functionallity in windows 9x and NT read the comments in the code for more info, if you are using delphi 4 then there are the OnMouseWheel, OnMouseWheelDown, OnMouseWheelUp....

Later
BoRiS
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Screencast - Getting to Know the Pipeline
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month19 days, 20 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question