Page 1 of 1

Event Problem

PostPosted: August 10th, 2006, 11:41 am
by asdfghjkl
hello
I have a component that gets a TImage externally
I write event for OnMouseMove for TImage in my component but
when I do this then User OnMouseMove Event not work
I want to work My OnMouseMove Event (in my component) and then User OnMouseMove Event.
How do this?

PostPosted: August 11th, 2006, 8:21 pm
by Feike
I had a simelar problem and solved it in this way

Code: Select all
 
imageX := TFMImage.Create(self);           
With ImageX Do
  Begin
    Parent      := FMPanel1;                           //Self;
    PopupMenu   := PopupMenu2;
    OnMouseDown := XMouseDown;
    OnMouseMove := XMouseMove;
    OnMouseUp   := XMouseUp;
end;


Hope it helps