Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Question2: Cursor Position

Discussion in 'Information Technology' started by JK, Jul 28, 2006.

  1. JK

    JK
    Expand Collapse
    Guest

    Hi again,

    Is there a way to move the cursor on the screen without the mouse?

    The Problem:
    I use buttons that are in fact images. Each button is in fact 3 images that
    are changed through the "Picture" property by the Mouse events Move, Down
    and Up:

    1 Normal: when the cursor is anywhere on the form
    2. Point: when the cursor is on the button
    3. Down: when mouse button is down.

    The "on Mouse Up" sub set the button to Normal and does something (eg Close
    a form, opens another form etc.

    The problem is that because the cursor remains on the 'button" it
    immediately activate the "on Mouse Move" sub, correctly so, until I move the
    cursor with mouse. I want to move the cursor away from the "button" within
    the (MyButton)_OnMouseUp sub to anywhere on the screen the leave the
    "button" in a Normal state

    Is that possible?

    Regards/JK
     
  2. Arvin Meyer [MVP]

    Arvin Meyer [MVP]
    Expand Collapse
    Guest

    Have a look at the button demo at:

    http://www.datastrat.com/Download/MouseMove.zip

    In general, you want to use the Click event for the button's action or
    event.
    --
    Arvin Meyer, MCP, MVP
    Microsoft Access
    Free Access downloads
    http://www.datastrat.com
    http://www.mvps.org/access

    "JK" <Nobody@Home.com> wrote in message
    news:e6jrcFVrGHA.4820@TK2MSFTNGP04.phx.gbl...
    > Hi again,
    >
    > Is there a way to move the cursor on the screen without the mouse?
    >
    > The Problem:
    > I use buttons that are in fact images. Each button is in fact 3 images
    > that are changed through the "Picture" property by the Mouse events Move,
    > Down and Up:
    >
    > 1 Normal: when the cursor is anywhere on the form
    > 2. Point: when the cursor is on the button
    > 3. Down: when mouse button is down.
    >
    > The "on Mouse Up" sub set the button to Normal and does something (eg
    > Close a form, opens another form etc.
    >
    > The problem is that because the cursor remains on the 'button" it
    > immediately activate the "on Mouse Move" sub, correctly so, until I move
    > the cursor with mouse. I want to move the cursor away from the "button"
    > within the (MyButton)_OnMouseUp sub to anywhere on the screen the leave
    > the "button" in a Normal state
    >
    > Is that possible?
    >
    > Regards/JK
    >
    >
    >
    >
    >
     
  3. JK

    JK
    Expand Collapse
    Guest

    Sorry for late response Arvin

    I had a look at your functions, this does not solve my problem, I explain
    based on your functions:

    Say, I invoke SetBold with OnMouseMove (on the button) and SetNormal() with
    mouse move outside the button. when I click the button to "do something"
    among all the "something" I invoke SetNormal() as I'm done with that button.
    However as the cursor is still on the button the SetBold() is invoked by
    MouseMove.

    What I'm looking for, Perhaps it is not possible, is to move the cursor
    (without moving the mouse) away from the button during "do something" in
    order to invoke SetNormal"

    Any ideas?

    Regards/JK


    "Arvin Meyer [MVP]" <a@m.com> wrote in message
    news:ev775RZrGHA.3764@TK2MSFTNGP02.phx.gbl...
    > Have a look at the button demo at:
    >
    > http://www.datastrat.com/Download/MouseMove.zip
    >
    > In general, you want to use the Click event for the button's action or
    > event.
    > --
    > Arvin Meyer, MCP, MVP
    > Microsoft Access
    > Free Access downloads
    > http://www.datastrat.com
    > http://www.mvps.org/access
    >
    > "JK" <Nobody@Home.com> wrote in message
    > news:e6jrcFVrGHA.4820@TK2MSFTNGP04.phx.gbl...
    >> Hi again,
    >>
    >> Is there a way to move the cursor on the screen without the mouse?
    >>
    >> The Problem:
    >> I use buttons that are in fact images. Each button is in fact 3 images
    >> that are changed through the "Picture" property by the Mouse events Move,
    >> Down and Up:
    >>
    >> 1 Normal: when the cursor is anywhere on the form
    >> 2. Point: when the cursor is on the button
    >> 3. Down: when mouse button is down.
    >>
    >> The "on Mouse Up" sub set the button to Normal and does something (eg
    >> Close a form, opens another form etc.
    >>
    >> The problem is that because the cursor remains on the 'button" it
    >> immediately activate the "on Mouse Move" sub, correctly so, until I move
    >> the cursor with mouse. I want to move the cursor away from the "button"
    >> within the (MyButton)_OnMouseUp sub to anywhere on the screen the leave
    >> the "button" in a Normal state
    >>
    >> Is that possible?
    >>
    >> Regards/JK
    >>
    >>
    >>
    >>
    >>

    >
    >
     

Share This Page