Changeset 21 for branches/Xvcl/Xvcl.Controls.pas
- Timestamp:
- May 8, 2013, 12:53:50 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Xvcl/Xvcl.Controls.pas
r20 r21 4 4 5 5 uses 6 Generics.Collections, Xvcl.Classes, Xvcl.Graphics;6 Xvcl.Generics, Xvcl.Classes, Xvcl.Graphics; 7 7 8 8 type … … 142 142 function TControl.HandleMessage(Message: TMessage): Boolean; 143 143 begin 144 Result := False; 144 145 if Message is TMessageMouseDown then begin 145 146 if Assigned(FOnMouseDown) then FOnMouseDown(Self); 146 147 Color := clGray; 147 148 Paint; 149 Result := True; 148 150 end else 149 151 if Message is TMessageMouseUp then begin … … 152 154 Paint; 153 155 if Assigned(FOnClick) then FOnClick(Self); 156 Result := True; 154 157 end; 155 158 end;
Note:
See TracChangeset
for help on using the changeset viewer.