Ignore:
Timestamp:
May 8, 2013, 12:53:50 AM (12 years ago)
Author:
chronos
Message:
  • Added: Custom independent basic generics implementation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Xvcl/Xvcl.Controls.pas

    r20 r21  
    44
    55uses
    6   Generics.Collections, Xvcl.Classes, Xvcl.Graphics;
     6  Xvcl.Generics, Xvcl.Classes, Xvcl.Graphics;
    77
    88type
     
    142142function TControl.HandleMessage(Message: TMessage): Boolean;
    143143begin
     144  Result := False;
    144145  if Message is TMessageMouseDown then begin
    145146    if Assigned(FOnMouseDown) then FOnMouseDown(Self);
    146147    Color := clGray;
    147148    Paint;
     149    Result := True;
    148150  end else
    149151  if Message is TMessageMouseUp then begin
     
    152154    Paint;
    153155    if Assigned(FOnClick) then FOnClick(Self);
     156    Result := True;
    154157  end;
    155158end;
Note: See TracChangeset for help on using the changeset viewer.