Changeset 14 for os/trunk/System
- Timestamp:
- Feb 29, 2016, 5:23:37 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
os/trunk/System/LDOS.Kernel.pas
r13 r14 63 63 Forms: TList<TForm>; 64 64 VideoDevice: TVideoDevice; 65 FormMove: TControlMove; 65 66 procedure HandleResize; 66 67 procedure Paint; … … 80 81 TMouse = class 81 82 Kernel: TKernel; 82 MovedForm: TForm;83 83 procedure HandleMove(Position: TPoint); 84 84 procedure HandleDown(Position: TPoint); … … 226 226 Canvas := TScreenCanvas.Create; 227 227 Canvas.Screen := Self; 228 FormMove := TControlMove.Create; 228 229 end; 229 230 230 231 destructor TScreen.Destroy; 231 232 begin 233 FormMove.Free; 232 234 Canvas.Destroy; 233 235 Forms.Destroy; … … 371 373 for Form in Kernel.Screen.Forms do 372 374 if Form.Bounds.Contains(Position) then begin 373 MovedForm := Form;374 375 if Form.HandleMessage(NewMessage) then begin 375 376 Break; … … 389 390 NewMessage.Position := Position; 390 391 try 392 with Kernel.Screen.FormMove do 393 if Active then begin 394 TForm(Control).Bounds.TopLeft := StartControlPos + (Position - StartMousePos); 395 Kernel.Screen.Paint; 396 end; 391 397 for Form in Kernel.Screen.Forms do 392 398 if Form.Bounds.Contains(Position) then begin … … 410 416 NewMessage.Position := Position; 411 417 try 418 Kernel.Screen.FormMove.Active := False; 412 419 for Form in Kernel.Screen.Forms do 413 420 if Form.Bounds.Contains(Position) then begin … … 416 423 end; 417 424 end; 418 if Assigned(Kernel.Screen.FocusedForm) then419 Kernel.Screen.FocusedForm.HandleMessage(NewMessage);425 // if Assigned(Kernel.Screen.FocusedForm) then 426 // Kernel.Screen.FocusedForm.HandleMessage(NewMessage); 420 427 finally 421 428 NewMessage.Destroy;
Note:
See TracChangeset
for help on using the changeset viewer.