Commit Graph

590 Commits

Author SHA1 Message Date
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