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