Commit Graph

743 Commits

Author SHA1 Message Date
paul
0373c8de84 lcl: make ScrollBy more delphi compatible:
- invert direction of scroll
  - add TWinControl.ScrollBy to scroll inner controls
  - scroll controls in TScrollingWinControl (fixes issue #0016721)

git-svn-id: trunk@29944 -
2011-03-21 02:41:43 +00:00
paul
af80e73948 lcl: implement TControl.DesktopFont, add support for CM_SYSFONTCHANGED
git-svn-id: trunk@29879 -
2011-03-17 02:31:57 +00:00
juha
f38190794b Formatting: joined lines where only ');' was split to its own line, in procedure defs.
git-svn-id: trunk@29871 -
2011-03-16 16:52:28 +00:00
juha
fb73313173 LCL: Remove UTrace unit use from Controls. It was not used elsewhere.
git-svn-id: trunk@29825 -
2011-03-13 22:46:29 +00:00
paul
1f90a967b2 lcl: remove 'const' modifier from DoContextPopup declaration for delphi compatibility
git-svn-id: trunk@29694 -
2011-03-01 03:57:09 +00:00
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
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
mattias
29ed629a01 LCL: handling WMWindowPosChanged form interface
git-svn-id: trunk@24971 -
2010-04-26 16:25:26 +00:00
mattias
7b5a4418e3 LCL: trigger OnResize after the LCL has autosized once, Parent is called after Childs
git-svn-id: trunk@24848 -
2010-04-23 09:26:12 +00:00
mattias
c4c7983818 LCL: call TDockManager.ResetBounds in TWinControl.AlignControls for Delphi compatibility
git-svn-id: trunk@24829 -
2010-04-22 20:57:25 +00:00
paul
e35edecdc5 lcl: return back TData and TTime definitions
git-svn-id: trunk@24778 -
2010-04-21 02:02:42 +00:00
mattias
d55f679aeb LCL: call DockManager.ResetBounds on every change bounds
git-svn-id: trunk@24763 -
2010-04-20 22:40:59 +00:00
paul
163ee22f48 lcl: apply patch of Sven Barth to remove TDate, TTime types declarations for FPC >= 2.5 (issue #0015474)
git-svn-id: trunk@24714 -
2010-04-19 08:21:15 +00:00
mattias
5c3e8a2458 LCL: moved form positon code to TCustomForm.MoveToDefaultPosition, positioning form before sending bounds to interface
git-svn-id: trunk@24498 -
2010-04-08 11:02:45 +00:00
mattias
6f3d675400 LCL: added ControlStyle csAutoSize0x0 to allow shrinking controls to 0,0 - the widgetset constraints will still apply, TPanel uses this
git-svn-id: trunk@24444 -
2010-04-05 18:49:54 +00:00
mattias
c89fa706ff LCL: AutoSize=true, no childs, no content, consider AdjustClientRect
git-svn-id: trunk@24440 -
2010-04-05 18:08:52 +00:00
mattias
7d8ef3e279 LCL: comments
git-svn-id: trunk@24390 -
2010-04-04 09:33:57 +00:00
mattias
64714af5b6 LCL: fixed oldautosize
git-svn-id: trunk@24385 -
2010-04-03 22:07:28 +00:00
mattias
3729314672 LCL: TControl.DoAutoSize: autosizes to peferred size
git-svn-id: trunk@24379 -
2010-04-03 15:52:01 +00:00
mattias
68c75f3577 LCL: TToolBar using SetBounds to not struggle with the LCL
git-svn-id: trunk@24378 -
2010-04-03 14:14:47 +00:00
mattias
e16bb0cfa4 LCL:
autosize: turn childs visible before parent
autosize without visible handle: clear requests
TWinControl.UpdateControlState: call AdjustSize to delay showing after bound computation
TWinControl.WMSize: ignore if no bounds were sent to intf
TToolBar.CreateWnd: delay autosize
TControl.DoAllAutoSize: do not autosize invisible controls

git-svn-id: trunk@24377 -
2010-04-03 13:28:35 +00:00
mattias
9ec360a2e8 LCL: newautosize: AutoSizeDelayed ignore HandleAllocated, UpdateControlState: call AdjustSize instead of UpdateShowing to delay showing after the bounds have been computed
git-svn-id: trunk@24256 -
2010-03-27 22:58:28 +00:00
mattias
c70222fe4e LCL: debugging for disableautosizing
git-svn-id: trunk@24096 -
2010-03-19 11:24:42 +00:00
mattias
e7b5a78d0f LCL: added debugging for Disable/EnableAutoSizing
git-svn-id: trunk@24094 -
2010-03-19 11:11:47 +00:00
mattias
7699be6191 LCL: removed LockBaseBounds, OnChangeBounds can now change its own bounds, bug #16028
git-svn-id: trunk@24085 -
2010-03-18 15:05:07 +00:00
mattias
f736a0b704 LCL: autosize: removed autosizecanstart
git-svn-id: trunk@24042 -
2010-03-16 15:02:05 +00:00
paul
eef0d16e78 lcl: fix LM_CONTEXTMENU handling - use another message structure (windows compatible). also hopefully fixes 64bit compilation (issue #0016000)
git-svn-id: trunk@24011 -
2010-03-15 14:23:02 +00:00
paul
770d3e2d9d lcl: fix new autosize to work with ParentWindow too
git-svn-id: trunk@24003 -
2010-03-15 03:24:29 +00:00
mattias
36ed6fbb12 LCL: added TCOntrolState csCreating for Delph compatibility
git-svn-id: trunk@23957 -
2010-03-11 21:46:51 +00:00
mattias
6c43608618 LCL: removed unused flag csCreating
git-svn-id: trunk@23952 -
2010-03-11 20:59:37 +00:00
mattias
874b22249a LCL: made NewAutoSize default, added -dOldAutoSize
git-svn-id: trunk@23943 -
2010-03-11 15:49:01 +00:00
mattias
4402426dd3 lcl: newautosize: create parent handle before child handle
git-svn-id: trunk@23872 -
2010-03-07 23:43:23 +00:00
mattias
3d1b378679 LCL: newautosize: create parent handle before child handles
git-svn-id: trunk@23854 -
2010-03-07 00:09:38 +00:00
paul
a20e1dcaac lcl: change use of CreateParams:
- move TForm.PopupParent handling to CreateParams (it only chooses a right Parent handle)
  - check also ParentWindow property when setting WndParent in CreateParams
win32: use TCreateParams WndParent property for CreateWindow

git-svn-id: trunk@23840 -
2010-03-05 08:14:49 +00:00
marc
b34a510ef8 * lcl: added missing ChangeBiDiModeAlignment procedure. Part of lclextentions integration.
git-svn-id: trunk@23551 -
2010-01-24 18:11:51 +00:00
blikblum
442c987512 lcl: use message CM_PARENTFONTCHANGED to notify of parent font change. This is Delphi compatible, fixes the order of the font change events and is consistent with the other parent properties notifications: Color, ShowHint, BidiMode
git-svn-id: trunk@23246 -
2009-12-24 01:05:47 +00:00
paul
3319ecca5b lcl: add GetOwner to some TPersistent descendants
git-svn-id: trunk@23237 -
2009-12-23 08:48:01 +00:00
paul
5b7d36de82 lcl, designer, ideintf, components: rename csOwnedChildsNotSelectable -> csOwnedChildrenNotSelectable
git-svn-id: trunk@23185 -
2009-12-18 10:07:11 +00:00
paul
f5ace1ab3f lcl: fix spelling 'childs' -> 'children'
git-svn-id: trunk@23180 -
2009-12-18 08:09:57 +00:00
paul
4e64aed98d lcl: formatting
git-svn-id: trunk@23146 -
2009-12-15 05:53:22 +00:00
paul
0f2bfd7211 lcl: don't store Color property if Parent=nil but ParentColor = False - this causes ancestor frames which have no parent to load wrong clWindow color
git-svn-id: trunk@22933 -
2009-12-03 07:47:02 +00:00
mattias
0d6aff22e1 csOwnedChildsSelectable inverted and renamed to csOwnedChildsNotSelectable
git-svn-id: trunk@22852 -
2009-11-28 15:18:27 +00:00
mattias
f0afca08f5 LCL: reduced debugging under wince
git-svn-id: trunk@22777 -
2009-11-25 22:16:26 +00:00
paul
c911276182 lcl: send CM_CONTROLLISTCHANGE also on Remove (not only on Insert), add TCM_CONTROLLISTCHANGE structure (for delphi compatibility)
git-svn-id: trunk@22724 -
2009-11-23 14:10:17 +00:00
paul
ef7f9fa1de lcl: add protected property WindowHandle for TControl (issue #0015166)
git-svn-id: trunk@22723 -
2009-11-23 13:54:49 +00:00
paul
cf37ea98d1 lcl: bidi mode support for TColorBox, TColorListBox from Zeher Dirkey (issue #0015001)
git-svn-id: trunk@22449 -
2009-11-05 15:01:57 +00:00
paul
616c9d4e4d lcl: docking: replace
DefaultDockTreeClass: TDockTreeClass by
  DefaultDockManagerClass: TDockManagerClass
as requested by DoDi

git-svn-id: trunk@22395 -
2009-11-03 03:20:26 +00:00
paul
9f073bba5d lcl: add Variant => TCaption operator
git-svn-id: trunk@22325 -
2009-10-29 04:35:45 +00:00
paul
a350849e6b lcl: patch from Zaher Dirkey to fix TLabel and TStaticText alignment with respect the BiDi mode (issue #0014915)
git-svn-id: trunk@22312 -
2009-10-28 09:49:18 +00:00
mattias
26c3fe503f LCL: TCustomUpDown: using KeyDown event handler instead of OnKeyDown
git-svn-id: trunk@22151 -
2009-10-13 20:15:54 +00:00
mattias
96b6819584 LCL: new autosize: added AutoSizePhase
git-svn-id: trunk@22058 -
2009-10-06 16:14:27 +00:00
paul
89b271b14f lcl: remove dummy constructor and destructor from TMouse class
git-svn-id: trunk@22035 -
2009-10-05 03:25:02 +00:00
paul
a3d64e981d lcl: simplified Mouse.GetCursorPos + formatting
git-svn-id: trunk@22034 -
2009-10-05 03:17:37 +00:00
mattias
02b4b8e04b LCL: newautosize delaying autosize
git-svn-id: trunk@21720 -
2009-09-15 22:45:42 +00:00
mattias
313244d699 LCL: merged TWinControl.FControls/FWinControls - needed for layouts
git-svn-id: trunk@21707 -
2009-09-15 01:01:00 +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
mattias
7799ac78c6 LCL: started new autosizing phases
git-svn-id: trunk@21491 -
2009-08-30 21:30:57 +00:00
mattias
074aa39eb1 IDE: disable csSetCaption when creating component, caption is set during loading OR when creating a new component, but not both, needed for empty caption
git-svn-id: trunk@21472 -
2009-08-28 06:54:14 +00:00
mattias
8300860867 LCL: reordered variables of TAnchorSide as workaround for bug #14364
git-svn-id: trunk@21345 -
2009-08-20 10:39:26 +00:00
sekelsenmat
9d1b80451a Changes all dynamic methods in the ide, lclintf and lcl to virtual methods, because they are the same in fpc and dynamic is a legacy directive
git-svn-id: trunk@21280 -
2009-08-18 14:44:25 +00:00
paul
523351a53f lcl: formatting
git-svn-id: trunk@21263 -
2009-08-17 16:07:23 +00:00
paul
fd9e3c084e lcl: properly release control resources on TWinControl.DestroyWnd:
- notify child controls (only TControl, not TWinControl) before parent handle destruction to perform appropriate preparations inside controls
  - release canvas handle of TGraphicControl when before parent handle destruction
(fixes issue #0014152)

git-svn-id: trunk@20874 -
2009-07-17 02:44:31 +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
mattias
6da7ac1398 LCL: implemented BidiMode for ChildSizing.Layout
git-svn-id: trunk@20557 -
2009-06-09 17:39:04 +00:00
paul
8140fd8755 lcl: add more extra mouse buttons support
git-svn-id: trunk@20536 -
2009-06-09 04:25:32 +00:00
mattias
e50a4f4556 LCL: TAnchorSide.GetSidePosition check always for circles
git-svn-id: trunk@20298 -
2009-05-29 14:24:23 +00:00
paul
656d65cb06 lcl: LDockTree: fix drop to non-empty root zone (issue #0013770)
git-svn-id: trunk@20080 -
2009-05-20 14:55:59 +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
7f29518b52 lcl: add Sender argument to TDockManager.MessageHandler
git-svn-id: trunk@20059 -
2009-05-20 02:22:52 +00:00
paul
fe8960bd81 lcl: rename TDockManager.MouseMessage to TDockManager.MessageHandler to allow handling of more messages
git-svn-id: trunk@20058 -
2009-05-20 02:19:28 +00:00
paul
3cd340fe31 lcl: formatting
git-svn-id: trunk@19966 -
2009-05-15 01:57:42 +00:00
paul
3e258b4ef8 lcl: request Font and Color update after DestroyWnd call to properly restore them after new Handle creation (fixes issue #0011935)
git-svn-id: trunk@19936 -
2009-05-12 05:23:55 +00:00
paul
469effabc4 lcl: don't compare old capture control with new in SetCaptureControl, do it in any case. Read description in comment. Fixes issue #13615.
git-svn-id: trunk@19705 -
2009-04-30 08:21:17 +00:00
paul
4a1309f268 lcl: formatting
git-svn-id: trunk@19704 -
2009-04-30 08:04:12 +00:00
paul
670a37d8c4 lcl: add comments why Left, Top, Height, Width have no default values
git-svn-id: trunk@19632 -
2009-04-26 12:54:56 +00:00
paul
f422f8db79 lcl: set default value for TControl.DoubleBuffered (issue #0013593)
git-svn-id: trunk@19630 -
2009-04-26 12:15:44 +00:00
paul
cf6f94ec98 lcl: forgotten change
git-svn-id: trunk@19437 -
2009-04-15 07:25:50 +00:00
paul
837c2f1563 lcl: cleanup
git-svn-id: trunk@19392 -
2009-04-13 01:26:30 +00:00
paul
f02c53c71c merge lcl-smartlink branch:
------------------------------------------------------------------------
r19294 | paul | 2009-04-10 11:17:35 +0800 (Птн, 10 Апр 2009) | 1 line

lcl, win32: start optimizations: imglist (all), controls (all), combtrls (statubar)
------------------------------------------------------------------------
r19305 | martin | 2009-04-10 21:53:27 +0800 (Птн, 10 Апр 2009) | 1 line

Moved "DoneRegisterCheck" to global LCL
------------------------------------------------------------------------
r19306 | martin | 2009-04-10 22:14:57 +0800 (Птн, 10 Апр 2009) | 1 line

Moved "DoneRegisterCheck" to global LCL (more)
------------------------------------------------------------------------
r19307 | martin | 2009-04-10 22:22:44 +0800 (Птн, 10 Апр 2009) | 1 line

changed case true => True
------------------------------------------------------------------------
r19308 | paul | 2009-04-10 22:28:28 +0800 (Птн, 10 Апр 2009) | 1 line

fix file case
------------------------------------------------------------------------
r19311 | martin | 2009-04-10 23:09:16 +0800 (Птн, 10 Апр 2009) | 1 line

Moved Registration of TCustomCalendar
------------------------------------------------------------------------
r19312 | martin | 2009-04-10 23:28:03 +0800 (Птн, 10 Апр 2009) | 1 line

Moved PropertyToSkip for TCalender
------------------------------------------------------------------------
r19314 | paul | 2009-04-10 23:50:30 +0800 (Птн, 10 Апр 2009) | 1 line

merge r13913 #999e8b059d
------------------------------------------------------------------------
r19315 | paul | 2009-04-10 23:53:07 +0800 (Птн, 10 Апр 2009) | 1 line

cleanup WSCalendar
------------------------------------------------------------------------
r19316 | paul | 2009-04-11 00:37:44 +0800 (Сбт, 11 Апр 2009) | 1 line

finish with ComCtrls
------------------------------------------------------------------------
r19318 | martin | 2009-04-11 01:37:40 +0800 (Сбт, 11 Апр 2009) | 1 line

Moved dialogs
------------------------------------------------------------------------
r19319 | martin | 2009-04-11 01:47:30 +0800 (Сбт, 11 Апр 2009) | 1 line

Moved dialogs
------------------------------------------------------------------------
r19320 | martin | 2009-04-11 02:47:52 +0800 (Сбт, 11 Апр 2009) | 1 line

Moved ExtCtrls, ExtDlgs
------------------------------------------------------------------------
r19321 | martin | 2009-04-11 03:23:32 +0800 (Сбт, 11 Апр 2009) | 1 line

Moved PropertyToSkip
------------------------------------------------------------------------
r19322 | martin | 2009-04-11 03:37:39 +0800 (Сбт, 11 Апр 2009) | 1 line

Moved StdCtrls
------------------------------------------------------------------------
r19323 | martin | 2009-04-11 04:05:50 +0800 (Сбт, 11 Апр 2009) | 1 line

Moved Buttons
------------------------------------------------------------------------
r19325 | paul | 2009-04-11 11:02:26 +0800 (Сбт, 11 Апр 2009) | 1 line

remove DirSel
------------------------------------------------------------------------
r19326 | paul | 2009-04-11 11:11:37 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterArrow
------------------------------------------------------------------------
r19327 | paul | 2009-04-11 11:32:09 +0800 (Сбт, 11 Апр 2009) | 1 line

register WS classes only for TCustomXXX classes if they are available (like TCustomScrollBar instead of TScrollBar) and only for those descendants which really differ (like TRadioButton, TToggleButton)
------------------------------------------------------------------------
r19328 | paul | 2009-04-11 11:40:00 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterCustomCheckBox
------------------------------------------------------------------------
r19329 | paul | 2009-04-11 11:57:22 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterXXX for Forms
------------------------------------------------------------------------
r19330 | paul | 2009-04-11 12:13:05 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterCustomGrid + move of RegisterPropertyToSkip
------------------------------------------------------------------------
r19331 | paul | 2009-04-11 12:24:29 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterXXX for Menus
------------------------------------------------------------------------
r19332 | paul | 2009-04-11 12:35:16 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterXXX for PairSplitter
------------------------------------------------------------------------
r19333 | paul | 2009-04-11 12:47:39 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterXXX for Spin
------------------------------------------------------------------------
r19334 | paul | 2009-04-11 12:58:55 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterCustomRubberBand
------------------------------------------------------------------------
r19335 | paul | 2009-04-11 13:31:43 +0800 (Сбт, 11 Апр 2009) | 1 line

remove 2 initialization sections
------------------------------------------------------------------------
r19336 | paul | 2009-04-11 13:46:26 +0800 (Сбт, 11 Апр 2009) | 1 line

remove TPopupNotifier.png from LCL
------------------------------------------------------------------------
r19338 | paul | 2009-04-11 13:54:03 +0800 (Сбт, 11 Апр 2009) | 1 line

cleanup
------------------------------------------------------------------------
r19341 | paul | 2009-04-11 14:59:27 +0800 (Сбт, 11 Апр 2009) | 1 line

cleanup
------------------------------------------------------------------------
r19343 | martin | 2009-04-11 19:59:18 +0800 (Сбт, 11 Апр 2009) | 1 line

Reduced Unit-Circles, by moving Register* into WS* units
------------------------------------------------------------------------
r19344 | martin | 2009-04-11 20:22:49 +0800 (Сбт, 11 Апр 2009) | 1 line

Dummy file for gtk
------------------------------------------------------------------------
r19345 | martin | 2009-04-11 21:06:55 +0800 (Сбт, 11 Апр 2009) | 1 line

Initial move of gtk1 register
------------------------------------------------------------------------
r19346 | martin | 2009-04-11 21:19:48 +0800 (Сбт, 11 Апр 2009) | 1 line

Missing dependencies in gtk1 wsfactory
------------------------------------------------------------------------
r19347 | martin | 2009-04-11 22:36:42 +0800 (Сбт, 11 Апр 2009) | 1 line

Declare register* in interface, to keep external linker happy
------------------------------------------------------------------------
r19348 | martin | 2009-04-11 23:34:16 +0800 (Сбт, 11 Апр 2009) | 1 line

Declare register* in interface, to keep external linker happy 
------------------------------------------------------------------------
r19349 | martin | 2009-04-11 23:39:20 +0800 (Сбт, 11 Апр 2009) | 1 line

moved uses for factory
------------------------------------------------------------------------
r19350 | martin | 2009-04-11 23:41:57 +0800 (Сбт, 11 Апр 2009) | 1 line

corrected a few accidental "Result := False"
------------------------------------------------------------------------
r19351 | paul | 2009-04-12 00:04:15 +0800 (Вск, 12 Апр 2009) | 1 line

removed unused units
------------------------------------------------------------------------
r19352 | paul | 2009-04-12 00:05:26 +0800 (Вск, 12 Апр 2009) | 1 line

qt: move RegisterWS calls to qtwsfactory
------------------------------------------------------------------------
r19354 | paul | 2009-04-12 01:04:04 +0800 (Вск, 12 Апр 2009) | 1 line

wince: move RegisterWS calls to WinCEWSFactory
------------------------------------------------------------------------
r19356 | martin | 2009-04-12 01:39:56 +0800 (Вск, 12 Апр 2009) | 1 line

moved GTK2
------------------------------------------------------------------------
r19357 | martin | 2009-04-12 01:45:31 +0800 (Вск, 12 Апр 2009) | 1 line

moved GTK2 / missing units
------------------------------------------------------------------------
r19358 | martin | 2009-04-12 01:57:43 +0800 (Вск, 12 Апр 2009) | 1 line

Fixed one return value from register
------------------------------------------------------------------------
r19360 | martin | 2009-04-12 02:47:42 +0800 (Вск, 12 Апр 2009) | 1 line

Gtk2 , needs 2 registrations for WinControl
------------------------------------------------------------------------
r19361 | martin | 2009-04-12 02:57:58 +0800 (Вск, 12 Апр 2009) | 1 line

Gtk2 , needs 2nd registrations
------------------------------------------------------------------------
r19368 | paul | 2009-04-12 13:09:59 +0800 (Вск, 12 Апр 2009) | 1 line

cleanup
------------------------------------------------------------------------
r19373 | paul | 2009-04-12 13:45:17 +0800 (Вск, 12 Апр 2009) | 1 line

wince: forgotten file
------------------------------------------------------------------------
r19374 | paul | 2009-04-12 14:04:04 +0800 (Вск, 12 Апр 2009) | 1 line

carbon: move RegisterWSComponent to CarbonWSFactory
------------------------------------------------------------------------
r19375 | paul | 2009-04-12 14:27:47 +0800 (Вск, 12 Апр 2009) | 1 line

cleanup
------------------------------------------------------------------------

git-svn-id: trunk@19376 -
2009-04-12 08:46:31 +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
e9ab826ce1 lcl: fix TDragObjectEx and other Ex object Create constructors (by patch of Hans-Peter Diettrich, part of #0013427)
git-svn-id: trunk@19187 -
2009-04-01 14:23:44 +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
c501a479b7 lcl: allow to set crNone cursor in the designer (issue #0013424)
git-svn-id: trunk@19160 -
2009-03-30 13:45:16 +00:00
paul
9713e8b48c lcl: add TControl.AutoSizingLockCount protected read only property for use in child classes,
don't remove fsDisableAutoSize in TCustomForm.WMPaint handler if we are inside AutoSizing (fixes bug #0013378)

git-svn-id: trunk@19071 -
2009-03-23 09:34:48 +00:00
paul
0265fae03f lcl: implemented GetParentComponent for TControl (part of issue #0013217) from Alexander S. Klenin
git-svn-id: trunk@18781 -
2009-02-20 17:55:47 +00:00
paul
fbfc224459 lcl: Color property storing (fixes bug #0012322)
- change default ColorIsStored method. It was written probably to override old fpc streaming bug. Now it only checks for ParentColor property. If control want to skip some color storing then simple Default value need to be filled.
- remove TButtonControl.ColorIsStored, TStatusBar.ColorIsStored. Default value for color property do this job
- introduce new function IsColorDefault(AControl: TControl): Boolean; which checks both ParentColor and default color value
- gtk: use IsColorDefault instead of IsColorStored

git-svn-id: trunk@18744 -
2009-02-18 08:40:13 +00:00
sekelsenmat
ddf3663f55 Adds a setShape for regions in TWinControl
git-svn-id: trunk@18665 -
2009-02-13 15:35:02 +00:00
paul
e14c92e885 lcl: apply few comments related to docking from Hans-Peter Diettrich (issue #0013118)
git-svn-id: trunk@18625 -
2009-02-10 02:01:54 +00:00
paul
6fc8235611 lcl: apply patch of Stephano to make some method declarations more delphi compatible (issue #0013125)
git-svn-id: trunk@18593 -
2009-02-06 17:50:50 +00:00
paul
80e3207944 fix gtk autosize loop
git-svn-id: trunk@18574 -
2009-02-05 02:55:49 +00:00
paul
702dc11c4c lcl: apply patch of Hans-Peter Diettrich (issue #0013034) - Missing dock manager notifications (with small my changes)
git-svn-id: trunk@18573 -
2009-02-05 02:06:26 +00:00
paul
68603b956b lcl: remove Crl3D, ParentCtl3D properties, register them as properties to skip
git-svn-id: trunk@18517 -
2009-01-31 12:04:03 +00:00
paul
748f663981 lcl: BorderWidth
- TWinControl: send CM_BORDERCHANGED when borderwidth property is changed
  - TPanel: move DoAdjustClientRectCache to the TWinControl CM_BORDERCHANGED handler; use that handler to handle bevel changes; use TWinControl BorderWidth property instead of own
  - implement TForm.BorderWidth (part of issue #0001182)
  

git-svn-id: trunk@18513 -
2009-01-31 11:27:20 +00:00
paul
75fcdb8abe lcl: initial support for arrow keys, handle CM_WANTSPECIALKEY for tabs and arrows
git-svn-id: trunk@18461 -
2009-01-27 09:05:42 +00:00