Changeset 63 for Docking/CoolDocking/UCoolDocking.pas
- Timestamp:
- Sep 29, 2010, 10:27:07 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/UCoolDocking.pas
r62 r63 86 86 MouseDown: Boolean; 87 87 MouseButton: TMouseButton; 88 MouseDownSkip: Boolean; 88 89 FMaster: TCoolDockMaster; 89 90 FMoveDuration: Integer; … … 466 467 TTabControlNoteBookStrings(Tabs).NoteBook.OnMouseDown := TabControlMouseDown; 467 468 TTabControlNoteBookStrings(Tabs).NoteBook.OnMouseUp := TabControlMouseUp; 469 OnMouseUp := TabControlMouseUp; 468 470 Images := TabImageList; 469 471 end; … … 837 839 // TCoolDockClientPanel(FDockPanels[TabControl.TabIndex]).Visible := True; 838 840 end; 841 MouseDownSkip := True; 839 842 end; 840 843 … … 915 918 916 919 procedure TCoolDockManager.TabControlMouseDown(Sender: TObject; Button: TMouseButton; 917 Shift: TShiftState; X, Y: Integer); 918 begin 919 MouseDown := True; 920 MouseButton := Button; 920 Shift: TShiftState; X, Y: Integer); 921 begin 922 if not MouseDownSkip then begin 923 MouseDown := True; 924 MouseButton := Button; 925 end; 926 MouseDownSkip := False; 921 927 end; 922 928 … … 1046 1052 //(Control as TWinControl).DockSite := False; 1047 1053 ClientAreaPanel.DockSite := False; 1048 (Control as TWinControl).BeginDrag( True);1054 (Control as TWinControl).BeginDrag(False, 10); 1049 1055 //DragManager.DragStart(Control, False, 1); 1050 1056 end;
Note:
See TracChangeset
for help on using the changeset viewer.