Commit Graph

21972 Commits

Author SHA1 Message Date
zeljko
b9e6f1353b Qt5: partial fix for BidiMode inconsistencies in Qt5 widgetset. issue #38319
git-svn-id: trunk@64710 -
2021-03-01 12:45:21 +00:00
zeljko
5627557122 Qt5: draw properly color of disabled TPanel. issue #38324
git-svn-id: trunk@64708 -
2021-03-01 10:58:17 +00:00
wp
cb4eead6e1 LCL/ShellCtrls: Fix ShellTreeView crashing when a node is opened.
git-svn-id: trunk@64697 -
2021-02-28 22:37:39 +00:00
maxim
24ccec2ea3 LCL: regenerated translations
git-svn-id: trunk@64694 -
2021-02-28 21:36:55 +00:00
mattias
f45d7ed2c4 LCL: less hints
git-svn-id: trunk@64681 -
2021-02-28 08:51:17 +00:00
jesus
3956e7c461 LCL: Qt5, fix TQTextEdit to report caretpos.x relative to the current block
git-svn-id: trunk@64680 -
2021-02-28 07:06:12 +00:00
wp
dfaea13f4b LCL/ShellCtrls: Temporarily deactivate changes in ShellCtrls made by r64575 #e32b62e6b4. Issue #38517.
git-svn-id: trunk@64679 -
2021-02-27 21:07:56 +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
juha
401d451c71 LazUtils: Revert the big TMask change. It must be worked on later.
git-svn-id: trunk@64675 -
2021-02-27 09:15:16 +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
d82f15fb2b LazUtils: Replace TMask with a faster and better version from José Mejuto.
git-svn-id: trunk@64667 -
2021-02-26 16:17:16 +00:00
juha
98045780a1 LCL: Use TMaskList always for ShellListView.Mask. Enable all TMask syntax including sets.
git-svn-id: trunk@64660 -
2021-02-24 20:04:15 +00:00
jesus
3cce8bdb2b LCL, qt5: fix out of bounds warnings when setting text selection
git-svn-id: trunk@64659 -
2021-02-24 18:40:44 +00:00
juha
564ca97446 LazUtils: Move unit test project for Masks from LCL dir to LazUtils dir.
git-svn-id: trunk@64653 -
2021-02-23 14:06:34 +00:00
wp
a040f8d1df ShellTreeView: Publish property MultiSelectStyle (issue #38522).
git-svn-id: trunk@64650 -
2021-02-22 11:31:47 +00:00
bart
b82ead0cfa MaskEdit: only use the workaround for issue #0038505 (r64617) if compiler version < 3.2.2.
git-svn-id: trunk@64625 -
2021-02-20 08:34:06 +00:00
bart
5aa0aac42e TMaskEdit: workaround for infinite loop in SetEditText (issue cause by compiler bug). Issue #0038505.
git-svn-id: trunk@64617 -
2021-02-18 18:45:48 +00:00
bart
ac3fae6d99 TValueListEditor: raise an exception when setting RowCount < FixedRows.
git-svn-id: trunk@64605 -
2021-02-17 17:35:57 +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
juha
3f78f0d62d New optimized functions in LazUtils: FilenameExtIs and FilenameExtIn. Used instead of CompareFileExt and similar.
git-svn-id: trunk@64583 -
2021-02-15 08:43: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
1c57b8cc78 lcl: cocoa: fixed keyboard navigation in open dialog
git-svn-id: trunk@64571 -
2021-02-13 16:24:45 +00:00
wp
b729025142 ShellCtrls: Speed up population of TShellListView by adding BeginUpdate/EndUpdate calls.
git-svn-id: trunk@64553 -
2021-02-12 15:04:54 +00:00
wp
ad98b8ef31 LCL/ListView: Revert r64204 #c3d9ff515c because it breaks custom-drawing. {{MantisLink|25397}}
git-svn-id: trunk@64552 -
2021-02-12 13:36:12 +00:00
juha
077ebbe494 Optimise string manipulation. Reduce calls to Copy().
git-svn-id: trunk@64527 -
2021-02-11 14:08:24 +00:00
wp
a693251026 Publish OnContextPopup and OnResize for some controls to improve Delphi compatibility or compatibility with related controls. Issue #38453, based on patch by Reinhard Kalinke.
git-svn-id: trunk@64513 -
2021-02-09 18:40:00 +00:00
juha
91293d82bb LCL-GTK3: Fix empty form resize and some housekeeping. Issue #38447, patch from Anton Kavalenka.
git-svn-id: trunk@64511 -
2021-02-08 21:04:48 +00:00
mattias
1c726d4c93 lcl: fixed typo
git-svn-id: trunk@64507 -
2021-02-08 19:55:20 +00:00
juha
bef5ada271 LCL-GTK2: Prevent a warning caused by a popup menu code. Issue #38402, patch from Petr-K.
git-svn-id: trunk@64473 -
2021-02-05 11:54:12 +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
jesus
1fceb1f301 LCL, fix first typed character in dbmemo under GTK, issue #37123
git-svn-id: trunk@64453 -
2021-01-31 20:25:46 +00:00
dmitry
b1a7028cfe cocoa: revise the color selection for controls. Patch by Zoë Peterson. bug #38280
git-svn-id: trunk@64452 -
2021-01-31 06:07:53 +00:00
dmitry
d0a5722486 cocoa: restoring the original context state after drawing. Attempting to prevent unexpected upside downs. Patch by David Jenkins. bug #36021
git-svn-id: trunk@64451 -
2021-01-31 05:56:03 +00:00
dmitry
705298159f cocoa: proper callback object initialization. Scrollview must be the handle for the list box. bug #38362
git-svn-id: trunk@64448 -
2021-01-30 22:56:07 +00:00
dmitry
bd85539715 cocoa: doing the proper hit testing using the bounds of the handle frame. bug #38362
git-svn-id: trunk@64446 -
2021-01-30 22:53:53 +00:00
juha
d9767178be LCL: Fix compilation on Windows. "Rect" is in unit Windows and unit Classes. Issue #38427.
git-svn-id: trunk@64445 -
2021-01-30 21:07:07 +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
dmitry
d0ac16bcc5 cocoa: adding an option to use UTI for file dialog filtering to avoid the verification lag. bug #38399
git-svn-id: trunk@64442 -
2021-01-30 17:58:39 +00:00
juha
c32adb1c7f Instead of UTF8CompareText use AnsiCompareText which uses mostly system libraries.
git-svn-id: trunk@64437 -
2021-01-29 19:58:55 +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
juha
e7986013cc LCL-GTK2: Fix SpeedButton freeze after closing system popup menu without choosing menu item. Issue #38402, patch from Andrzej Kilijanski.
git-svn-id: trunk@64431 -
2021-01-28 08:19:11 +00:00
juha
5a0bf2ed29 LCL-GTK2: Fix SpeedButton freeze after closing popup menu without choosing menu item. Issue #38401, patch from Andrzej Kilijanski.
git-svn-id: trunk@64430 -
2021-01-28 08:19:10 +00:00
martin
fc429e3a50 Missing file for * SynEdit: Introduce LineGutter.OnFormatLineNumber - Issue #38370
git-svn-id: trunk@64427 -
2021-01-27 16:08:00 +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
dmitry
7ab17842cd cocoa: UI optimization for the file selection dialog. Do not use path_shouldEnableURL if not filters are used by the openDialog. todo: The same approach could be used if the only filter is any file
git-svn-id: trunk@64419 -
2021-01-24 21:14:52 +00:00
dmitry
31e6d57c33 cocoa: stop using the deprecated filenames property to get the number of files selected
git-svn-id: trunk@64418 -
2021-01-24 20:55:24 +00:00
juha
9e251a5c0a LCL: Eliminate a nested loop in TLazIntfImage.CopyPixels.
git-svn-id: trunk@64413 -
2021-01-20 22:00:02 +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
jesus
618596c2ba LCL: fix grids bidi TAB behaviour as by Zaher Dirkey comments, issue #38186
git-svn-id: trunk@64402 -
2021-01-17 19:08:22 +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
jesus
ad7d239447 LCL, fix DbGrid with multiselect option will cause AV on application exit, issue #38303
git-svn-id: trunk@64378 -
2021-01-12 06:18:00 +00:00
juha
adee13bfdd LCL-GTK2: Fix SpeedButton when non-modal form is opened by popup menu. Issue #38345, patch from Andrzej Kilijanski.
git-svn-id: trunk@64377 -
2021-01-11 16:38:13 +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
juha
25f463a798 LCL-GTK3: Make drawtext use proper default color etc. Issue #38335, patch from Anton Kavalenka.
git-svn-id: trunk@64368 -
2021-01-09 20:41:22 +00:00
dmitry
8f421d4a57 cocoa: using DeviceRGB for the inverted color. Fixes compilation for the older fpc
git-svn-id: trunk@64366 -
2021-01-09 18:26:51 +00:00
dmitry
a67fb97c5e cocoa: preventing itemSelected event during performKeyEquivalent call. bug #37789
git-svn-id: trunk@64365 -
2021-01-09 18:12:06 +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
dmitry
b508eb30dc cocoa: adjusting the cursor color for the standard NSTextField controls to be oppostive of their background. bug #38033
git-svn-id: trunk@64360 -
2021-01-09 07:31:16 +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
ac6049864a LCL: Give new name to left-Backslash key on 102-keys keyboard. Issue #37966, patch from CudaText man.
git-svn-id: trunk@64304 -
2020-12-29 22:56:43 +00:00
juha
9219ea531d Move unit GraphMath from LCL to LazUtils. It has no dependencies to GUI.
git-svn-id: trunk@64303 -
2020-12-29 22:56:40 +00:00
dmitry
292137d3e3 cocoa: adding support for precise scrolling deltas. bug #38205
git-svn-id: trunk@64285 -
2020-12-27 07:39:37 +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
wp
2f347f2475 LCL/ComboBox: Avoid RecreateWnd in r63856 #afa0f73049. Issue #37670, patch by Jamie Philbrook.
git-svn-id: trunk@64227 -
2020-12-18 17:58:44 +00:00
juha
4c9264496d LCL: Do not free the side components of PairSplitter. They are owned and will be freed later.
git-svn-id: trunk@64224 -
2020-12-18 10:51:36 +00:00
wp
1c9c36d205 LCL/FileListbox: Update selected filename when ItemIndex is set
git-svn-id: trunk@64211 -
2020-12-16 21:17:52 +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
wp
c3d9ff515c LCL/Listview: Fix listview items not drawn bold in OnCustomDrawXXXX event if requested. Issue #25397, patch by jamie philbrook.
git-svn-id: trunk@64204 -
2020-12-15 10:11:02 +00:00
dmitry
83065724b3 cooca: using cocoa native texthints. only for macOS 10.10 and later. bug #38198
git-svn-id: trunk@64203 -
2020-12-15 06:57:35 +00:00
juha
6813e28eef LazUtils: Move math helper functions from LCLProc to LazUtilities. Deprecate LCLProc versions.
git-svn-id: trunk@64197 -
2020-12-12 11:41:07 +00:00
wp
aa8f480e17 LCL/Grids: Fix grids truncating cell height during editing if TitleFont.Size is smaller than Font.Size. Issue #38203).
git-svn-id: trunk@64195 -
2020-12-11 15:18:33 +00:00
juha
c3eb57a7fc LCL-Qt5: Support Wayland, improve build with QT_NO_SESSIONMANAGER. Issue #38197, patch from Marius Maximus.
git-svn-id: trunk@64193 -
2020-12-10 22:12:33 +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
61ed7b3c3e LCL-QT5: Disable a DebugLn giving output too often.
git-svn-id: trunk@64187 -
2020-12-09 11:48:25 +00:00
juha
b52cbb021d LCL: Simplify code for setting FLastActiveControl.
git-svn-id: trunk@64181 -
2020-12-08 19:34:36 +00:00
dmitry
24f5f9b1d9 cocoa: restoring the actual menu state once the system dialog is closed. bug #38182
git-svn-id: trunk@64180 -
2020-12-08 05:37:38 +00:00
juha
b167267112 LCL-Win32: Support Combobox with csOwnerDrawFixed in a DLL. Issue #37982, patch from Zdravko Gabrovski.
git-svn-id: trunk@64179 -
2020-12-07 13:06:42 +00:00
dmitry
aa83422093 cocoa: using only fixed width for filters in Big Sur and later. This prevents contant resizing of the dialog. bug #38121
git-svn-id: trunk@64175 -
2020-12-07 00:00:36 +00:00
ondrej
4e0d02024d LCLType: enable DT_HIDEPREFIX and DT_PREFIXONLY - even if they are ToDos on non-Windows platforms
git-svn-id: trunk@64174 -
2020-12-06 09:46:04 +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
bart
0c50332e9f Win32: document that setting TComboBox.BorderStyle to bsNone is not supported. Issue #0038126.
git-svn-id: trunk@64169 -
2020-12-01 21:54:55 +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
51302252eb LCL-GTK2: Paint a form with one color also after scrolling. Issue #16183, patch from Joeny Ang.
git-svn-id: trunk@64167 -
2020-11-30 20:52:19 +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
e405b8c6ac LCL-GTK2: Fix drawing of text region in TListView and others. Issue #38062, patch from Joeny Ang.
git-svn-id: trunk@64130 -
2020-11-13 09:37:00 +00:00
bart
6fb1bd833b LazUtils: Remove PasWStr unit. It is obsolete since fpc 3.0.
git-svn-id: trunk@64123 -
2020-11-11 17:35:01 +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
mattias
ba08e77f45 lcl: fixed compile with fpc 3.0.4
git-svn-id: trunk@64119 -
2020-11-09 18:03:36 +00:00
dmitry
d1b94111d9 cocoa: update GetTextLen for Memo descendants. bug #37835
git-svn-id: trunk@64118 -
2020-11-09 01:24:46 +00:00
dmitry
f490c67b0f cocoa: if app is inactive searching through available windows in order to find one by mouse position. bug #37877
git-svn-id: trunk@64117 -
2020-11-09 00:58:59 +00:00
dmitry
e7263b2573 cocoa: hidding Opacity option, as TColor is not designed for alpha color. bug #38052
git-svn-id: trunk@64116 -
2020-11-09 00:27:31 +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
juha
16ffa2572f LCL: Improve handling of PageNumber in various Printer classes. Issue #37682, patch from Joeny Ang.
git-svn-id: trunk@64104 -
2020-11-04 17:48:46 +00:00
juha
c69bc5fd0d LCL-GTK2: Fix Enter and Escape keys in TCustomSpinEdit. Issue #38015, patch from Joeny Ang.
git-svn-id: trunk@64095 -
2020-10-31 14:49:32 +00:00
juha
847d16d3b9 Cleanup.
git-svn-id: trunk@64091 -
2020-10-30 09:23:50 +00:00
bart
93b66ba3ca TValueListEditor: don't hardcode '=' in r64089 #f7cf091f71
git-svn-id: trunk@64090 -
2020-10-30 09:06:37 +00:00
bart
f7cf091f71 TValueListEditor: disallow having an equal sign ('=') in the Keys column. See https://forum.lazarus.freepascal.org/index.php?topic=51977.0;topicseen
git-svn-id: trunk@64089 -
2020-10-30 08:55:51 +00:00
mattias
f3603ca4db lcl: less warnings
git-svn-id: trunk@64087 -
2020-10-29 22:31:29 +00:00
juha
4321fbf6e5 LazUtils: move procedure ReplaceSubstring from LazUTF8 to LazStringUtils.
git-svn-id: trunk@64081 -
2020-10-29 15:45:34 +00:00
juha
93df80a1da LCL: Enable building Darwin for PPC and PPC64. Issue #37987, patch from Alfred.
git-svn-id: trunk@64077 -
2020-10-25 17:20:42 +00:00
juha
3b84caaf97 LCL: Initialize Printer.PageNumber to 0. Issue #37682.
git-svn-id: trunk@64072 -
2020-10-25 08:22:45 +00:00
juha
dc642ae69d LCL-GTK3: Redesign Hint window support. Issue #37351, patch from Anton Kavalenka.
git-svn-id: trunk@64067 -
2020-10-24 12:29:35 +00:00
mattias
4fd716a864 lcl gtk2: SetWindowRgn realize widget, issue #30385
git-svn-id: trunk@64054 -
2020-10-22 18:31:14 +00:00
mattias
3e797e6d64 lcl gtk2: fixed GetControlWindow
git-svn-id: trunk@64050 -
2020-10-22 14:48:28 +00:00
juha
04a1dda99d Printers: Fix spelling in printers.pas and printer4lazarus pacakage. Issue #37941, patch from Don Siders.
git-svn-id: trunk@64039 -
2020-10-17 16:42:16 +00:00
juha
006d6e0dcf LCL: In TOpenDialog.DoExecute replace testing DereferenceLinks with an assertion.
git-svn-id: trunk@64037 -
2020-10-17 16:19:13 +00:00
ondrej
2ea6e5d966 LCL: handle exceptions in OnTimer for all widgetsets
git-svn-id: trunk@64035 -
2020-10-17 06:29:13 +00:00
ondrej
0baccd7032 Revert r64033 #6b261ef9c4: win32: handle exceptions in OnTimer
git-svn-id: trunk@64034 -
2020-10-17 06:21:47 +00:00
ondrej
6b261ef9c4 win32: handle exceptions in OnTimer
git-svn-id: trunk@64033 -
2020-10-17 05:57:32 +00:00
juha
610353511b LCL-GTK3: Housekeeping with minor fixes. Rename TGtk3DeviceContext Widget to pcr (pointer to Cairo). Issue #37933, patch from Anton Kavalenka.
git-svn-id: trunk@64031 -
2020-10-16 20:10:32 +00:00
juha
32439437d4 LCL-GTK2: Prevent "critical" messages generated by TabControl Tabs. Issue #37924, patch from Anton Kavalenka.
git-svn-id: trunk@64003 -
2020-10-14 18:16:13 +00:00
dmitry
30e70e5c24 cocoa: accelerator keys (as UI feature) are not supported bugs #37721 and #37719
git-svn-id: trunk@63961 -
2020-10-05 16:22:40 +00:00
dmitry
ff637c1fd4 lcl: adding LCL compatibility option to define system without accelerators (macOS). For system not supporting accelerator, DialogChar() methods of TControl will not be called (by LCL). See bug #37721 and #37719
git-svn-id: trunk@63960 -
2020-10-05 16:21:30 +00:00
juha
935b33a771 LCL-GTK3: Implement ApplicationProperties.OnActivate/OnDeactivate. Issue #37867, patch from Anton Kavalenka.
git-svn-id: trunk@63957 -
2020-10-04 19:12:11 +00:00
juha
5d144b780e LCL-GTK3: Improve handling of ascii chars, improve code readability. Issue #37826, patch from Anton Kavalenka.
git-svn-id: trunk@63948 -
2020-10-03 09:30:59 +00:00
zeljko
35ba577ed4 LCL: fixed Alt+TAB When TCheckComboBox is dropped down. Patch by Serge Anvarov. Issue #37839
git-svn-id: trunk@63941 -
2020-09-30 07:58:34 +00:00
bart
48bcee6f50 EditButton: publish OnContextPopup. Patch by Reinhard Kalinke. Issue #0037832.
git-svn-id: trunk@63935 -
2020-09-28 20:03:35 +00:00
bart
fb7a943fef EditButton: implement OnContextPopup.
git-svn-id: trunk@63934 -
2020-09-28 19:58:25 +00:00
jesus
95f3ddc9cd LCL: Printers support for custom size papers for Windows and Linux.
git-svn-id: trunk@63930 -
2020-09-28 01:08:23 +00:00
juha
e2ee2d39ed LCL-Win32: Don't move a calling form with OldStyleDialog dialogs. Issue #37821, patch from Jamie Philbrook.
git-svn-id: trunk@63929 -
2020-09-27 22:14:53 +00:00
juha
eda286fd37 LCL-GTK3: Do not HTML encode text in MessageBox. Issue #37804, patch from Anton Kavalenka.
git-svn-id: trunk@63928 -
2020-09-27 16:32:48 +00:00
juha
0172124a42 LCL-GTK2: Do not HTML encode text in MessageBox. Issue #37803, patch from Anton Kavalenka.
git-svn-id: trunk@63927 -
2020-09-27 16:32:46 +00:00
juha
317b7088a4 LCL: Fix ofAutoPreview of TOpenPictureDialog. Issue #37820, patch from Anton Kavalenka.
git-svn-id: trunk@63926 -
2020-09-27 14:48:12 +00:00
juha
5779a01102 CustomDrawn: Fix compilation of CustomDrawn X11. Issue #37813, patch from Sven Barth.
git-svn-id: trunk@63924 -
2020-09-26 09:32:24 +00:00
juha
36dd059fc3 LCL-GTK3: Fix calling button handler. Issue #37804, patch from Anton Kavalenka.
git-svn-id: trunk@63919 -
2020-09-24 09:07:03 +00:00
zeljko
5d132a7330 Qt,Qt5: fixed html text escaping - message boxes should be plain text. issue #37805
git-svn-id: trunk@63918 -
2020-09-24 08:46:27 +00:00
juha
86323528a8 LCL-GTK3: Implement TextHint for TCustomEdit. Issue #37802, patch from Anton Kavalenka.
git-svn-id: trunk@63911 -
2020-09-23 19:19:26 +00:00
juha
440fd1ab17 LCL-GTK2: Implement TCustomEdit.NumbersOnly. Issue #37277, patch from Joeny Ang.
git-svn-id: trunk@63910 -
2020-09-23 19:19:24 +00:00
ondrej
2031a4a842 LCL: restore TCustomEdit.GetTextHint deleted in r63730 #32e975d46c
git-svn-id: trunk@63907 -
2020-09-23 04:58:05 +00:00
zeljko
394d08328e Qt,Qt5: reverted r63904 and r63905 #bd61f8f5cb because of total menu mess. issue #37608
git-svn-id: trunk@63906 -
2020-09-21 13:05:58 +00:00
zeljko
bd61f8f5cb Qt: fixed image changing via imageindex. issue #37608
git-svn-id: trunk@63905 -
2020-09-21 12:35:11 +00:00
zeljko
d8103f82a4 Qt5: fix for invalid menuitem imageindex - happens when changing imageindex during runtime. issue #37608
git-svn-id: trunk@63904 -
2020-09-21 12:31:17 +00:00
wp
39f9890864 LCL/Combobox: Fix hehavior when ESC or ENTER are pressed in dropped-down state. Issue #37674. Patch by jamie philbrook.
git-svn-id: trunk@63903 -
2020-09-21 12:10:31 +00:00
juha
6c19136b97 LCL-GTK2: Initialize a record in LCLIntfCellRenderer_CellDataFunc. Prevents a crash. Issue #37781, patch from Cyrax.
git-svn-id: trunk@63902 -
2020-09-21 08:35:49 +00:00
wp
90afc72ac7 LCL: Fix TRadiogroup firing OnEnter/OnExit events when its ItemIndex changes. New events OnItemEnter/OnItemExit. Issue #37768.
git-svn-id: trunk@63898 -
2020-09-20 17:06:17 +00:00
juha
a3272084cf LCL-GTK2: Improve setting a shaped form. Issue #30385, patch from Anton Kavalenka.
git-svn-id: trunk@63897 -
2020-09-20 09:56:39 +00:00
juha
2e27713e66 LCL-GTK3: Improve menu position and RadioItems. Issue #37740, patch from Anton Kavalenka.
git-svn-id: trunk@63896 -
2020-09-20 09:56:38 +00:00
juha
54661a2a36 LCL: Fix changing TForm's bounds and WindowState etc. Issue #36127, patch from Joeny Ang.
git-svn-id: trunk@63888 -
2020-09-18 09:33:43 +00:00
juha
09aece8f24 Revert r63842 #475bc75d3e because of a regression. Issue #37732.
git-svn-id: trunk@63882 -
2020-09-11 18:01:55 +00:00
juha
2f35763ff4 LCL-GTK3: Implement Button.OnClick handler. Fix Tab behavior. Issue #37718, patch from Anton Kavalenka.
git-svn-id: trunk@63874 -
2020-09-08 14:37:01 +00:00
dmitry
6910915e33 cocoa: avoid using LayoutManager while measuring text for a better performance.
git-svn-id: trunk@63871 -
2020-09-07 04:03:49 +00:00
dmitry
c8f3c6f723 cocoa: replacing the setting of nil color to controlTextColor to prevent crashes on MacOSX 10.6
git-svn-id: trunk@63870 -
2020-09-07 00:14:53 +00:00
dmitry
796f05d611 cocoa: fix compilation for fpc 3.0.4
git-svn-id: trunk@63868 -
2020-09-05 19:12:43 +00:00
wp
b4cc95fc28 LCL: Fix inability to resize the height of a TCombobox having style csSimple at designtime in order to show the item listbox. Issue #37679. Patch by mgr.inz.Player.
git-svn-id: trunk@63857 -
2020-09-01 13:41:11 +00:00
wp
afa0f73049 LCL: Fix unchangeable Combobox.DropDownCount when Style = csDropDownList. Issue #37670.
git-svn-id: trunk@63856 -
2020-09-01 10:35:55 +00:00
juha
55553eded7 LCL-GTK3: Fix ImageList icon paiting. Issue #37600, patch from Anton Kavalenka.
git-svn-id: trunk@63848 -
2020-08-30 20:47:02 +00:00
juha
55d0c7bc3a LCL: Raise TCustomForm.OnShow event always. Didn't happen on Windows in certain cases. Issue #37647.
git-svn-id: trunk@63847 -
2020-08-30 20:29:55 +00:00
juha
49a3adfab7 LCL-GTK3: Prevent a range error in function ButtonClicked.
git-svn-id: trunk@63844 -
2020-08-29 16:15:27 +00:00
juha
bce7246f36 LCL: Formatting, indent with the same style as other code in unit.
git-svn-id: trunk@63843 -
2020-08-29 14:40:19 +00:00
juha
475bc75d3e LCL: Improve TForm's bounds events. Issue #36127, patch from Joeny Ang.
git-svn-id: trunk@63842 -
2020-08-29 14:40:17 +00:00
juha
3f80506401 LCL-GTK3: Make Screen.WorkArea work. Issue #36946, patch from Anton Kavalenka.
git-svn-id: trunk@63837 -
2020-08-26 19:33:47 +00:00
wp
09ee5f1c56 LCL-Grids and VirtualTreeView: Move "FixDesignFontsPPI" for the basic components to "public". Declare as "override" for VTV.
git-svn-id: trunk@63831 -
2020-08-26 14:36:34 +00:00
juha
b420c52946 LCL-GTK2 & GTK3: Repaint MenuItem when changing ImageIndex. Issue #37607, patch from Anton Kavalenka.
git-svn-id: trunk@63823 -
2020-08-25 08:31:30 +00:00
dmitry
f0b7aadfd8 cocoa: proper detection of the dark theme. patch by Zoë Peterson. bug #37617
git-svn-id: trunk@63818 -
2020-08-23 22:44:35 +00:00
dmitry
babee456cf cocoa: update handling of key event characters for non-latin based layouts
git-svn-id: trunk@63814 -
2020-08-23 02:22:13 +00:00
juha
52b4b42968 IDE, LCL: Fix the search results scrollbar issue in a generic way in TreeView. Issue #37582, patch from BrunoK.
git-svn-id: trunk@63797 -
2020-08-20 08:10:52 +00:00
pascal
e9f700554a fixed missing brackets
git-svn-id: trunk@63789 -
2020-08-19 08:19:13 +00:00
juha
125e794a87 Remove useless test for X <> Nil when using "is" operator.
git-svn-id: trunk@63779 -
2020-08-18 17:35:21 +00:00
wp
7924956a5a LCL: Add procedure for high-quality image scaling, by Roland Hahn
git-svn-id: trunk@63766 -
2020-08-17 21:41:42 +00:00
joost
3547e13299 fpmake: regenerated
git-svn-id: trunk@63765 -
2020-08-17 19:40:29 +00:00
juha
3fa7867154 LCL-Win32: Support TComboBox.TextHint also in older versions of Windows. Issue #30682, patch from Serge Anvarov.
git-svn-id: trunk@63745 -
2020-08-15 10:25:55 +00:00
juha
b8d20c837f LCL: Formatting of TCustomMemo code. Remove useless setters.
git-svn-id: trunk@63744 -
2020-08-15 09:10:06 +00:00
juha
298d6ab8fb LCL-GTK3: Remove duplicate procedure FreeStrings. Already in generic WS code.
git-svn-id: trunk@63743 -
2020-08-15 09:10:05 +00:00
juha
52a2cdbb1b LCL-Win32: Implement native Combobox.TextHint support for Windows.
git-svn-id: trunk@63735 -
2020-08-14 14:35:53 +00:00
juha
dc8ca7a17f LCL: Restore type TEmulatedTextHintStatus. The state thsChanging was needed after all.
git-svn-id: trunk@63734 -
2020-08-13 17:34:01 +00:00
juha
728e2b9639 LCL: Move function CreateEmulatedTextHintFont to unit StdCtrls as a global function.
git-svn-id: trunk@63733 -
2020-08-13 17:33:59 +00:00
juha
c5dd93a0e4 LCL-GTK2: Apply DisplaySettings properties of TCalendar also during runtime. Issue #37450, patch from Cyrax.
git-svn-id: trunk@63732 -
2020-08-13 15:32:45 +00:00
juha
0011948d52 LCL: Implement TextHint for TComboBox. Issue #30682.
git-svn-id: trunk@63731 -
2020-08-13 11:23:38 +00:00
juha
32e975d46c LCL: Formatting for TCustomEdit code. Remove useless comments.
git-svn-id: trunk@63730 -
2020-08-13 11:23:36 +00:00
juha
953b2ef2b1 LCL: Move function CreateEmulatedTextHintFont to TWinControl for future. Replace emulated hint status with a boolean.
git-svn-id: trunk@63729 -
2020-08-13 11:23:33 +00:00
wp
0ba97f3388 LCL/EditBtn: Fix detection of incorrect center date string element by ParseDate(). https://forum.lazarus.freepascal.org/index.php/topic,51008.msg373806/
git-svn-id: trunk@63728 -
2020-08-13 08:20:57 +00:00
juha
5b171a067d LCL: Fix adding lines to Memo. Disable emulated TextHint for TMemo. Issue #37553.
git-svn-id: trunk@63726 -
2020-08-12 09:29:20 +00:00
juha
06d242ff81 LCL: Simplify code for emulated TEdit.TextHint.
git-svn-id: trunk@63725 -
2020-08-11 22:57:17 +00:00
juha
933a4c9f98 LCL-Qt5/Qt4: Show correct icon in MessageBox. Issue #37270, patch from CudaText man.
git-svn-id: trunk@63724 -
2020-08-11 22:57:14 +00:00
martin
a5841ef7d9 LCL: TWSClassesList.Search, improve search
git-svn-id: trunk@63719 -
2020-08-11 17:17:53 +00:00
juha
496414be63 LCL: Update emulated TEdit.TextHint correctly. Issue #37506.
git-svn-id: trunk@63718 -
2020-08-11 15:13:53 +00:00
dmitry
e66fb29c19 cocoa: reverting unintended change in cocoa_exta for NSTextInputClientProtocol
git-svn-id: trunk@63711 -
2020-08-10 01:41:16 +00:00
dmitry
d459164217 cocoa: update the use of textinputclient to be compatible with fpc3.0.4 headers
git-svn-id: trunk@63710 -
2020-08-10 01:40:07 +00:00
martin
53e492ccd2 LCL: Fix result of TWSClassesList.Search Issue #37360 Note 0124690 Patch by BrunoK
git-svn-id: trunk@63707 -
2020-08-09 13:56:39 +00:00
juha
acc57c654f LCL-GTK2: Remove debug output from TGtk2WidgetSet.PeekMessage(). Issue #37521.
git-svn-id: trunk@63704 -
2020-08-09 06:16:08 +00:00
dmitry
e698ec471b cocoa: adding a dummy NSTextInputClient protocol implementation. The implementation allows to receive a text from emoji dialog introduced with macOS 10.14. bug #37497
git-svn-id: trunk@63703 -
2020-08-09 04:35:08 +00:00
dmitry
f6796707ef cocoa: re-applying current pen and brush, after clearing clipping. bug #37520
git-svn-id: trunk@63702 -
2020-08-09 04:04:21 +00:00
dmitry
62196c0992 cocoa: respecting bundle info.plist setting to create the proper applicaiton instance
git-svn-id: trunk@63693 -
2020-08-06 04:06:42 +00:00
juha
909fb619f4 LCL: Reset TBitBtn.Caption when DefaultCaption=True. Issue #37472, patch from Joeny Ang.
git-svn-id: trunk@63692 -
2020-08-04 20:10:17 +00:00
martin
c1d49b5369 LCL: NewInstance, search for WsClass, always call RegisterNewWSComp(Self). Issue #37360 Note 0124494
git-svn-id: trunk@63689 -
2020-08-04 11:20:05 +00:00