Re: React when the program isn't focused



On Mon, 26 Feb 2007 03:02:16 +0100, Fons Rave
<fonzzz-at-xs4all-dot-nl> wrote:

My clock-program shows a small, borderless window with the date when you
move the mouse-cursor over the clock. When the mouse moves away the date
disappears. It uses:

procedure TFormMain.LabelTime1MouseEnter(Sender: TObject);
procedure TFormMain.LabelTime1MouseLeave(Sender: TObject);
procedure TFormMain.LabelTime1MouseMove(Sender: TObject; Shift:
TShiftState; X, Y: Integer);

It works when the clock is the focused program. But doesn't when the
clock is not the focused program. The clock is, of course, not always
the focused program so you probably already know my question: how can I
make my clock-program react on MouseEnter, MouseLeave & MouseMove when
it is not the focused program ?

I've just done a test with OnMouseMove and it seems to fire regardless
of which App has the Foreground


.



Relevant Pages

  • Re: React when the program isnt focused
    ... procedure TFormMain.LabelTime1MouseEnter(Sender: TObject); ... procedure TFormMain.LabelTime1MouseMove(Sender: TObject; Shift: ... It works when the clock is the focused program. ...
    (comp.lang.pascal.delphi.misc)
  • Re: PaintBox image trouble
    ... The clock has the OnMinute event and the PaintBox the OnPaint event. ... procedure TForm.Clock1Minute(Sender: TObject; Minute: Word); begin ...
    (alt.comp.lang.borland-delphi)
  • React when the program isnt focused
    ... My clock-program shows a small, borderless window with the date when you move the mouse-cursor over the clock. ... procedure TFormMain.LabelTime1MouseEnter(Sender: TObject); ... But doesn't when the clock is not the focused program. ...
    (comp.lang.pascal.delphi.misc)