React when the program isn't focused



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 ?

Thanks,
Fons.
.



Relevant Pages

  • Re: React when the program isnt focused
    ... move the mouse-cursor over the clock. ... procedure TFormMain.LabelTime1MouseEnter(Sender: TObject); ... procedure TFormMain.LabelTime1MouseMove(Sender: TObject; Shift: ... the focused program so you probably already know my question: ...
    (comp.lang.pascal.delphi.misc)
  • 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)