Commit Graph

638 Commits

Author SHA1 Message Date
mattias
b3a8dd03b1 fixed typos: childs
git-svn-id: trunk@29440 -
2011-02-10 09:37:16 +00:00
paul
24c97c70f6 lcl: declare TCMDesignHitTest message record
git-svn-id: trunk@29131 -
2011-01-20 04:43:39 +00:00
paul
7779bd4654 lcl: formatting
git-svn-id: trunk@28440 -
2010-11-24 02:40:01 +00:00
paul
fa4ada16f4 lcl: add lcl_defines include file which can be used for common lcl defines (like UseCLDefault)
git-svn-id: trunk@28343 -
2010-11-19 10:46:12 +00:00
paul
7854080d5d lcl: formatting, cleanup
git-svn-id: trunk@28339 -
2010-11-19 09:56:17 +00:00
paul
a5f3523e6f lcl: add DefaultColorType argument to TControlCanvas too
git-svn-id: trunk@28307 -
2010-11-18 02:23:34 +00:00
paul
2fd8aba64b lcl: extent GetDefaultColor function to get default Brush and Font colors
git-svn-id: trunk@28306 -
2010-11-18 02:19:50 +00:00
paul
0db1bd73c2 lcl: add ScalyBy and ChangeScale by Zaher Dirkey (mantis #0017250)
git-svn-id: trunk@28174 -
2010-11-10 06:46:42 +00:00
paul
9bd782a63e lcl:
- add GetDefaultColor to TControl which asks Parent in case widgetset returns clDefault color for it;
  - return clDefault instead of clWindow for generic TControl
win32, wince: use TControl.GetDefaultColor in all the places where we used TWSControlClass

git-svn-id: trunk@28172 -
2010-11-10 04:15:43 +00:00
paul
bda1a2e021 lcl: if TControlCanvas.Brush.Color = clDefault then use default control color
git-svn-id: trunk@28145 -
2010-11-08 04:43:56 +00:00
paul
d35e85a332 win32: restore wm_erasebkgnd default handler after clDefault experiments
lcl: more proper implementation for clDefault, add UseCLDefault define to compile with clDefault as default color for controls

git-svn-id: trunk@28140 -
2010-11-08 02:27:02 +00:00
mattias
1c7a2d7963 LCL: fixed compiling with DebugDisableAutoSizing, bug #17817
git-svn-id: trunk@28059 -
2010-11-03 15:33:10 +00:00
mattias
8833bebbb4 LCL: fixed anchoring to invisible control skipping to next side, bug #17320
git-svn-id: trunk@27989 -
2010-10-30 20:24:50 +00:00
mattias
5c25c80665 LCL: WidthIsAnchored for alCustom, bug #17764
git-svn-id: trunk@27972 -
2010-10-30 11:55:53 +00:00
paul
af66e8e95b lcl: send CM_CURSORCHANGED on control cursor change, perform cursor change logic in CM_CURSORCHANGED handler
git-svn-id: trunk@27936 -
2010-10-29 06:31:42 +00:00
vincents
a3555a84c4 LCL: disable declaration of TTime and TDate for fpc version 2.4.2 and newer. In newer fpc versions those types are declared in the system unit.
fixes issue #15474 
patch by: Sven Barth

git-svn-id: trunk@27838 -
2010-10-24 19:38:33 +00:00
paul
d5cb0e2fbe lcl: redo MouseEnter/MouseLeave notifications:
- move application mouse events notification from various message handlers to the WND proc of TWinControl
  - don't assume that control at mouse is the current control which has mouse events. If some control has a mouse capture set then it has the mouse messages and not the control at mouse
  - don't perform a control search in TApplication.DoBeforeMouseMessage - it already has an argument which contains the new mouse control (fixes bug #0016715)
  - fix CM_MOUSEENTER, CM_MOUSELEAVE message handlers so Parent controls will always get CM_ notification before the event handler and inspite of who is the message owner

git-svn-id: trunk@27770 -
2010-10-20 08:02:22 +00:00
paul
7dbd789466 lcl: preserve extra fields when passing lm_mousewheel message to child controls (issue #0014063)
git-svn-id: trunk@27086 -
2010-08-13 02:52:11 +00:00
paul
9dcdaa31d8 lcl: don't perform shortcut check and other double notification in recursive calls of DoKeyDownBeforeInterface
git-svn-id: trunk@27084 -
2010-08-13 01:46:31 +00:00
blikblum
69b2b72516 lcl: move RegisterPropertyToSkip calls to Register* procedures or unit initialization so it's called only once and not on every component created
git-svn-id: trunk@27070 -
2010-08-12 12:24:11 +00:00
mattias
f151a8c563 LCL: added more loop detections
git-svn-id: trunk@26748 -
2010-07-20 11:25:18 +00:00
mattias
c8ac54f916 LCL: autosize loop detection and raise exception
git-svn-id: trunk@26747 -
2010-07-20 09:50:37 +00:00
mattias
4498c3a5b7 LCL: autosize loop detection and raise exception
git-svn-id: trunk@26746 -
2010-07-20 09:37:21 +00:00
mattias
9a54775de9 LCL: calling all OnResize to invoke in best case only one more loop instead of one per OnResize, do not unset cfAutoSizeNeeded in DoAutoSize
git-svn-id: trunk@26745 -
2010-07-20 09:13:36 +00:00
paul
76c3f47f1e lcl: pass lm_contextmenu message from TWinControl to child controls (fixes bug #0016986)
git-svn-id: trunk@26741 -
2010-07-20 02:29:44 +00:00
mattias
355e947a65 LCL: TAnchorSide asrCenter: fix opposite side only when enabled, bug #13874
git-svn-id: trunk@26704 -
2010-07-16 22:32:23 +00:00
paul
7fcf942519 lcl: formatting, commenting some constants
git-svn-id: trunk@26671 -
2010-07-16 02:15:09 +00:00
paul
262184b138 lcl: review some exception raising code
git-svn-id: trunk@26662 -
2010-07-15 11:30:21 +00:00
mattias
7effe1cd59 LCL: added TWinContro.AutoSizeCanStart deprecated till next release
git-svn-id: trunk@26568 -
2010-07-10 07:59:44 +00:00
mattias
0aca7c0bf4 LCL: fixed TAnchorSide.CheckSidePosition circle check
git-svn-id: trunk@26275 -
2010-06-24 07:35:43 +00:00
mattias
4c66e3d41c LCL: improved debugging
git-svn-id: trunk@26249 -
2010-06-22 07:13:04 +00:00
mattias
5977b88aca LCL: added controlstyles csAutoSizeKeepChildLeft, csAutoSizeKeepChildTop, TScrollBox: use preferred size even if AutoSize=false
git-svn-id: trunk@26222 -
2010-06-21 08:10:11 +00:00
mattias
60adf0cc86 IDE: anchor editor: warn for circles
git-svn-id: trunk@26219 -
2010-06-20 22:00:27 +00:00
mattias
061e3724eb LCL: fixed anchoring with direction change
git-svn-id: trunk@26218 -
2010-06-20 21:41:34 +00:00
mattias
0dafa843e3 anchordocking: manualdock to custom dock site
git-svn-id: trunk@26143 -
2010-06-16 07:26:01 +00:00
mattias
d35da02263 LCL: TDockManager.BeginUpdate does not need to be implemented
git-svn-id: trunk@26009 -
2010-06-09 21:49:37 +00:00
mattias
bdb7a1945e LCL: made DoOnShowHint virtual
git-svn-id: trunk@25968 -
2010-06-08 13:04:39 +00:00
mattias
a760ac7f88 LCL: added UpdateDockCaption, GetDefaultDockCaption uses caption instead of name
git-svn-id: trunk@25942 -
2010-06-06 07:10:50 +00:00
mattias
29b27d13ba LCL: TWinControl.RemoveControl virtual
git-svn-id: trunk@25824 -
2010-06-01 20:30:36 +00:00
mattias
e2ad22aaa0 LCL: comments
git-svn-id: trunk@25796 -
2010-05-31 07:21:19 +00:00
mattias
08af96e2f0 LCL: improved TControl.GetDockEdge
git-svn-id: trunk@25794 -
2010-05-31 06:55:03 +00:00
mattias
dd770a60f3 LCL: comments
git-svn-id: trunk@25785 -
2010-05-30 22:11:50 +00:00
mattias
525e8f2516 LCL: renamed addhandler parameter AsLast to AsFirst, because this is more intuitive
git-svn-id: trunk@25768 -
2010-05-30 13:59:44 +00:00
mattias
57e6a22d2c LCL: added warning when painting outside of paint message
git-svn-id: trunk@25700 -
2010-05-27 16:02:21 +00:00
mattias
0e43e06e7c LCL: TDockManager: added overload InsertControl
git-svn-id: trunk@25550 -
2010-05-20 18:43:28 +00:00
sekelsenmat
9d7aa39624 Implements a new form style: fsSystemStayOnTop, reverts win32 fsStayOnTop to mean staying on top of the App only and implements sending WM_HOTKEY messages to the user TMyForm.WndProc. Also adds the OldFormStyle to the parameters of TWSCustomForm.SetFormStyle so that it isn't always necessary to recreate the Wnd.
git-svn-id: trunk@25531 -
2010-05-20 09:28:21 +00:00
mattias
5ebecf8cf5 LCL: fixed center anchoring
git-svn-id: trunk@25516 -
2010-05-19 15:14:22 +00:00
mattias
75cd574d96 LCL: use AdjustClientRect for AnchorSides
git-svn-id: trunk@25515 -
2010-05-19 13:40:14 +00:00
mattias
8011e7b757 LCL: implemented considering parent anchored sides for Parent s auto size
git-svn-id: trunk@25370 -
2010-05-13 15:49:36 +00:00
mattias
1bb0bd225f LCL: fixed TAnchorSIde.IsAnchoredToParent
git-svn-id: trunk@25271 -
2010-05-09 08:16:14 +00:00