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
mattias
5c65c9304e
LCL: TToolBar: improved check if width is fixed and autosize, bug #16425
...
git-svn-id: trunk@25264 -
2010-05-08 20:02:33 +00:00
paul
0254875222
lcl: fix OnEnter/OnExit handling:
...
- don't assume DoEnter, DoExit are the same as WM_SETFOCUS, WM_KILLFOCUS - Enter must happen for all controls from the current focused control to the new focused control on the form, Exit must happen from the focused control to the first parent of the new focused control. If another focusing event happens during this look we need to stop the loop and return False state for SetFocusedControl method (this is VCL compatible behavior)
- handle enter, exit code in SetFocusedControl because this is the only place where form handles focus for child controls
- send CM_ENTER, CM_EXIT messages instead of direct call of DoEnter, DoExit methods
- reimplement SaveFocusState, RestoreFocusState - save restore the last global focused control
(fixes issue #0014041 )
git-svn-id: trunk@25255 -
2010-05-08 16:18:40 +00:00
paul
622f0ba392
lcl: fix GetControlClassDefaultSize - use TSize instead of TPoint
...
git-svn-id: trunk@25204 -
2010-05-05 07:59:04 +00:00
mattias
cf55952b42
removed OldAutoSize
...
git-svn-id: trunk@25190 -
2010-05-04 19:16:18 +00:00
mattias
7b9891bf7c
LCL: TWinControl.DoFlipCildren adjust Anchors, bug #16247
...
git-svn-id: trunk@25175 -
2010-05-04 10:04:40 +00:00
mattias
6c2176837f
LCL: added TWinControl.FAlignOrder a list to define the order of aligned controls whenusing same positions
...
git-svn-id: trunk@25173 -
2010-05-04 09:52:22 +00:00
paul
958a4ce3cd
lcl: formatting
...
git-svn-id: trunk@25164 -
2010-05-04 05:44:29 +00:00
mattias
8e46525cff
LCL: added debugging flag -dVerboseClientRectBugFix
...
git-svn-id: trunk@25011 -
2010-04-27 15:42:03 +00:00