Guest User

Untitled

a guest
Jan 22nd, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. type TDateCell = class(TCalendarEdit)
  2. protected
  3. procedure MouseDown(Button: TMouseButton;Shift: TShiftState;X, Y: Single);override;
  4. end;
  5.  
  6. type TDateColumn = class(TColumn)
  7. protected
  8. function CreateCellControl: TStyleControl;override;
  9. end;
  10.  
  11. procedure TDateCell.MouseDown(Button: TMouseButton;Shift: TShiftState;X, Y: Single)
  12. begin
  13. inherited;
  14. //Custom stuff here with X,Y
  15. end;
  16.  
  17. function TDateColumn.CreateCellControl: TStyledControl;
  18. begin
  19. Result := TDateCell.Create;
  20. Result.Parent := Self;
  21. end;
Add Comment
Please, Sign In to add comment