sekelsenmat
ebb666cb58
Advances implementing accessible children for TTreeView, specially in Carbon. Not yet fully working
...
git-svn-id: trunk@34709 -
2012-01-11 12:48:55 +00:00
sekelsenmat
6201edbbac
Rearchitectures the accessibility child objects and data storage as per Martin proposal
...
git-svn-id: trunk@34708 -
2012-01-11 09:19:36 +00:00
sekelsenmat
6a22f885c2
Adds the generic structure for arbitrary non-TControl accessible objects and starts implementing support for it in TTreeView
...
git-svn-id: trunk@34701 -
2012-01-11 00:10:13 +00:00
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