Commit Graph

49 Commits

Author SHA1 Message Date
paul
8d364b03df lcl:
- Extend FindLCLWindow method by AllowDisabled argument to skip disabled windows
  - Fix FindControlAtPosition - it previously ignored AllowDisabled option
  - Don't allow disabled window to be an internal MouseControl (fixes bug #0017993 for win32)

git-svn-id: trunk@35204 -
2012-02-07 07:49:42 +00:00
zeljko
e0d1f86ca1 LCL: fixed wrong result from DragManager.IsDragging if we call modal form or dialog from OnDragDrop() event. issues #17657 and #20676
git-svn-id: trunk@35181 -
2012-02-06 13:51:19 +00:00
mattias
c7da8d084e LCL: TDragManagerDefault: check if FPermorer is no more, bug #16959
git-svn-id: trunk@26708 -
2010-07-17 08:24:59 +00:00
mattias
feaf0e30be LCL: TreeView: using normal drag and drop, bug #16876
git-svn-id: trunk@26622 -
2010-07-13 13:42:12 +00:00
mattias
afab0bd0c4 anchordocking: fixed nested GetSiteInfo
git-svn-id: trunk@26340 -
2010-06-30 06:26:56 +00:00
mattias
ac56a26e10 anchordocking: unregister custom docksite on restore
git-svn-id: trunk@26339 -
2010-06-30 06:19:19 +00:00
mattias
c702020f12 LCL: docking: debugging
git-svn-id: trunk@26065 -
2010-06-12 19:05:26 +00:00
mattias
e2ad22aaa0 LCL: comments
git-svn-id: trunk@25796 -
2010-05-31 07:21:19 +00:00
mattias
fb64f40660 LCL: FindDockSiteAtPosition: prefer child before parent and prefer Screen higher Z order
git-svn-id: trunk@25783 -
2010-05-30 20:18:49 +00:00
mattias
482773ba4b LCL; fixed typo
git-svn-id: trunk@25546 -
2010-05-20 15:41:42 +00:00
mattias
ca3c600e37 LCL: disabled simple dock move until easydockmanager is capable of it
git-svn-id: trunk@25007 -
2010-04-27 14:16:06 +00:00
mattias
947703a391 LCL: fixed simple dock move
git-svn-id: trunk@25002 -
2010-04-27 10:44:13 +00:00
mattias
c0ba48b490 LCL: disabled simple dock move code, something is undocking
git-svn-id: trunk@25001 -
2010-04-27 10:41:47 +00:00
mattias
496bc473da LCL: TDockPerformer.DragStop: started simple move
git-svn-id: trunk@24938 -
2010-04-25 21:12:36 +00:00
mattias
1aa4e0f860 LCL: calculatepreferredsize: anchored both sides, check for anchor kind when adding preferred width
git-svn-id: trunk@24931 -
2010-04-25 19:12:09 +00:00
paul
be1d125c88 lcl: distinct AutoCreated TDragObject and AutoFree TDragObject:
- first is created internally by LCL if in DragStart none DragObject is passed
  - second is a TDragObject which must be auto destructed on drag drop operation finish 
