Question2: Cursor Position

J

JK

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
 
J

JK

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top