Event Problem

Please discuss general Delphi programming topics here.

Event Problem

Postby asdfghjkl » August 10th, 2006, 11:41 am

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?
asdfghjkl
Member
Member
 
Posts: 2
Joined: July 26th, 2006, 5:31 am

Postby Feike » August 11th, 2006, 8:21 pm

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
Feike
Active Member
Active Member
 
Posts: 6
Joined: August 2nd, 2006, 8:10 am
Location: Netherlands


Return to Delphi Programming

Who is online

Users browsing this forum: No registered users and 2 guests

cron