Peter wrote:
> If this form17 is disabled (because another form is shown modally,
> for instance) it would not get any mouse messages.
It would also not fire if the Form has no blank areas in its client area.
OnMouse... events are only fired when performing mouse operations directly
on the Form's exposed client area, not on child controls inside the client
area.
--
Remy Lebeau (TeamB)
hots wally wrote:
> OnMouseEnter , why no response?
>
> procedure TForm17.FormMouseEnter(Sender: TObject);
> begin
> Form3.top:=2;
> end;
If this form17 is disabled (because another form is shown modally, for
instance) it would not get any mouse messages.
Have you placed a breakpoint on the form3.top := 2; line to verify that
it is not reached? You have to enable debug information in the project
options (or use the default debug build) for this.
--
Peter Below (TeamB)
> {quote:title=Remy Lebeau (TeamB) wrote:}{quote}
> hots wrote:
>
> > OnMouseEnter , why no response?
>
> Which version of Delphi are you using? Did you actually assign FormMouseEnter()
> to the OnMouseEnter event?
>
> --
> Remy Lebeau (TeamB)
XE7. I do use it no response while MouseMove event can do, why? Can you gei me the right example, I can check why. thanks
hots wrote:
> OnMouseEnter , why no response?
Which version of Delphi are you using? Did you actually assign FormMouseEnter()
to the OnMouseEnter event?
--
Remy Lebeau (TeamB)