Mega Search
23.2 Million


Sign Up

Make a donation  
OnMouseEnter , why no response?  
News Group: embarcadero.public.delphi.vcl.components.using

OnMouseEnter , why no response?

procedure TForm17.FormMouseEnter(Sender: TObject);
begin
Form3.top:=2;
end;

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 20-Dec-2014, at 4:10 AM EST
From: hots wally
 
Re: OnMouseEnter , why no response?  
News Group: embarcadero.public.delphi.vcl.components.using
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)

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 21-Dec-2014, at 10:39 PM EST
From: Remy Lebeau (TeamB)
 
Re: OnMouseEnter , why no response?  
News Group: embarcadero.public.delphi.vcl.components.using
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)

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 21-Dec-2014, at 1:01 AM EST
From: Peter Below
 
Re: OnMouseEnter , why no response?  
News Group: embarcadero.public.delphi.vcl.components.using
> {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

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 20-Dec-2014, at 10:29 PM EST
From: hots wally
 
Re: OnMouseEnter , why no response?  
News Group: embarcadero.public.delphi.vcl.components.using
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)

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 20-Dec-2014, at 11:42 AM EST
From: Remy Lebeau (TeamB)