(more delphi compatible and fixes issue #0014476)

git-svn-id: trunk@21544 -
2009-09-03 00:55:03 +00:00
paul
0b5803fbb1 lcl: fix compilation with fpc 2.5.1
git-svn-id: trunk@21275 -
2009-08-18 07:55:13 +00:00
paul
ef2791cdc5 lcl: PositionDockRect only when we move it
git-svn-id: trunk@20629 -
2009-06-15 02:58:12 +00:00
paul
9a7b124e9d lcl: apply "Proper initialization of the docking object" from Hans-Peter Diettrich (issue #0013945)
git-svn-id: trunk@20628 -
2009-06-15 02:18:26 +00:00
paul
4a690c2f5a lcl: TDockObject: add Dropped property for delphi compatibility (issue #0013427)
git-svn-id: trunk@20067 -
2009-05-20 05:54:07 +00:00
paul
dfb54d7324 lcl: dragmanager: apply patch to support Ctrl key during drag/dock operations from Hans-Peter Diettrich with small modifications (issue #0013427)
git-svn-id: trunk@20066 -
2009-05-20 05:05:38 +00:00
paul
c9a275b3a4 lcl: don't produce false drops during drag/drop operations in case we are still waiting for drag threshold (by Hans-Peter Diettrich, issue #0013675)
git-svn-id: trunk@19842 -
2009-05-08 01:14:00 +00:00
paul
dea006ff6b lcl: few docking changes by Hans-Peter Diettrich (part of issue #0013427)
git-svn-id: trunk@19436 -
2009-04-15 06:04:15 +00:00
paul
f7577be51b lcl: move Dock Image handling from the drag manager to the TDragDockObject (part of issue #0013427)
git-svn-id: trunk@19202 -
2009-04-03 05:59:46 +00:00
paul
a395aebafc lcl: drag/dock (from patch of Hans-Peter Diettrich, issue #0013427)
- add TDragObject.AutoCreate constructor
  - add TDragObjectEx, TDragControlObjectEx, TDragDockObjectEx for delphi compatibility
  - remove TDragDockCommon.FDragObjectAutoFree, use AutoCreated property of TDragObject instead
  - simplify TControl.GetFloating

git-svn-id: trunk@19168 -
2009-03-31 06:47:01 +00:00
paul
a3b8501d07 lcl: don't corrupt key handling by drag manager if not needed (bug #0012497)
git-svn-id: trunk@18667 -
2009-02-13 16:34:34 +00:00
mattias
2996a3c332 rename COPYING.modifiedLGPL to COPYING.modifiedLGPL.txt
git-svn-id: trunk@15834 -
2008-07-22 09:48:15 +00:00
paul
9bdd9bd85f lcl: pass Control instead of TDragControlObject into OnDragXXX events if TDragControlObject has been created automatically (for delphi compatibility) (issue #0001850)
git-svn-id: trunk@14855 -
2008-04-17 06:36:53 +00:00
paul
e79628a20a calculate DockOffset in screen coordinates
git-svn-id: trunk@14374 -
2008-03-03 06:58:12 +00:00
paul
38674222ad drag-dock: take click position into account when dragging control
git-svn-id: trunk@14365 -
2008-03-02 15:02:40 +00:00
paul
952291e8bc docking: workaround drag/dock start on header (parent get capture and breaks our drag operation)
git-svn-id: trunk@14036 -
2008-02-08 19:17:26 +00:00
paul
15151ee192 docking:
- refactor dock header part searching
- start handle mouse messages for dock header

git-svn-id: trunk@14034 -
2008-02-08 17:20:40 +00:00
paul
543e960d76 dont use direct call of TControl.DoEndDock from DockPerformer (hint from Marius)
git-svn-id: trunk@13971 -
2008-02-04 02:39:25 +00:00
paul
6826699163 drag/drop:
- restore CancelDrag
- restore DragManager.EndDrag

git-svn-id: trunk@13952 -
2008-02-02 09:45:19 +00:00
paul
7d5ecafd5e fix typo in dragmanager (from Marius)
git-svn-id: trunk@13750 -
2008-01-14 23:12:48 +00:00
paul
00d2ada452 dragmanager: fix typo
git-svn-id: trunk@13747 -
2008-01-14 08:54:39 +00:00
mattias
0da528ffe8 LCL: TLazDockTree: implemented RemoveControl, refactored: TDragManager ancestor to TComponent, fixed undocking
git-svn-id: trunk@13673 -
2008-01-08 23:38:14 +00:00
paul
0f9be635f0 - rethink DrawDefaultDockImage: add 3 dock image operation: show, hide and move
- implement qt DrawDefaultDockImage

git-svn-id: trunk@13608 -
2008-01-03 15:39:34 +00:00
paul
1c8516a77f move code from DefaultDockImage to new LCLinf method DrawDefaultDockImage and add Erase parameter (reason: not all widgetset supports on screen drawing and pen ROPs like XOR)
git-svn-id: trunk@13607 -
2008-01-03 14:19:54 +00:00
paul
60e3581489 restore TDragObject.AlwaysShowDragImages
git-svn-id: trunk@13585 -
2008-01-02 17:33:05 +00:00
paul
503fec0d8a fix start coords of DockImage and clean it from screen after start
git-svn-id: trunk@13584 -
2008-01-02 17:26:10 +00:00
paul
6f3d95f5fb - TWinControl.GetClientOrigin. If Parent = nil and Handle is not Allocated then return 0,0
- more formatting of drag/dock code

git-svn-id: trunk@13583 -
2008-01-02 17:03:24 +00:00
paul
ac274dc4c6 fix Drag/Dock when there is no Dock Sites
git-svn-id: trunk@13582 -
2008-01-02 16:08:42 +00:00
paul
7bad8ae57d change formatting of dragmanager code
git-svn-id: trunk@13581 -
2008-01-02 16:05:00 +00:00
paul
2db37e8ee3 fix AV if second DragStop being called. (Second DragStop freed performer and returned execution to first DragStop which was inside that freed performer)
git-svn-id: trunk@13577 -
2008-01-02 09:17:52 +00:00
paul
28f8ce52b5 small changes to dragmanager code to prevent possible errors
git-svn-id: trunk@13576 -
2008-01-02 08:46:23 +00:00
mattias
8855211af5 LCL; fixed dragging under windows from Marius
git-svn-id: trunk@13575 -
2008-01-02 01:24:27 +00:00
mattias
cad606b93f LCL: fixed compilation for fpc 2.3.1
git-svn-id: trunk@13569 -
2008-01-02 00:26:54 +00:00
mattias
525fec94be LCL: replaced drag/dock messages with a cleaner TDragManager from Marius
git-svn-id: trunk@13564 -
2008-01-01 23:35:52 +00:00