Commit Graph

18 Commits

Author SHA1 Message Date
Juha
51cdd4d4c4 LazControls: Revert the earlier change in TCustomCheckBoxThemed, issue #39425. 2021-10-13 11:37:18 +03:00
Juha
e4f3a9abbf LazControls: Fire OnClick event of TCustomCheckBoxThemed. #39425, patch by Don Siders. 2021-10-11 19:15:10 +03:00
Juha
814e4ba4e2 Rename CompareMethods to more logical SameMethod. Remove old deprecated functions. 2021-10-10 19:00:49 +03:00
martin
743dfad3a9 TCustomCheckBoxThemed.PaintSelf: fix calculating the y pos, if there is no caption.
git-svn-id: trunk@59664 -
2018-11-26 11:18:12 +00:00
martin
235888a37d TCustomCheckBoxThemed.PaintSelf: fix calculating the y pos.
In the old calculation "(ARect.Top+ARect.Bottom)div 2" there was a one pixel jump when traversing zero:
-2 div 2 = -1
-1 div 2 = 0
 0 div 2 = 0
 1 div 2 = 0  // 3rd time 0
 2 div 2 = 1

Now it is "Top + (Height div 2)" height does not change, so it never goes through 0.

This manufactured a painting bug in Object Inspector, where ScrollWindowEx relies on a repaint at the correct position.

git-svn-id: trunk@59650 -
2018-11-24 16:33:56 +00:00
juha
f440f660a2 Refactor: move CompareMethods to LazMethodList. Keep alias in LCLProc.
git-svn-id: trunk@58204 -
2018-06-09 14:39:36 +00:00
juha
b2e65128ee Remove redundant "Assigned(X)" when checking "if X is Txxx". Issue #33030, patch from Vojtech Cihak.
git-svn-id: trunk@57099 -
2018-01-15 10:53:48 +00:00
mattias
28e9959386 lazcontrols: updated headers
git-svn-id: trunk@56562 -
2017-11-30 21:13:36 +00:00
juha
ac90233ec4 LazControls: Clean uses sections.
git-svn-id: trunk@54595 -
2017-04-09 17:25:34 +00:00
ondrej
9d2597a2b5 checkboxthemed: High-DPI
git-svn-id: trunk@54237 -
2017-02-21 19:13:13 +00:00
ondrej
070c78ff20 lazcontrols: move design code from LazControls into LazControlDsgn package
git-svn-id: trunk@52041 -
2016-03-24 07:05:48 +00:00
bart
ed047fbbd3 LazControls: Fix alignment of caption for TThemedCheckBox.Alignment = taLeftJustify. Issue #0029603.
git-svn-id: trunk@51531 -
2016-02-06 15:20:28 +00:00
bart
96305118da LazControls: Fix TThemedCheckBox.KeyUp. Issue #0029406.
git-svn-id: trunk@51454 -
2016-01-30 12:20:28 +00:00
juha
44a263b11d LazControl: Show multiline caption of TCheckBoxThemed correctly. Issue #29504, patch from Gabor Boros.
git-svn-id: trunk@51415 -
2016-01-25 18:55:37 +00:00
juha
d9d0b6a6c0 LazControls: Center Caption of TCheckBoxThemed vertically. Issue #29054, patch from Gabor Boros.
git-svn-id: trunk@50457 -
2015-11-21 09:56:14 +00:00
juha
e4d78f8e95 LazControls: TCheckBoxThemed improvements. Issue #28517, patch from Vojtech Cihak.
git-svn-id: trunk@49676 -
2015-08-15 21:40:10 +00:00
bart
7fdf4a2de2 CheckBoxThemed: fix checkbox position if Alignment is taLeftJustify (issue #0027127).
git-svn-id: trunk@47102 -
2014-12-04 17:44:09 +00:00
juha
86bc7e6c60 LazControls: New files for CheckboxThemed.
git-svn-id: trunk@47029 -
2014-11-29 19:37:36 +00:00