Commit Graph

795 Commits

Author SHA1 Message Date
sekelsenmat
355493350f Temporary fix for TListView crashes. See bug #21059
git-svn-id: trunk@34696 -
2012-01-10 18:19:40 +00:00
sekelsenmat
07b94b092f Now connects setting the accessible fields to LCLIntf via TControl.SetAccessibleFields and starts the carbon accessibility fields implementation
git-svn-id: trunk@34689 -
2012-01-09 19:23:10 +00:00
sekelsenmat
b3a3ec2fb9 Rearchitectures LazAccessibility_SetFields in order to support TControl
git-svn-id: trunk@34688 -
2012-01-09 18:05:00 +00:00
sekelsenmat
1f545e968d Many DPI fixes for customdrawn_common and Android support
git-svn-id: trunk@34320 -
2011-12-20 10:35:32 +00:00
sekelsenmat
217b6bb45b Changes the lapDefault resolution into Application.Initialize
git-svn-id: trunk@34289 -
2011-12-19 18:59:14 +00:00
sekelsenmat
cc0e04b161 Finishes the basic implementation of dpi and screen rotation adjustment for Android. Not 100% perfect, but in general already functional.
git-svn-id: trunk@34279 -
2011-12-19 13:51:13 +00:00
sekelsenmat
b5a59868f9 Commits the first part of layout auto-adjustment support in the LCL
git-svn-id: trunk@34272 -
2011-12-19 10:25:13 +00:00
mattias
21bf214ace LCL: TControl.SetAlign: do not clean AnchorSides for alNone, alCustom
git-svn-id: trunk@34077 -
2011-12-09 19:55:12 +00:00
mattias
8ccddae67e LCL: TControl.SetAlign: do not set AnchorSides while loading
git-svn-id: trunk@34075 -
2011-12-09 19:48:52 +00:00
mattias
011e74dc5a LCL: TControl.SetAlign: do not set AnchorSides while loading
git-svn-id: trunk@34074 -
2011-12-09 19:41:51 +00:00
zeljko
a54eb80b2f LCL: added IsParentFont:Boolean and IsParentColor: Boolean to read protected ParentFont and ParentColor from TControl.Needed by widgetsets.
git-svn-id: trunk@33282 -
2011-11-04 09:30:36 +00:00
sekelsenmat
943326f458 Renames GetRGBBackgroundColor to GetRGBColorResolvingParent because the previous name was wrong. It has not necessarily to be a background color, it is really just the Color.
git-svn-id: trunk@33280 -
2011-11-04 08:54:55 +00:00
juha
123ceac181 LCL: remove obsolete AlignNames, AnchorNames and AutoSizePhaseNames. Use WriteStr
git-svn-id: trunk@33233 -
2011-11-02 23:15:07 +00:00
mattias
2cd66811f0 LCL: delay autosizing when form is minimized
git-svn-id: trunk@33145 -
2011-10-29 07:28:02 +00:00
sekelsenmat
2c0cc4c4d4 Reverts the previous removal of TLMouseEvent.State
git-svn-id: trunk@33114 -
2011-10-27 18:03:01 +00:00
sekelsenmat
1c344c9372 Renames GetRGBColor to make it more unique, the old name had too many conflicts
git-svn-id: trunk@33102 -
2011-10-26 17:32:31 +00:00
sekelsenmat
cae025b734 Adds helper routines to TControl to obtain the background color
git-svn-id: trunk@33093 -
2011-10-26 15:22:45 +00:00
sekelsenmat
73f0887e09 Fixes bug #20065. Removes ssCaps, ssNum and ssScroll because they are implemented based on the key lock in win32, which is not the same as shift state, they are added only for MouseWhell events and very unreliable across platforms (cannot be correctly implemented in win32 for example). Also corrects the ShiftState for MouseWhell messages in Windows. Removes State from the mousewhell internal message, now Button is used, which is more consistent with Win32.
git-svn-id: trunk@33092 -
2011-10-26 15:08:10 +00:00
juha
e9ccc22476 Revert earlier changes of ShowHint/ParentShowHint logic but improve fetching a hint text from parents when needed
git-svn-id: trunk@33089 -
2011-10-26 13:35:47 +00:00
juha
bd619d70e5 LCL: fix wrong behavior between ShowHint and ParentShowHint.
git-svn-id: trunk@33080 -
2011-10-25 09:30:06 +00:00
zeljko
928292514b LCL: added public TControl.IsParentShowHint:boolean function, to check parentShowHint property, since ParentShowHint is protected.For now it's used only in GetHintControl() in application.inc.Fixes issue #20518.
git-svn-id: trunk@33020 -
2011-10-22 12:47:44 +00:00
sekelsenmat
5e67d91117 applies patch from bug #20252: [Patch] BitBtn with Kind<>bkCustom should not save Caption to LFM but be translated via lclstrconsts
git-svn-id: trunk@32648 -
2011-10-03 08:55:56 +00:00
mattias
50ff6b7890 LCL: TControl.Click: call OnClick if set and differs from Action for Delphi compatibility
git-svn-id: trunk@32583 -
2011-10-01 13:16:37 +00:00
mattias
8cc6b6ba82 LCL: TControl.Click: simplified
git-svn-id: trunk@32582 -
2011-10-01 13:08:53 +00:00
mattias
8b557e425b LCL: TControl.Click: fixed check if OnClick differs from Action.OnExecute
git-svn-id: trunk@32579 -
2011-10-01 07:51:58 +00:00
mattias
43bf91ff49 LCL: clean up
git-svn-id: trunk@32563 -
2011-09-30 07:53:38 +00:00
zeljko
f293b829fd LCL: TControl.IsEnabled, removed wrong check for TheControl.Parent. issue #20291
git-svn-id: trunk@32512 -
2011-09-25 15:35:14 +00:00
zeljko
863690f066 LCL: fixed bug in TControl.IsEnabled, must check for local control pointer.
git-svn-id: trunk@32505 -
2011-09-24 18:58:39 +00:00
zeljko
dabae664fe LCL: TGraphicControl.VisuallyEnabled moved to TControl.IsEnabled, also fixed var naming in some units from IsEnabled to AIsEnabled. issue #20291
git-svn-id: trunk@32492 -
2011-09-24 08:20:55 +00:00
juha
ea9e588d42 LCL: add EnabledChanging and EnabledChanged events for TControl. Issue #20300, patch from Silvio Clécio
git-svn-id: trunk@32465 -
2011-09-23 08:30:48 +00:00
martin
bb8ada822a fix one occurrence of DebugDisableAutoSizing
git-svn-id: trunk@32151 -
2011-09-01 22:44:37 +00:00
zeljko
22044ba7f7 LCL: fixed TControl.InvalidateControl paint rect.We must take into account our parent scroll offset.
git-svn-id: trunk@31578 -
2011-07-06 21:42:00 +00:00
paul
5f4b4f6838 lcl: formatting
git-svn-id: trunk@31350 -
2011-06-24 03:51:43 +00:00
mattias
ab7c9eb2f2 LCL: TControl.SetAlign: change back to BaseBounds like VCL Explicit*
git-svn-id: trunk@30822 -
2011-05-19 21:15:08 +00:00
mattias
cc85f36b4e LCL: restore base bounds when changing TControl.Align
git-svn-id: trunk@30782 -
2011-05-17 10:37:27 +00:00
paul
2bd0c336c8 lcl: formatting
git-svn-id: trunk@30045 -
2011-03-28 07:10:57 +00:00
paul
a9cde4b80b lcl: cleanup
git-svn-id: trunk@29881 -
2011-03-17 06:19:54 +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
01db3bb47c LCL (mostly), Replace Assert(False... with //DebugLn(... Now Assert can be used for its original purpose again.
git-svn-id: trunk@29820 -
2011-03-13 18:21:51 +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
paul
35ffa66fe0 lcl: don't call Resize for invisible controls in DoAllAutosize
git-svn-id: trunk@28676 -
2010-12-11 05:21:19 +00:00
paul
6c01fc2949 lcl: don't highlight toolbar when modal form is active (partly fixes bug #0017993)
git-svn-id: trunk@28398 -
2010-11-22 08:02:10 +00:00
paul
a2e75a4b8d lcl: formatting
git-svn-id: trunk@28393 -
2010-11-22 06:13:31 +00:00
mattias
508c4988a6 codetools: class completion: adding the first method body using the options for procs
git-svn-id: trunk@28319 -
2010-11-18 17:16:58 +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
d633f09ea1 lcl: fix scaling of font. default font has 0 size/height, use real height instead. fix scaling of TWinControl: children must be scaled first to prevent problems with auto sized forms
git-svn-id: trunk@28185 -
2010-11-12 08:26:55 +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
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
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
paul
4b114b6eb4 lcl: send CM_COLORCHANGED on control color change
git-svn-id: trunk@27935 -
2010-10-29 06:13:36 +00:00
mattias
2e3d83111a LCL: fixed handling BaseBounds=0x0, TButtonPanel: using Align, bug #17719
git-svn-id: trunk@27929 -
2010-10-28 20:00:35 +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
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
60f7ac9ff1 IDE: moved project types to projectdefs
git-svn-id: trunk@26991 -
2010-08-03 10:38:43 +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
35a4f8ad05 lcl, win32: better support for wm_help command. pass context and keyword to DoOnHelp in a compatible to delphi way (issue #0015065)
git-svn-id: trunk@26744 -
2010-07-20 08:43:36 +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
80c3026e14 lcl: formatting, move some exception texts to lclstrconsts, use EInvliadOperation instead Exception class for raising various controls related exceptions
git-svn-id: trunk@26659 -
2010-07-15 03:37:24 +00:00
paul
a3dac0b6df lcl: redo context menu message handling:
- when called by keyboard pass -1, -1 coords
  - remove child->parent loop from LCL to widgetsets (win32 and wince do this automatically, qt do it too if mouse propagation is on)
  - don't show parent context menu if child has own standard menu (like TEdit)
qt: redo mouse handling, turn on mouse propagation and mouse tracking for most of widgets, stop propagation in event filters
gtk2: implement context menu loop
widgetsets: remove LM_PRESSED, LM_RELEASED messages (LCL does not use them and they are not needed for any compatbility reasons)

git-svn-id: trunk@26637 -
2010-07-14 08:47:02 +00:00
mattias
22a192ff6e LCL: implemented preferredsize for TScrollBar, bug #16855
git-svn-id: trunk@26635 -
2010-07-14 07:37:30 +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
60ab9873f3 LCL: TControl.GetDefaultWidth/Height: base bounds are independent of autosize
git-svn-id: trunk@26468 -
2010-07-05 07:47:20 +00:00
mattias
70b09d3d69 LCL: computing preferred clientrect: fixed to use Child.GetDefaultWidth/Height and fixed GetDefaultWidth/Height to use BaseBounds only if size is fixed
git-svn-id: trunk@26451 -
2010-07-04 05:13:32 +00:00
mattias
d130d94e34 LCL: debugging
git-svn-id: trunk@26341 -
2010-06-30 06:53:15 +00:00
mattias
ac56a26e10 anchordocking: unregister custom docksite on restore
git-svn-id: trunk@26339 -
2010-06-30 06:19:19 +00:00
mattias
a8f9721a8d LCL: TControl.SetName: skip overhead when name not changed
git-svn-id: trunk@26231 -
2010-06-21 11:38:02 +00:00
mattias
c5c3f76ed1 LCL: fixed unreferencing in TControl, bug #16571
git-svn-id: trunk@26164 -
2010-06-18 03:28:25 +00:00
mattias
9e959c5e20 TControl.EnableAutoSizing: improved exception
git-svn-id: trunk@26061 -
2010-06-12 17:04:18 +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
588c1c85ab IDE: File new / ok without selection: do not close dialog
git-svn-id: trunk@25869 -
2010-06-03 17:16:23 +00:00
mattias
40c5e2cd18 LCL: comments
git-svn-id: trunk@25800 -
2010-05-31 09:44:16 +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
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
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
paul
65b652094f lcl: cleanup
git-svn-id: trunk@25295 -
2010-05-10 13:22:00 +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
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
c2217939aa lcl: formatting
git-svn-id: trunk@25165 -
2010-05-04 06:14:47 +00:00
paul
958a4ce3cd lcl: formatting
git-svn-id: trunk@25164 -
2010-05-04 05:44:29 +00:00
mattias
ecc75765fe LCL: TScrollingWinControl: use GetPreferredSize to compute ranges, CalculatePreferredSize: fixed computing mix of Layout and non Layout controls, fixed using 0x0 size of TPanel
git-svn-id: trunk@25070 -
2010-04-29 19:54:03 +00:00
mattias
8e46525cff LCL: added debugging flag -dVerboseClientRectBugFix
git-svn-id: trunk@25011 -
2010-04-27 15:42:03 +00:00
mattias
3fddde242b LCL: if WMWindowPosChanged message does not come from interface, ignore
git-svn-id: trunk@24977 -
2010-04-26 17:36:19 +00:00
mattias
135c2f2b0c LCL: fixed crash in TControl.DoFloatMsg
git-svn-id: trunk@24972 -
2010-04-26 16:25:55 +00:00
paul
44427e31a1 win32: use SetWindowPos to set position, size and visibility of the windows - this allows to reliable receive wm_windowposchanged message
git-svn-id: trunk@24960 -
2010-04-26 09:52:47 +00:00
mattias
bd70175a98 LCL: TControl.CreateFloatingDockSite: own the floatingsite, so that is destroyed with the control
git-svn-id: trunk@24939 -
2010-04-25 21:16:38 +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
mattias
d949c2b8ed LCL: do not call AdjustSize if a control without Parent was only moved, but not resized
git-svn-id: trunk@24912 -
2010-04-25 13:51:27 +00:00
mattias
dbe8bd79b5 LCL: reduce overhead in CreateFloatingDockSite, TControl.DoFloatMsg: show the HostDockSite
git-svn-id: trunk@24908 -
2010-04-25 11:51:15 +00:00
mattias
30eede4ac8 LCL: reduce flicker when docking
git-svn-id: trunk@24906 -
2010-04-25 11:22:27 +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
c720ac78ac TControl.HandleObjectShouldBeVisible check for csDestroying
git-svn-id: trunk@24832 -
2010-04-22 22:22:46 +00:00
mattias
a621fde33e LCL: no autosize for designtime controls with Parent=nil
git-svn-id: trunk@24792 -
2010-04-21 15:12:19 +00:00
mattias
e753b4251f LCL: TControl.ManualDock fixed Disable autosizing
git-svn-id: trunk@24764 -
2010-04-20 22:46:23 +00:00
mattias
0f1f142898 LCL: disable autosize during ManualFloat
git-svn-id: trunk@24757 -
2010-04-20 20:05:59 +00:00
mattias
6e8382eca2 LCL: disable autosize during ManualDock
git-svn-id: trunk@24755 -
2010-04-20 19:24:04 +00:00
paul
de7e3bb122 lcl: formatting
git-svn-id: trunk@24708 -
2010-04-19 03:13:55 +00:00
mattias
d3bbbfee65 LCL: SetBidiMode: call AdjustSize, bug #14951
git-svn-id: trunk@24687 -
2010-04-17 20:08:46 +00:00
mattias
9b64ffb4c8 LCL: TControl.DoDock: when NewDockSite.AutoSize consider Align
git-svn-id: trunk@24455 -
2010-04-05 21:47:07 +00:00
mattias
ed6c7180b2 LCL: TControl.DoDock: when NewDockSite.AutoSize then use current control bounds
git-svn-id: trunk@24454 -
2010-04-05 21:44:29 +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
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
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
paul
2dfb22d93e lcl: apply patch of Juha Manninen which registers more VCL compatibility properties which LCL should skip while reading
git-svn-id: trunk@24327 -
2010-04-01 00:49:45 +00:00
mattias
1ee2beda9e LCL: TLabel: do not change size in DoAutoSize, TWinControl.CreateWnd: invalidatepreferredszie of childs - needed for non TWinControl
git-svn-id: trunk@24263 -
2010-03-28 11:53:08 +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
paul
c93ed80353 lcl: cleanup
git-svn-id: trunk@24161 -
2010-03-22 03:55:06 +00:00
martin
ce1a8b7e1c Undo Revision 24150 #55f4c6d87b ( TControl: Call RemoveFreeNotification on PopUpMenu, when replaced )
git-svn-id: trunk@24156 -
2010-03-22 00:05:44 +00:00
martin
55f4c6d87b TControl: Call RemoveFreeNotification on PopUpMenu, when replaced
git-svn-id: trunk@24150 -
2010-03-21 18:02:07 +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
62fc1305ad LCL: improved debugging changebounds, removed TCustomLabel AdjustSize in loaded
git-svn-id: trunk@24075 -
2010-03-18 00:17:35 +00:00
mattias
3f79d12265 LCL: fixed endless loop on TLabel.SetBounds
git-svn-id: trunk@24074 -
2010-03-17 23:42:45 +00:00
mattias
bf4387a62b LCL: improved debugging, TScrollingWinControl.CreateWnd: reduce autosizing overhead
git-svn-id: trunk@24068 -
2010-03-17 15:46:11 +00:00
mattias
51ff42e26c lcl: reduce autosizing during TControl.Create, updateinterfaceconstraints only if handle is allocated
git-svn-id: trunk@24065 -
2010-03-17 15:04:36 +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
e513f0292c lcl: rework LM_CONTEXTPOPUP - recursively call it on right mouse button up (issue #0015709)
git-svn-id: trunk@24005 -
2010-03-15 07:56:44 +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
874b22249a LCL: made NewAutoSize default, added -dOldAutoSize
git-svn-id: trunk@23943 -
2010-03-11 15:49:01 +00:00
mattias
44d0f22378 LCL: newautosize: removed debugging
git-svn-id: trunk@23942 -
2010-03-11 15:31:17 +00:00
mattias
9402dc6254 lcl: newautosize: skip autosize for non TWinControl
git-svn-id: trunk@23940 -
2010-03-11 15:06:01 +00:00
mattias
da51b1637f lcl: newautosize: reduced debugging
git-svn-id: trunk@23899 -
2010-03-09 17:00:07 +00:00
mattias
399be47abf lcl; newautosize: reduced debugging
git-svn-id: trunk@23894 -
2010-03-09 15:55:00 +00:00
mattias
bc3ac28658 LCL: newautosize: fixed TControl.EndAutoSizing
git-svn-id: trunk@23888 -
2010-03-09 13:18:04 +00:00
paul
233b6549b8 lcl: start implementation for gtk SetParent and TWinControl.ParentWindow
git-svn-id: trunk@23856 -
2010-03-07 06:23:24 +00:00
mattias
f15052d222 LCL: newautosize: more debugging
git-svn-id: trunk@23855 -
2010-03-07 00:43:08 +00:00
mattias
108c4be5b8 lcl: newautosize: fixed beginformupdate
git-svn-id: trunk@23851 -
2010-03-06 23:29:14 +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
mattias
5848a2067c LCL: TControl.FontChanged: moved AutoSize from TWinControl to TControl
git-svn-id: trunk@23367 -
2010-01-04 12:39:53 +00:00
blikblum
81c0ec994c lcl: Reset FParentFont directly in TControl.FontChanged to avoid sending CM_PARENTFONTCHANGED message
git-svn-id: trunk@23259 -
2009-12-24 11:34:56 +00:00
blikblum
0ebeaa915f lcl: In TControl.Loaded reset Parent* properties directly instead of through setter to avoid sending CM_PARENT*CHANGED messages
git-svn-id: trunk@23257 -
2009-12-24 11:07:22 +00:00
paul
52d15f47b8 lcl: revert some Luiz changed regards removing redundant FParentSomething := True changes. They are not redundant!
git-svn-id: trunk@23251 -
2009-12-24 07:16:27 +00:00
blikblum
a6b3593987 lcl: remove check for FParent in since it assumes that FParent <> nil (TForm handles the case FParent = nil)
git-svn-id: trunk@23249 -
2009-12-24 01:26:52 +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
blikblum
55d2de062f lcl: removed redundant assignments in CMParentColorChanged, CMParentShowHintChanged, CMParentBidiModeChanged
git-svn-id: trunk@23245 -
2009-12-23 18:54:46 +00:00
luiz
abdf00ce23 lcl: remove redundant assignment of FParentFont in TControl.ParentFontChanged
git-svn-id: trunk@23242 -
2009-12-23 15:42:04 +00:00
paul
4d5cde8a0f lcl: fix range check errors in TControl.SetBoundsRect (issue #0015004)
git-svn-id: trunk@23147 -
2009-12-15 05:56:08 +00:00
paul
4e64aed98d lcl: formatting
git-svn-id: trunk@23146 -
2009-12-15 05:53:22 +00:00
mattias
d036fbc462 LCL: TControl.Destroy: clean up FHostDockSite even if HostDockite is destroying
git-svn-id: trunk@23037 -
2009-12-08 16:39:44 +00:00
mattias
957ae67d77 LCL: TWinControl.Destroy: undock all DockCLients
git-svn-id: trunk@23036 -
2009-12-08 16:33:06 +00:00
mattias
efd8836a89 LCL: TControl.Dock: clean up if docking failed
git-svn-id: trunk@23032 -
2009-12-08 15:35:26 +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
paul
82ae075ca3 lcl: notify controls using message on FontChanged, and ParentFontChanged for delphi compatibility
git-svn-id: trunk@22196 -
2009-10-16 13:36:52 +00:00
mattias
09711e4042 LCL: do not autosize root controls at designtime, bug #14682
git-svn-id: trunk@22184 -
2009-10-15 07:25:23 +00:00
mattias
8c63f1100c lcl: undo 22100
git-svn-id: trunk@22183 -
2009-10-15 07:13:30 +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
2ab0d11fc0 LCL: do not autosize root controls at designtime, bug #14682
git-svn-id: trunk@22100 -
2009-10-12 09:48:59 +00:00
mattias
96b6819584 LCL: new autosize: added AutoSizePhase
git-svn-id: trunk@22058 -
2009-10-06 16:14:27 +00:00
paul
194d1c80e3 lcl: BidiMode:
- notify forms when Application.BidiMode changed
  - use application bidi mode when form get parent bidi mode change notification
  - fix TControl.CMParentBidiModeChanged

git-svn-id: trunk@22022 -
2009-10-04 13:10:48 +00:00
paul
17d9e2dd68 formatting
git-svn-id: trunk@21935 -
2009-10-01 08:48:38 +00:00
paul
6291a3af5a lcl: decapitalize Procedure and End keywords in the controls.inc file
git-svn-id: trunk@21882 -
2009-09-26 14:06:02 +00:00
paul
b680c53595 lcl, designer: better invalidate designer on move, resize (issue #0013886)
git-svn-id: trunk@21875 -
2009-09-26 03:26:52 +00:00
paul
d24238d791 lcl: invalidate designer on borderspacing change
git-svn-id: trunk@21862 -
2009-09-25 14:25:43 +00:00
paul
ece2fcadca lcl: be sure that popup menu will notify a control on destruction
git-svn-id: trunk@21843 -
2009-09-24 08:50:50 +00:00
paul
d6a6f487a7 formatting
git-svn-id: trunk@21776 -
2009-09-20 04:42:57 +00:00
paul
4ec921a39d lcl: don't apply TControl.Cursor in the design-time
git-svn-id: trunk@21769 -
2009-09-19 15:08:18 +00:00
paul
680007c6ee lcl: don't update window size on move if window is minimized
git-svn-id: trunk@21726 -
2009-09-16 07:01:18 +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
mattias
9ba0fbbc8d LCL: newautosize added checks
git-svn-id: trunk@21674 -
2009-09-12 21:14:52 +00:00
mattias
fc13925a0a LCL: newautosize fixed TControl.Adjustsize
git-svn-id: trunk@21672 -
2009-09-12 20:28:05 +00:00
mattias
94b6f061bf LCL: added debugging
git-svn-id: trunk@21671 -
2009-09-12 20:07:53 +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
f5c2d8ef36 LCL: comments
git-svn-id: trunk@21471 -
2009-08-28 06:26:17 +00:00
paul
d17da7b5e3 formatting
git-svn-id: trunk@21467 -
2009-08-27 17:17:53 +00:00
paul
92fc448dae lcl: formatting
git-svn-id: trunk@21465 -
2009-08-27 16:30:28 +00:00
mattias
0f47af48bc gtk2 intf: fixed stopping wheel message when handled by LCL
git-svn-id: trunk@21421 -
2009-08-23 12:47:08 +00:00
paul
523351a53f lcl: formatting
git-svn-id: trunk@21263 -
2009-08-17 16:07:23 +00:00
mattias
3f4099eb7b LCL: autosize: ignore invisible childs with alCustom
git-svn-id: trunk@21236 -
2009-08-15 20:52:35 +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
881d1ac331 lcl: don't set ShowHint in CMParentShowHintChanged during loading, update ShowHint from ParentShowHint in Loaded (fixes issue #0013969)
git-svn-id: trunk@20614 -
2009-06-13 09:05:53 +00:00
paul
1c2b75ab5f lcl: send CM_PARENTSHOWHINTCHANGED when we change ParentShowHint property (same as we do for other ParentDoSomething properties)
git-svn-id: trunk@20613 -
2009-06-13 08:59:31 +00:00
paul
8140fd8755 lcl: add more extra mouse buttons support
git-svn-id: trunk@20536 -
2009-06-09 04:25:32 +00:00
paul
e24d4d50d0 lcl: store loaded height and width to use to float control for the first time
git-svn-id: trunk@20366 -
2009-06-03 06:26:23 +00:00
paul
f2d23f7036 lcl: formatting
git-svn-id: trunk@20341 -
2009-06-02 07:10:23 +00:00
paul
51d6ed553a lcl: stop mouse up message if it is handled by dock manager
git-svn-id: trunk@20100 -
2009-05-21 09:06:45 +00:00
paul
e30c0905a2 lcl: allow form dragging by client area only if it is docked into docksite without dock manager
git-svn-id: trunk@20070 -
2009-05-20 07:30:39 +00:00
paul
9b7b96648b lcl: don't call TextChanged directly, use CM_TEXTCHANGED notification instead
git-svn-id: trunk@20060 -
2009-05-20 03:06:52 +00:00
paul
3cd340fe31 lcl: formatting
git-svn-id: trunk@19966 -
2009-05-15 01:57:42 +00:00
paul
13fad64f43 lcl: set floathost caption in DoFloatMsg
git-svn-id: trunk@19886 -
2009-05-09 14:49:29 +00:00
paul
39a2abadeb lcl: fix compilation
git-svn-id: trunk@19884 -
2009-05-09 14:19:39 +00:00
paul
bbdbc69852 lcl: set Dock Caption on Manual Float
git-svn-id: trunk@19883 -
2009-05-09 14:02:40 +00:00
paul
04d24c72c4 lcl: return Name as default dock caption instead of ''
git-svn-id: trunk@19882 -
2009-05-09 13:56:01 +00:00
paul
6085141ae9 lcl: formatting
git-svn-id: trunk@19835 -
2009-05-07 08:40:34 +00:00