TLama

Untitled

May 28th, 2014
562
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.41 KB | None | 0 0
  1. ...
  2. protected
  3.   procedure Paint; override;
  4.   // move the method to the protected block, modify its prototype, and add override
  5.   procedure MouseMove(Shift: TShiftState; X, Y: Integer); override;
  6. public
  7. ...
  8.  
  9. implementation
  10.  
  11. procedure TOC_MenuPanel.MouseMove(Shift: TShiftState; X, Y: Integer);
  12. begin
  13.   // if you don't want to lose original mouse moving functionality, call inherited
  14.   inherited;
  15.   ...
  16. end;
Advertisement
Add Comment
Please, Sign In to add comment