mattias
e5e20bfbe3
LCL: fixed result of standard anchored control, bug #20367
...
git-svn-id: trunk@33548 -
2011-11-16 04:21:00 +00:00
juha
43d521337d
LCL: Set Result in TAnchorSide.CheckSidePosition. Solves issue #20367 , patch from cobines
...
git-svn-id: trunk@33526 -
2011-11-14 11:26:45 +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
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
zeljko
b8cb50f5ce
LCL: added explanation for TControlStyles csNoStdEvents and csNoFocus
...
git-svn-id: trunk@33072 -
2011-10-24 19:14:29 +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
43bf91ff49
LCL: clean up
...
git-svn-id: trunk@32563 -
2011-09-30 07:53:38 +00:00
mattias
785a28d88e
LCL: TControlBorderSpacing.GetSideSpace and GetSpace were swapped, fixed
...
git-svn-id: trunk@32543 -
2011-09-28 13:07:25 +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
zeljko
b21be873d3
LCL: Added TGraphicControl.VisuallyEnabled to track if control is really visually enabled (eg Enabled=True but Parent is disabled) during checking Enabled property inside paint and mouse methods.fixes issue #20247
...
git-svn-id: trunk@32393 -
2011-09-17 19:42:30 +00:00
zeljko
5c16268dbe
LCL: added capfHasScrollOffset in Controls.FindControlAtPosition(), also fixed TGraphicControl.Update, it should take into account parent's scrolloffset if any. issues #12217,#18272
...
git-svn-id: trunk@31577 -
2011-07-06 20:52:09 +00:00
zeljko
649e6241af
LCL: TGraphicControl.Update must be public.
...
Qt: cleanups
git-svn-id: trunk@31503 -
2011-07-02 13:49:54 +00:00
zeljko
23249c0b48
LCL: overrided TControl.Update in TGraphicControl, so it calls Update() only for TGraphicControl client rect, not whole parent handle.
...
git-svn-id: trunk@31132 -
2011-06-08 07:00:02 +00:00
juha
b01be5b936
LCL: Register more Delphi-only properties to skip when loading a project.
...
git-svn-id: trunk@30787 -
2011-05-17 21:56:42 +00:00
juha
fdc466d76d
Fix spelling from Childs to Children around Lazarus source. Patch from Mazen NEIFER
...
git-svn-id: trunk@30657 -
2011-05-10 09:13:38 +00:00
paul
bd8eb25ea6
lcl: add mrClose modal result value, map Help button to mrNone result (issue #0019185 )
...
git-svn-id: trunk@30376 -
2011-04-19 03:00:14 +00:00
paul
9b4a80bc9c
lcl: add delphi compatible messages by Stephano (issue #0019134 )
...
git-svn-id: trunk@30356 -
2011-04-18 02:33:18 +00:00
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