Changeset 20 for branches/Xvcl/Xvcl.Kernel.pas
- Timestamp:
- May 6, 2013, 12:16:30 AM (12 years ago)
- Location:
- branches/Xvcl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Xvcl
- Property svn:ignore
-
old new 2 2 *.local 3 3 Win32 4 __history
-
- Property svn:ignore
-
branches/Xvcl/Xvcl.Kernel.pas
r19 r20 45 45 TMouse = class 46 46 Kernel: TKernel; 47 procedure HandleClick(Position: TPoint); 47 procedure HandleDown(Position: TPoint); 48 procedure HandleUp(Position: TPoint); 48 49 end; 49 50 … … 199 200 { TMouse } 200 201 201 procedure TMouse.Handle Click(Position: TPoint);202 procedure TMouse.HandleDown(Position: TPoint); 202 203 var 203 204 Form: TForm; 204 begin 205 for Form in Kernel.Screen.Forms do begin 206 Form.HandleClick(Position.Substract(Form.Bounds.LeftTop)); 205 NewMessage: TMessageMouse; 206 begin 207 NewMessage := TMessageMouseDown.Create; 208 NewMessage.Position := Position; 209 try 210 for Form in Kernel.Screen.Forms do begin 211 if Form.HandleMessage(NewMessage) then begin 212 Break; 213 end; 214 end; 215 finally 216 NewMessage.Destroy; 217 end; 218 end; 219 220 procedure TMouse.HandleUp(Position: TPoint); 221 var 222 Form: TForm; 223 NewMessage: TMessageMouse; 224 begin 225 NewMessage := TMessageMouseUp.Create; 226 NewMessage.Position := Position; 227 try 228 for Form in Kernel.Screen.Forms do begin 229 if Form.HandleMessage(NewMessage) then begin 230 Break; 231 end; 232 end; 233 finally 234 NewMessage.Destroy; 207 235 end; 208 236 end;
Note:
See TracChangeset
for help on using the changeset viewer.