Re: Floating Box for Prices
- From: "Webbiz" <noreply@xxxxxxx>
- Date: Fri, 1 Feb 2008 23:15:43 -0600
"Webbiz" <noreply@xxxxxxx> wrote in message
news:uoNhZiVZIHA.4828@xxxxxxxxxxxxxxxxxxxxxxx
"Mike Williams" <mikea@xxxxxxxxxxxxxxxxx> wrote in message
news:exiFnTSZIHA.5612@xxxxxxxxxxxxxxxxxxxxxxx
"Webbiz" <noreply@xxxxxxx> wrote in message
news:Oq8h$4RZIHA.4196@xxxxxxxxxxxxxxxxxxxxxxx
What is OP again? I get it is in reference to the person
asking the question, but I can't guess what it means.
Original Poster.
Anyway, for my own purposes, the box won't need to travel outside
the picturebox (chart). What I'd need to do is detect the cursor near
the end of the picturebox on either side and simply flip the box to the
opposite side of the cursor.
That's very easy to do. But are you sure that's what you want? If the
user is using the mouse to navigate the chart displayed in the picture
box (and if he is for example looking at the data under the mouse pointer
when the "box that follows the mouse" is on the right side of the cursor)
isn't he going to be a bit disconcerted when the "box" suddenly jumps to
the left side of the cursor (or even when it "flows towards" the left
side of the cursor) when he reaches the right side of the picture box,
thereby hiding the data he is looking at?
Hey Mike, that looked pretty good. It will certainly work
for my needs. Thanks.
No problem. Post again if you need further help with it.
Mike
Mike, is it necessary to add all that 'hook' code to do this, or is that
how you prevent flicker (or something else)?
For instance, I notice this 'hook' code informs Form2 where to move as the
mouse moves. How is this different than adding code in the picture box
.Mousemove proc to send the x.y to Form2.move? I tried it to see what it
would do, and it moved around with the mouse pretty good.
What am I missing?
Thanks.
Webbiz
I am trying to decide how to activate this floating price box. The best idea
I can come up with is a mousedown delay.
If the user clicks down the left mouse button and holds it for a full 1.5
seconds, then I'd like this box to appear.
As long as the button is held down, it will follow the mouse anywhere on the
picturebox.
Once the button is released, the box must go away. (go away box.. shoo
shoo).
Since I use the left mouse clicks for other things, such as double-click and
hold to scroll the chart, I don't want this price box to interfere with
that. That is why I need a delay. The delay is to make sure I am not simply
double-clicking for scrolling. If I double-click, the price box should never
open.
What do you think? It seems like a better idea than having to hold down a
key while moving the mouse.
How might I implement this?
I was doing a search on Timer Control to see if I could find something that
might discuss such a delay-before-action method. What I got was a lot of
stopwatch stuff. LOL!
Thanks.
Webbiz
.
- Follow-Ups:
- Re: Floating Box for Prices
- From: Mike Williams
- Re: Floating Box for Prices
- References:
- Floating Box for Prices
- From: Webbiz
- Re: Floating Box for Prices
- From: BTIS Jeff
- Re: Floating Box for Prices
- From: Dave O.
- Re: Floating Box for Prices
- From: Webbiz
- Re: Floating Box for Prices
- From: Mike Williams
- Re: Floating Box for Prices
- From: Webbiz
- Floating Box for Prices
- Prev by Date: Re: Floating Box for Prices
- Next by Date: Re: Dealing with Dates (again)
- Previous by thread: Re: Floating Box for Prices
- Next by thread: Re: Floating Box for Prices
- Index(es):