juha
aa96e17781
Revert r63888 #54661a2a36. It breaks event handling of forms with parent. Issue #36127 .
...
git-svn-id: trunk@64986 -
2021-04-13 16:35:34 +00:00
bart
07befbecb7
TFloatSpinEdit: fix a comment
...
git-svn-id: trunk@64973 -
2021-04-11 16:57:29 +00:00
juha
a8969e516a
LCL: In TListItem, use TListItemState type directly.
...
git-svn-id: trunk@64948 -
2021-04-10 10:01:05 +00:00
bart
ce7e9909e5
LCL: fix OpenDocument on Mac for folders. Issue #0038670 . Patch by Trevor Roydhouse.
...
git-svn-id: trunk@64890 -
2021-03-29 15:46:18 +00:00
michl
cafbad9bab
LCL: TFrame, TGroupBox: Set ParentBackGround to False if color is changed and visa versa as requested in German LazarusForum from wp. Related to 64871, 64872
...
git-svn-id: trunk@64882 -
2021-03-28 19:32:11 +00:00
michl
6ffcd2744c
LCL: Win32: Fixed Frame.Color not change the color of frame. Issue #35229
...
git-svn-id: trunk@64872 -
2021-03-27 12:22:17 +00:00
ondrej
28e5806a74
LCL: groupbox: use csOpaque style if the groupbox shouldn't be transparent, publish ParentBackground
...
git-svn-id: trunk@64871 -
2021-03-26 09:17:12 +00:00
wp
a1aea6a20a
LCL/TreeView: Fix OnExpand* events not firing any more after r64142 #2a0df745f0. Issue #38084 .
...
git-svn-id: trunk@64855 -
2021-03-22 08:43:53 +00:00
juha
c5c78f2c8b
LCL: Add widgetset support for TCustomListView.GetNextItem. Implement now for Win32. Issue #38565 , patch from Remko Plantenga.
...
git-svn-id: trunk@64848 -
2021-03-21 08:31:45 +00:00
dmitry
dff67d134c
lcl: update accessibility patch by David Jenkins. bug #38603
...
git-svn-id: trunk@64834 -
2021-03-18 02:48:41 +00:00
juha
381d67724c
LCL: Do not wrap around in TCustomListView.GetNextItem with search direction = sdAll. Issue #38565 .
...
git-svn-id: trunk@64746 -
2021-03-05 09:52:34 +00:00
juha
8fde568fcc
LCL: Synchronize CustomApplication with Application. At least unit CustomTimer uses it. Issue #38544 .
...
git-svn-id: trunk@64745 -
2021-03-05 09:52:32 +00:00
martin
37d6fcb8bd
TTabControl: "fix" x/y in Mouse(move/down/up/Drag) messages. Issue #0038403 see note 0129133 amends rev 64424 #ed6e087523,64436 #dfa3fe0ea4
...
- All X,Y are now computed from the LCL top/left of the TTabControl. X,Y of the embedded control are amended.
git-svn-id: trunk@64677 -
2021-02-27 15:14:31 +00:00
wp
aea537a7ec
LCL/MessageDlg: Fix too-high buttons created by CreateMessageDlg in case of high-dpi. Issue #0032704 .
...
git-svn-id: trunk@64673 -
2021-02-26 22:28:34 +00:00
juha
afae437ee4
LCL: Change variable names to avoid confusion. Unnest a function.
...
git-svn-id: trunk@64588 -
2021-02-16 11:53:50 +00:00
wp
e32b62e6b4
LCL/ShellCtrls: On Windows automatically show shell icons in TShellTreeView when no imagelist is attached.
...
git-svn-id: trunk@64575 -
2021-02-13 22:11:24 +00:00
mattias
1c726d4c93
lcl: fixed typo
...
git-svn-id: trunk@64507 -
2021-02-08 19:55:20 +00:00
juha
d4256b2fe5
LCL: Remove function IntfSendsUTF8KeyPress. Was deprecated in 2011.
...
git-svn-id: trunk@64467 -
2021-02-05 11:28:18 +00:00
juha
a542627231
LCL: Use a faster compare method for case-insensitive StringList.
...
git-svn-id: trunk@64443 -
2021-01-30 18:36:54 +00:00
martin
dfa3fe0ea4
TTabControl: reverted/replaced r64424 #ed6e087523: "fix ClientOrigin, Issue #38403 - Need the origin of the child TabControl".
...
Modifying the ClientOrigin affects child-controls of the TTabControl.
Also fixes issue #38422 , endless recursion if no handle was allocated.
git-svn-id: trunk@64436 -
2021-01-29 18:53:47 +00:00
martin
6fc365af0b
LCL: Fix ReleaseComponents hang with modal window. Issue #0021451
...
git-svn-id: trunk@64435 -
2021-01-29 18:53:45 +00:00
martin
ed6e087523
TTabControl: fix ClientOrigin, Issue #38403 - Need the origin of the child TabControl.
...
git-svn-id: trunk@64424 -
2021-01-27 13:02:49 +00:00
juha
d7de049568
LCL: Make TMemo.Modified property work like TEDIT does. Issue #38388 , patch from Jamie Philbrook.
...
git-svn-id: trunk@64420 -
2021-01-25 09:32:13 +00:00
juha
00e7a5c92b
LCL: Optimize TLazIntfImage.CopyPixels and TCustomImageList.ScaleImage a little for common cases.
...
git-svn-id: trunk@64404 -
2021-01-19 09:20:31 +00:00
juha
751852a44a
LazUtils: New function UTF8CompareLatinTextFast. Use in IDE instead of UTF8CompareText.
...
git-svn-id: trunk@64385 -
2021-01-14 13:52:23 +00:00
juha
42850cfe4d
LazUtils: Deprecate now obsolete unit LazUtf8Classes and remove its references from Lazarus code.
...
git-svn-id: trunk@64384 -
2021-01-14 12:41:32 +00:00
bart
cdfd1ae57a
TUpDown: use the MouseEnter/MouseLeave methods to fire the OnMouseEnter and OnMouseLeave events. Slightly alters r64151 #6a41fe9801.
...
git-svn-id: trunk@64369 -
2021-01-09 21:45:16 +00:00
wp
746dea29a9
LCL: Add supported of rotated labels. Issue #38328 .
...
git-svn-id: trunk@64361 -
2021-01-09 12:13:05 +00:00
wp
4f5bfef839
LCL/UpDown: Fix crash when mouse enters the space between the up/down buttons of a T(Float)SpinEditEx. Related to issue #38101 .
...
git-svn-id: trunk@64357 -
2021-01-08 21:25:43 +00:00
juha
1e43ac6865
IDE: Study EditorOptions assignments with debug code. Turn methods into global funcs. Refactoring.
...
git-svn-id: trunk@64328 -
2021-01-04 15:56:28 +00:00
ondrej
4002a31014
TCustomLabel: fix RTL drawing. Issue #38270
...
git-svn-id: trunk@64323 -
2021-01-03 16:33:10 +00:00
bart
b8b3de002a
Refine the implementation of TCustomListView.Delete(), .InsertItem and .Edit after r64309 #fbb46cb85d (Issue #0038263 ).
...
This commit is also not completely Delphi compatible.
In Delphi Items can be added or delted as a respons to LVN_xxx messages, which the Lazarus implementation
does not support (it may very well be not protable?).
This commit causes code duplication (fortunately mostly one-liners)
The resons for this that the Lazarus methods DoDeletion, DoInsert and DoEndEdit are virtual and as such
may have been overriden by users, so this code still needs to work.
Users with code coming from Delphi expect that they can override Delete, InsertItem and Edit, so this must be possible as well,
and in that case out event dispatchers simply call the overridden Delphi variant.
The exception to this is Delete().
As far as we know, in Delphi Delete() is triggerd after an Items.Delete and acts as an event dispatcher,
but if you call it by itself, then it will actually delete the item (this in contrast to InsertItem, which only
calls the event handler and does nothing else).
(No Delphi code was studied to obtain this information, it was all done using black box testing (by LacaK and BB),
so this conclusion may be wrong.)
I decided to implement Delete in such a way that it checks wether it was called after the fact (after Items.Delete),
and if that is not the case, it will delete the item (triggering a re-entry of the method).
Not very nice, but it is in any case better then an empy implementation like it was before r64309 #fbb46cb85d.
It was discussed also to rename and deprecate our event dispatchers in favour of the Delpi ones, but I decided agains that
for the following reasons:
- naming conventions: DoXXX dispatches OnXXX
- signatures differ between DoEndEdit and Edit
git-svn-id: trunk@64318 -
2021-01-02 13:23:49 +00:00
wp
fbb46cb85d
LCL/TListView: Improved Delphi compatibility by giving life to the empty methods Delete and InsertItem and adding an Edit method.
...
git-svn-id: trunk@64309 -
2020-12-30 18:56:35 +00:00
juha
323a21ee2b
IDE: Move TMainIDE.PropHookPersistentDeleting to a better place and simplify a bit.
...
git-svn-id: trunk@64272 -
2020-12-25 14:34:17 +00:00
wp
5197500844
LCL: Fix selected items of TComboBoxEx and TCheckComboBox not being painted with color clHighlightText.
...
git-svn-id: trunk@64267 -
2020-12-22 14:56:45 +00:00
juha
deba76613b
IdeIntf, Designer: Improve deleting components from OI's tree. Make a special case for PairSplitterSide. Issue #38235 .
...
git-svn-id: trunk@64254 -
2020-12-20 14:46:02 +00:00
juha
569174e007
LCL: Don't steal focus for TabControl when changing current page by code.
...
git-svn-id: trunk@64206 -
2020-12-15 18:17:36 +00:00
ondrej
fe15ff7582
TCustomLabel: fix CalculateSize Canvas Handle
...
git-svn-id: trunk@64192 -
2020-12-09 15:05:37 +00:00
ondrej
d7ef9f3f70
TCustomLabel: fix DoDrawText selecting Font for the Canvas
...
git-svn-id: trunk@64191 -
2020-12-09 15:04:26 +00:00
juha
b52cbb021d
LCL: Simplify code for setting FLastActiveControl.
...
git-svn-id: trunk@64181 -
2020-12-08 19:34:36 +00:00
ondrej
6133721d44
TCustomLabel: DoDrawText for Delphi compatibility and for unifying size calculation and painting
...
git-svn-id: trunk@64173 -
2020-12-06 09:44:49 +00:00
wp
aadc207387
LCL/CheckGroup: Fix items and checkboxes getting out of sync upon Items.Insert. Issue #38157 .
...
git-svn-id: trunk@64168 -
2020-12-01 09:21:50 +00:00
juha
7d90e95e0b
LCL: Propogate TAction.ImageIndex to TSpeedButton.ImageIndex. Issue #38135 , patch from Anton Kavalenka.
...
git-svn-id: trunk@64165 -
2020-11-30 20:21:17 +00:00
juha
6a41fe9801
LCL: Fire TUpDown MouseEnter and MouseLeave events. Issue #38101 .
...
git-svn-id: trunk@64151 -
2020-11-20 10:52:19 +00:00
bart
0681ea5adc
LCL: fix OnMouseDown/OnMouseUp for TUpDown. Issue #0038099 .
...
git-svn-id: trunk@64147 -
2020-11-18 16:32:05 +00:00
juha
92568b2c46
LCL: Add a sanity check to TTreeNode.Unbind.
...
git-svn-id: trunk@64143 -
2020-11-16 22:20:11 +00:00
juha
2a0df745f0
LCL: Do not call TTreeView.OnCollapsing and OnCollapsed during clearing the items. Issue #38084 .
...
git-svn-id: trunk@64142 -
2020-11-15 16:57:13 +00:00
juha
14d83904c3
IdeIntf: Do not autoexpand ComponentTree in OI after component delete or ZOrder change. Issue #37434 .
...
git-svn-id: trunk@64138 -
2020-11-15 11:41:43 +00:00
juha
618261511d
LCL: Remove tests for FPC versions 2.x. Cannot be used anyway.
...
git-svn-id: trunk@64120 -
2020-11-10 09:50:20 +00:00
juha
741a56883e
LCL: Add ExitProc to TApplication differently. Issue #38039 , patch from Cyrax.
...
git-svn-id: trunk@64110 -
2020-11-06 10:42:01 +00:00