Commit Graph

7000 Commits

Author SHA1 Message Date
wp_xyz
5f76b3e31c LCL: additional fix to TWinControl.GetClientRect wcfBoundsRealized (DockedFormEditor issue), issue #40052. Patch by rich2014. 2022-12-27 15:48:12 +01:00
mattias
1b9e56b56c lcl: fixed TWinControl.GetClientRect wcfBoundsRealized, issue #40052 2022-12-19 22:04:09 +01:00
Ondrej Pokorny
96291eb9a5 TPanel: fix csOpaque style inconsistency (it depended on the order of ParentColor/ParentBackground change) 2022-12-14 21:49:24 +01:00
Ondrej Pokorny
7d00a524a4 TScrollBox: make opaque for ParentColor=False and ParentBackground=False. Issue #40047 2022-12-14 21:49:24 +01:00
Bart
1e302eb754 LCL: improve the construction of some messages for TTreeView. Modified patch by Alexey Torgashin. Issue #39592. 2022-12-05 22:21:09 +01:00
Bart B
1af6a0e61f Merge branch 'lcl/notebook' into 'main'
FIX #40019: LCL/TPageControl: FIX algorithm of clear tabs in TNBPages.Clear()

See merge request freepascal.org/lazarus/lazarus!122
2022-12-03 14:10:15 +00:00
Ondrej Pokorny
2a1ea2ca04 Revert "lcl: label: align to right for autosize and taRightJustify (Delphi compatibility)"
This reverts commit 29996ddc03.
2022-11-30 10:16:12 +01:00
Ondrej Pokorny
f1b3d0ca11 Revert "lcl: label: change left when making label visible for right-aligned autosized label. issue #21898"
This reverts commit 369b6b255e.
2022-11-30 10:16:12 +01:00
Ondrej Pokorny
369b6b255e lcl: label: change left when making label visible for right-aligned autosized label. issue #21898 2022-11-27 19:18:45 +01:00
rich2014
b2611478d9 LCL/TPageControl: FIX algorithm of clear tabs in TNBPages.Clear() 2022-11-26 19:23:15 +08:00
wp_xyz
68e6168982 LCL/TaskDialog: Add new property Width to override the default width. 2022-11-23 23:43:18 +01:00
mattias
8b8ac1696f lcl: TBitBtn: fixed typo 2022-11-18 08:10:34 +01:00
Maxim Ganetsky
202b5682ae LCL: TWinControl.DoRemainingKeyUp argument should have TLMKeyUp type, not TLMKeyDown (most likely copy-paste error). All use cases of TWinControl.DoRemainingKeyUp (in WMSysKeyUp and WMKeyUp) are passing TLMKeyUp arguments. Note that both TLMKeyUp and TLMKeyDown are aliases to TLMKey. Patch by Don, issue #40001. 2022-11-17 02:15:46 +03:00
Ondrej Pokorny
843dc303af win32: DPI-aware menus 2022-11-16 00:44:52 +01:00
zamtmn
f3b838df8c Prevent AV 2022-11-15 04:10:13 +03:00
zamtmn
989070fa91 Fix issue #39923 (AnchorDocking Docked forms sometimes overlap) 2022-11-15 04:09:52 +03:00
wp_xyz
1b3c13f9b9 lcl/(shell)treeview: Fix FindNodeWithTextPath not working for ShellTreeView in Linux. 2022-11-08 16:36:02 +01:00
wp_xyz
3f3e32ce9b lcl/(Shell)TreeView: Add "FindOptions" so that FindNodeWithTextPath works in TShellTreeView even with collapsed nodes and in case-insensitive file systems. 2022-11-08 15:55:17 +01:00
wp_xyz
9cce03ac94 LCL/(Shell)TreeView: Add property PathDelimiter to TCustomTreeView to allow OS path delimiter in ShellTreeView. 2022-11-08 15:30:03 +01:00
wp_xyz
58f237f04c LazControls: Fix LCLScaling of TColorButton.ButtonColorSize and .BorderWidth. 2022-11-07 22:25:58 +01:00
Juha
f45f3610f4 LCL: Fix TControl handler methods and arguments. Issue #39974, patch by Don Siders. 2022-11-02 19:46:16 +02:00
wp_xyz
1799775107 LCL/Graphics: Avoid separate calculation of sin and cos in AngleArc(). Issue #39983. 2022-11-02 12:38:12 +01:00
Bart
4b4e2cef9c Win32: handle System.CmdShow at startup. Patch by Domingo Galmés, slightly modified by me. Issue ##39363. 2022-10-29 18:41:27 +02:00
wp_xyz
eff48575cf LCL/TPanel: New property ShowAccelChar to improve Delphi compatibility in rendering of ampersands. Issue #39973. 2022-10-28 00:09:56 +02:00
wp_xyz
fbe7aa44e1 LCL/SpeedButton: Fix clipping of caption containing double ampersand characters, issue #39820. 2022-10-27 22:27:35 +02:00
Juha
e27cc45f6c LCL: Make TDBCheckbox events consistent with VCL and with TCheckBox. Issue #39917, patch by Arioch The. 2022-10-04 16:59:38 +03:00
Ondrej Pokorny
62cb85cb4b LCL: task dialog: add tfForceNonNative Flag 2022-10-02 11:40:37 +02:00
Ondrej Pokorny
da539c7b9c IDE: load High-DPI images 2022-09-29 00:59:16 +02:00
Ondrej Pokorny
016d9d0534 TPromptDialog: high-DPI 2022-09-28 23:32:17 +02:00
Ondrej Pokorny
a7d0453a6e LCL: TImage: TImageList support (properties Images, ImageIndex and ImageWidth) 2022-09-28 20:25:36 +02:00
Ondrej Pokorny
6a416779cd Revert "LCL: new component TImageListImage (that displays an image from TImageList instead of a TPicture)"
This reverts commit cac82fb704.
2022-09-28 19:40:32 +02:00
Ondrej Pokorny
a3b65673ed LCL: image list: AddMultipleResolutions with TRasterImage overload 2022-09-28 16:22:54 +02:00
Ondrej Pokorny
cac82fb704 LCL: new component TImageListImage (that displays an image from TImageList instead of a TPicture) 2022-09-28 16:10:01 +02:00
Martin
5882a5bfb5 LCL: TaskDialog, fix default radio-button 2022-09-27 12:16:13 +02:00
Juha
9f577dc548 LCL: Add an option to NOT call TCheckbox OnChange handler when clicked. Issue #39870, patch by Arioch The. 2022-09-18 21:31:59 +03:00
Bart
95cfa51d1b TFloatSpinEdit(Ex): fix crash in OI when setting MaxValue/MinValue/Increment. Issue #39792. 2022-09-17 19:03:18 +02:00
wp_xyz
6d123c6ac8 LCL/Toolbar: Fix incorrect high-dpi scaling of toolbuttons due to hard-coded constant margins. 2022-09-13 21:55:27 +02:00
wp_xyz
7db50f95cc LCL: Increase distance between TToolButton icon and text in List mode. 2022-09-11 18:12:06 +02:00
Juha
8eec551e93 LCL: Improve Checkbox / TAction synchronization. Issue #39869. 2022-09-08 10:21:59 +03:00
mattias
5852af11e6 lcl: TApplication.IsShortcut: check if mainform handleallocated 2022-08-31 23:20:41 +02:00
Martok
e4043024da lcl, win32: move TCustomCheckListBox WS specific settings to WS implementataion
Other widgetsets use widgets with builtin check support, no need to have
ownerdraw details in the LCL class
+ publish OnMeasureItem, it can now be used like TCustomListBox
2022-08-30 02:29:36 +03:00
Martok
1161c4a75a LCL: don't call LB_GETITEMRECT from LM_MEASUREITEM handler (issue #39653) 2022-08-30 02:29:36 +03:00
wp_xyz
7950515229 LCL: Revert 0c285d6eb9 (fixes issue #39861). 2022-08-17 22:59:27 +02:00
wp_xyz
13f4f576ab LCL/extctrls: Add new TCustomPanel/TPanel property VerticalAlignment which exists in Delphi. 2022-07-19 19:28:16 +02:00
wp_xyz
e10b896d7e LCL/FloatSpinEdit: Fix KeyPress swallowing the 'e' of exponential notation. 2022-06-10 17:21:36 +02:00
Juha
72fda31b81 LCL: Delete TCustomSpeedButton.DoMouseUp. Part of merge request !21. 2022-06-03 12:52:45 +03:00
alexrayne
3b4fc416a8 LCL: Fix band height evaluation in ControlBar. Now single row snaps to inner control height. 2022-06-02 13:12:23 +03:00
mattias
843ed47f9a lcl: fixed parsing with fpdoc 2022-05-29 19:23:35 +02:00
Bart
09584a03b9 LCL: implement PromptForFileName in a Delphi compatible way (even though the function is badly designed IMHO). Issue #39740. 2022-05-18 22:51:52 +02:00
mattias
174cf206d4 lcl: fixed TCustomForm.GetMonitor to avoid calling SetBounds 2022-05-17 10:32:34 +02:00
mattias
becdd42b6d lcl: fixed TCustomForm.GetMonitor when handleallocated and visible 2022-05-16 15:25:08 +02:00
mattias
db88c83b22 lcl: TCustomForm.GetMonitor consider poDefaultPosOnly 2022-05-16 12:14:10 +02:00
mattias
cf9253d7a7 lcl: TCustomForm.GetMonitor consider Position and DefaultMonitor on first show 2022-05-16 11:29:43 +02:00
wp_xyz
0883c8c524 LCL/ListView: implement incremental search in virtual mode for Windows. Issue #39748. 2022-05-13 11:06:11 +02:00
Ondrej Pokorny
1837c65413 lcl TLabel: unbind Color and Transparent to fix ParentColor issues (fixes) 2022-05-03 20:42:26 +02:00
Ondrej Pokorny
4ffce1ec8f lcl TLabel: unbind Color and Transparent to fix ParentColor issues 2022-05-03 09:39:24 +02:00
wp_xyz
c0c30424de LCL/TListView: More complete fix of issue #39708, based on patch by d7_2_laz (https://forum.lazarus.freepascal.org/index.php/topic,59024.msg441180.html#msg441180). 2022-04-27 10:38:14 +02:00
wp_xyz
417ff31e84 LCL/ImageList: Fix incorrect png format check in lfm files. Issue #39719, patch by Guilherme Scaglia. 2022-04-22 15:50:32 +02:00
wp_xyz
b694be37b0 LCL/ListView: Better fix for editing virtual multi-select listview than 451f75e3ce. Issue #39708. 2022-04-13 19:41:38 +02:00
wp_xyz
451f75e3ce LCL/ListView: Disable editing of virtual list items when multiple items are selected to avoid transferring the edited caption to the wrong node. 2022-04-13 14:45:03 +02:00
wp_xyz
ba8174b384 LCL/ListView: Fix modifying incorrect item when editing in virtual mode. Issue #39708. 2022-04-12 19:23:55 +02:00
wp_xyz
faed788b23 LCL/ListView: Fix TListview in cocoa hanging after fb64d6ef4d (related to issue #39693). 2022-04-04 15:55:11 +02:00
wp_xyz
9aa8b52ba2 LCL/ListView: Fix OnSelectItem not showing previously selected item when argument Selected=false (on Windows). 2022-04-04 11:51:42 +02:00
wp_xyz
fb64d6ef4d LCL/ListView: Fix multi-selection in virtual mode. Issue #39693. 2022-04-03 23:27:52 +02:00
Zaher Dirkey
76c95e8c47 make TPopupNotifier.BidiMode as Application.BidiMode
Just simple logical fix a crash ADragObjectCopy
2022-03-18 18:18:54 +02:00
wp_xyz
201075cbd8 LCL: Make procedure RotateRect() (local to customlabel.inc) publicly available in GraphMath. 2022-03-13 15:41:48 +01:00
Juha
a1dca01b66 Revert an earlier change in 82b9902b12. The checks are needed. 2022-03-06 09:11:08 +02:00
Juha
b02bb3563b Revert "LCL: Fix Toolbar size when inside a Controlbar". Causes ChangeBounds loop in a bottom anchored Toolbar with GTK2. 2022-03-04 22:25:41 +02:00
Juha
82b9902b12 LCL: Prevent an occational range error in ShellListView. Remove useless checks. 2022-03-04 12:50:22 +02:00
Juha
78f789c59b LCL: Fix Toolbar size when inside a Controlbar. Merge request !77 by Alexander Litjagin. 2022-03-04 00:27:15 +02:00
wp_xyz
2b04018e69 LCL/SpeedButton: Fix misaligned icons in TFilenameEdit etc. 2022-02-10 14:59:49 +01:00
wp_xyz
1f92d4fde1 LCL/TSpeedButton: New property Alignment for left/right aligned or centered caption. 2022-02-07 16:04:47 +01:00
wp_xyz
ad41c897b7 LCL/TSpeedButton: Improve text alignment when there is not glyph. 2022-02-07 15:42:10 +01:00
wp_xyz
89bd5e8943 LCL/SpeedButton: Draw centered multi-line caption. Issue #39632 2022-02-07 12:59:21 +01:00
Martin
f7f41f0116 LCL: Fix Canvas.RoundRect with zero radius, wrong size for non-win. Issue #39628 2022-02-02 14:45:51 +01:00
Bart
8c251bbdfb LCL: Use const for parameters. Patch by Alexey Torgashin. Issue #39617. 2022-02-02 13:57:38 +01:00
Juha
082d051466 LCL: Do not InvalidateSelected in MultiSelect virtual TListView. Part of issue #39324. 2022-01-28 17:09:38 +02:00
Juha
4d72245552 LCL: Solve most performance issues with virtual TListView (OwnerData=True). Issue #39324, patch by d7_2_laz. 2022-01-27 13:24:51 +02:00
Juha
cd2ae505e3 LCL: Fix cursor key behavior with TTreeNode.Enabled, add methods to iterate tree. Issue #39590. 2022-01-25 11:20:56 +02:00
Juha
6464e232a0 LCL: Implement TreeView's TTreeNode.Enabled property, partly functional. Issue #39590, patch by Alexey Torgashin. 2022-01-23 21:29:54 +02:00
Maxim Ganetsky
0a0b688587 LCL: added const to GetLocalizedFormatDescription function parameters 2022-01-17 00:33:57 +03:00
Maxim Ganetsky
52bb248201 LCL: fixed i18n of graphic file format filter descriptions in file dialogs, improved descriptions themselves, removed unused ones, regenerated translations and updated Russian translation 2022-01-15 04:41:04 +03:00
Ondrej Pokorny
624ef51567 LCL Spin: fix case of Integer/string types 2022-01-06 14:16:30 +01:00
Bart
603fb72945 T(Float)SpinEdit: update the control in EditingDone so that text matches Value. Reported by Jamie in https://forum.lazarus.freepascal.org/index.php/topic,57722.msg429596.html#msg429596 2022-01-05 12:33:17 +01:00
mattias
744d5506fd lcl: TTReeView: skip drawing node text when editing, issue 39507 2021-12-26 18:19:26 +01:00
wp_xyz
6e2454530b LCL: Add properties Hot/Disabled/Pressed/SelectedImageIndex to TBitBtn and TSpeedButton. Issue #33299. 2021-12-26 18:06:53 +01:00
Ondrej Pokorny
5f9aaa6cab LCL: reformatting according to CodeTools 2021-12-17 10:18:01 +01:00
Ondrej Pokorny
f05922b05d LCL: TControl.ClientToScreen(TRect) overload - Delphi compatibility 2021-12-17 10:16:49 +01:00
wp_xyz
7114800c05 LCL/TCustomGrid, TCustomCheckBoxEx: Add missing Notification method to react on destruction of TitleImageList and Images, respectively. 2021-12-16 14:52:01 +01:00
wp_xyz
285ed6ea0d LCL/TColorButton: Add missing Notification method to prevent crash when assigned ColorDialog is deleted. 2021-12-16 00:37:28 +01:00
Ondrej Pokorny
8438ed9d98 Revert "LCL: Add TCustomFrame.CreateParams. Somehow fixes issue #25124."
This reverts commit 20c1e10aca.
2021-11-29 22:05:19 +01:00
Juha
20c1e10aca LCL: Add TCustomFrame.CreateParams. Somehow fixes issue #25124. 2021-11-29 11:26:58 +02:00
Ondrej Pokorny
89162e9c1c LCL: move crScreenCursor to a private const of TScreen so that it isn't used elsewhere 2021-11-26 13:33:48 +01:00
Ondrej Pokorny
d13c67e680 lcl: TForm.ShowModal: override temporary cursors with Screen.Cursor and not crDefault. Issue #39486 2021-11-26 11:23:29 +01:00
wp_xyz
5438db7700 LCL: Give access to dialog icon idDialogShield 2021-11-19 23:34:09 +01:00
Ondrej Pokorny
89cd2a1045 win32: fix setting TMenuItem.Visible := True in the top menu bar. Issue #39458 2021-11-19 16:56:10 +01:00
Ondrej Pokorny
5f82f6ba31 TCustomForm: MakeFullyVisible should use WorkAreaRect as default (sensible and also Delphi-compatible) 2021-11-19 15:17:18 +01:00
Ondrej Pokorny
cbafa07331 TCustomForm: rewrite MoveToDefaultPosition and fix regression after 5d1e0bb8e9 2021-11-19 15:17:18 +01:00
Roland Hahn
5aee9d5c07 Aktualisieren lcl/include/bitbtn.inc 2021-11-07 10:26:45 +00:00
Juha
776e1e91ad LCL-GTK3: Comment out abundant debug lines. 2021-11-06 02:43:33 +02:00
mattias
adafca05c0 lcl: fixed TSpeedButton with Action and changing Action.ImageIndex 2021-11-05 11:48:00 +01:00
Juha
75aebbee85 LCL: Consider that MemSize can return 0 with a custom MemoryManager. Merge request !27 by Sergey Larin. 2021-10-28 11:23:36 +03:00
Juha
f20d0dab9c LCL: In LogFontAndName compare only upto the terminating #0. There may be garbage after it. Merge request !30 by Sergey Larin. 2021-10-28 01:35:12 +03:00
wp_xyz
d6a9516c11 LCL/TCheckComboBox: Workaround for issues #39424 and #39427 2021-10-16 17:45:40 +02:00
Marc
4918dc89b0 LCL: Return TSharedCustomBitmap as shared image class. TCustomBitmap assumes this as a descendant 2021-10-12 22:14:21 +02:00
Juha
814e4ba4e2 Rename CompareMethods to more logical SameMethod. Remove old deprecated functions. 2021-10-10 19:00:49 +03:00
Juha
02eed0c903 LCL: A new angle bracket option for TreeViewExpandSignType. Issue #39361, patch by Alexey T. 2021-10-04 11:35:11 +03:00
Bart
2befd9dd7f T(Float)SpinEdit: make Modified have the correct value in OnChange as well. 2021-10-03 21:41:34 +02:00
Bart
abd3cd5c6b T(Float)SpinEdit: set Modified to False if Value is set programmatically. 2021-10-03 12:47:45 +02:00
Bart
a669e08450 TComboBox: update ItemIndex in RealSetText also if Text is empty string. Issue #39366. 2021-10-03 10:05:51 +02:00
wp_xyz
608ffc5ee9 LCL/Dialogs: Auto-sized layout for InputCombo(Ex). Fixes issue #39410. 2021-10-02 12:54:34 +02:00
Juha
865013eeb9 IDE: Remove unused and duplicate resource strings. Fix exception messages. 2021-09-30 17:23:21 +03:00
Bart
6eca378f9d TListView: call OnDeletion also when destroying. Issue #39391. 2021-09-23 14:16:03 +02:00
wp_xyz
95da3f4854 LCL/LCLScaling: Fix ParentFont becoming to false upon scaling. Issue #37299. 2021-09-10 21:05:39 +02:00
Jesus Reyes A
fef094c56f LCL: Fix updating list dataset on dblookupcombobox on selection or autocomplete, issue #39343 2021-08-29 00:49:48 -05:00
Jesus Reyes A
1e64a65808 LCL: Deprecated TDBLookupComboBox DropDownCount property in favor of DropDownRows to improve delphi compatibility, issue #35864 2021-08-25 00:58:24 -05:00
Jesus Reyes A
71d8b00d81 LCL: DBLookupCombobox should not update if it's unbound, fixes autocompletion, issue #34298 2021-08-01 18:40:53 -05:00
juha
27af6874b9 LCL: Implement TApplication.HelpShowTableOfContents. Issue #25905.
git-svn-id: trunk@65478 -
2021-07-20 19:44:31 +00:00
juha
d6c215a491 LCL: Make ListView.Selected return the first selected item also when OwnerData=True.
git-svn-id: trunk@65474 -
2021-07-18 21:34:01 +00:00
juha
ada182fd7b LCL: Fix TListView selection on Windows with MultiSelect=True and OwnerData=True. Issue #34877, patch by Yuriy Sydorov.
git-svn-id: trunk@65473 -
2021-07-18 21:09:03 +00:00
juha
22c8c554b1 ... and fix compilation.
git-svn-id: trunk@65465 -
2021-07-16 20:18:26 +00:00
juha
5d1e0bb8e9 LCL: Prevent popup form going off-screen with position poMainFormCenter. Use Max(Min()) shortcuts. Issue #39231, patch by Soner.
git-svn-id: trunk@65464 -
2021-07-16 20:01:42 +00:00
wp
ee25f78baf LCL/ShellTreeView: Speed-up of populating a folder with many subfolders (example: c:\Windows\WinSxS)
git-svn-id: trunk@65454 -
2021-07-15 08:26:48 +00:00
wp
8b6e1655ea LCL/TPageControl: Add new method "Clear" to remove all pages.
git-svn-id: trunk@65355 -
2021-07-03 20:44:02 +00:00
dmitry
0e0ef8c3ca lcl-cocoa: restoring the items checked status after the sort, if WS needs some extra assistance for that. bug #39121. potential resolution for #38137
git-svn-id: trunk@65351 -
2021-07-03 01:02:04 +00:00
michl
ffa2a3f3c2 LCL: Revert revision 63847 #55d0c7bc3a fixing FormShow call at wrong time. Issue #38922
git-svn-id: trunk@65303 -
2021-06-25 08:49:12 +00:00
juha
3ff7c6b95c LCL: Fix spelling in a comment.
git-svn-id: trunk@65301 -
2021-06-24 17:40:14 +00:00
michl
520395f85d LCL: WinControl: Fixed not needed LM_WindowPosChanged removed. Issue #39006. Suggested by Jamie Philbrook.
git-svn-id: trunk@65258 -
2021-06-17 19:03:28 +00:00
juha
a078714f63 Revert r65213 #595fb2c21d. It caused a regression.
git-svn-id: trunk@65228 -
2021-06-14 07:52:06 +00:00
juha
8ec75e6918 LCL: Fix the %MainUnit directive in custompage.inc. Issue #38991, patch from Don Siders.
git-svn-id: trunk@65221 -
2021-06-11 21:18:30 +00:00
juha
a04f03d6df LCL: Take the width of TPageControl's TTabSheets into account in an autosized form. Issue #36493, patch by Joeny Ang.
git-svn-id: trunk@65218 -
2021-06-11 07:25:39 +00:00
juha
595fb2c21d LCL: Call FormShow correctly. Issues #36127 and #38922, patch by Joeny Ang.
git-svn-id: trunk@65213 -
2021-06-11 06:17:44 +00:00
maxim
b8d0d9366b LCL: fixed typos related to 'occur' word
git-svn-id: trunk@65207 -
2021-06-10 22:21:45 +00:00
michl
8a96677e5d LCL: TListBox.ScrollWidth is used when defined by user. Resolves issue #19079
git-svn-id: trunk@65169 -
2021-06-03 18:40:17 +00:00
michl
cded431fef ListView: Fixed SIGSEGV when switching to other WinControl when default editor is opened. Issue #38627
git-svn-id: trunk@65139 -
2021-05-26 20:17:44 +00:00
michl
c8e8ad8dc8 DockedFormEditor: Win32: Fixed wrong form size after changing AutoScroll, see issue #38856
git-svn-id: trunk@65093 -
2021-05-07 19:59:30 +00:00
michl
5d6cad752d LCL: Fixed TForm.AutoScroll does not turn off scrollbars if UNCHECKED while scrollbars are showing. Issue #38856
git-svn-id: trunk@65089 -
2021-05-06 20:23:34 +00:00
michl
74d996c632 LCL: TScrollingWinControl.ScrollInView or TScrollBox.ScrollInView scroll only when ScrollBar is visible, see Issue #38838 forum entries.
git-svn-id: trunk@65085 -
2021-05-04 18:38:05 +00:00
michl
c25e153265 LCL: TScrollingWinControl.ScrollInView or TScrollBox.ScrollInView does not calculate stacked controls, second attempt. Issue #38838.
git-svn-id: trunk@65083 -
2021-05-02 20:24:59 +00:00
michl
f192422579 LCL: TScrollingWinControl.ScrollInView or TScrollBox.ScrollInView does not calculate stacked controls. Issue #38838. Patch from Jamie Philbrook
git-svn-id: trunk@65078 -
2021-05-01 17:48:42 +00:00
juha
1b1306385e LCL: Support SpinEdit min..max range -8...-2 (both negative). Issue #38810.
git-svn-id: trunk@65066 -
2021-04-28 10:16:51 +00:00
balazs
25a1c56fc2 LCL: Prevent crash by calling ShowDragImage/HideDragImage only if DragImageListResolution is not nil.
git-svn-id: trunk@65055 -
2021-04-23 14:40:42 +00:00
michl
df1e1dc31a LCL: Fixed ParentBackground of GroupBoxes cannot be set to true. Issue #38777
git-svn-id: trunk@65036 -
2021-04-20 21:57:55 +00:00
bart
a148676b51 T(Float)SpinEdit: implement property EditorEnabled. ATM win32/64 and wince only. Issue #0038736.
git-svn-id: trunk@64989 -
2021-04-14 07:25:00 +00:00
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
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
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
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
ondrej
2031a4a842 LCL: restore TCustomEdit.GetTextHint deleted in r63730 #32e975d46c
git-svn-id: trunk@63907 -
2020-09-23 04:58:05 +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
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
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
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
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
juha
b8d20c837f LCL: Formatting of TCustomMemo code. Remove useless setters.
git-svn-id: trunk@63744 -
2020-08-15 09:10:06 +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
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
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
496414be63 LCL: Update emulated TEdit.TextHint correctly. Issue #37506.
git-svn-id: trunk@63718 -
2020-08-11 15:13:53 +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
17af06e4e4 More WSRegister changes by BrunoK. Issue #37360
git-svn-id: trunk@63687 -
2020-08-04 11:20:02 +00:00
wp
0c285d6eb9 LCL/ButtonPanel: Fix showing/hiding of button glyphs. Issue #37455, patch by Joeny Ang.
git-svn-id: trunk@63672 -
2020-07-31 20:01:35 +00:00
juha
efdce59d90 LCL: Optimize component registration and TLCLComponent.NewInstance. Issue #37360, patch from BrunoK.
git-svn-id: trunk@63619 -
2020-07-22 08:34:07 +00:00
juha
1edc4cf4b9 LCL: Prevent calling Form.OnResize() and OnChangeBounds() twice. Issue #36127, patch from Joeny Ang.
git-svn-id: trunk@63577 -
2020-07-16 23:00:30 +00:00
bart
8df0af1ab0 LCL: take CharCase into account in TCustomEdit.RealSetText. Previous commit r63542 #b3ba26f89d had the fix commented out ;-(. Issue #0037313.
git-svn-id: trunk@63575 -
2020-07-16 21:26:26 +00:00
bart
b3ba26f89d LCL: take CharCase into account in TCustomEdit.RealSetText. Prevents unneccessary OnChanges and fixes infinite OnChange loop. Issue #0037313.
git-svn-id: trunk@63542 -
2020-07-11 10:16:10 +00:00
mattias
cffa67bd52 lcl: added google-chrome to list of default browsers
git-svn-id: trunk@63390 -
2020-06-18 15:51:48 +00:00
bart
f0e8acae66 LCL: implement SelectRange when MultiSelect=False. Simplify SelectAll.
git-svn-id: trunk@63336 -
2020-06-10 09:48:28 +00:00
juha
77e76e66b8 LCL: Support WS binding for ListBox.SelectAll. New ListBox.SelectRange. Issue #36929.
git-svn-id: trunk@63329 -
2020-06-08 10:34:32 +00:00
wp
2610d3baf8 ImageList: Fix HasImageIndex not being updated when ClearOverlays is called. Issue #35525, patch by Don Siders.
git-svn-id: trunk@63290 -
2020-06-04 20:34:31 +00:00
juha
39effc2a52 LCL: Allow specified PopupMenu in TabControl when page-selector menu disabled. Issue #37171, patch from Anton Kavalenka.
git-svn-id: trunk@63287 -
2020-06-04 20:07:35 +00:00
juha
9b896ca480 LCL: Support folders in OpenDocument() function. Issue #37157, patch from Joeny Ang.
git-svn-id: trunk@63276 -
2020-06-02 06:56:52 +00:00
wp
bc73c3cae4 Graphics: Fix misleading parameter names in comment headers of TCanvas.Arc and .RadialPie
git-svn-id: trunk@63262 -
2020-06-01 21:32:57 +00:00
dmitry
bc8507e6b6 lcl: adding combobox readonly back. The indentation for the property is to work like TEdit.ReadOnly preventing user from editing combobox text field by manipulating the text.
Changes by selecting combobox items are to be allowed

git-svn-id: branches/comboboxreadonly@63237 -
2020-05-28 12:46:33 +00:00
juha
0d191847d7 LCL: Fix an error in TTreeView mouse selection + some refactoring. Issue #37145.
git-svn-id: trunk@63235 -
2020-05-27 11:58:07 +00:00
juha
257f842d30 LCL: Improve TTreeView mouse selection. Issue #37145, patch from Joeny Ang.
git-svn-id: trunk@63232 -
2020-05-26 23:24:01 +00:00
ondrej
a46759822f combobox: fix FSelLength condition in InitializeWnd
git-svn-id: trunk@63230 -
2020-05-26 22:51:35 +00:00
ondrej
d8adb758e5 ComboBox: implement TComboBoxStyle.SetEditBox
git-svn-id: trunk@63229 -
2020-05-26 22:42:13 +00:00
ondrej
ef8d6a825e ComboBox: implement TComboBoxStyle.IsOwnerDrawn and .IsVariable and use them instead of the in [] syntax
git-svn-id: trunk@63228 -
2020-05-26 22:25:15 +00:00
ondrej
1c63f54328 ComboBox: more fixes with TComboBoxStyle.HasEditBox
git-svn-id: trunk@63225 -
2020-05-26 21:53:31 +00:00
ondrej
34e6f40639 ComboBox: implement TComboBoxStyle.HasEditBox as a replacement for the old and removed TCustomComboBox.ReadOnly property
git-svn-id: trunk@63224 -
2020-05-26 21:30:13 +00:00
michl
47ba57fd3a LCL: ComboBox: Fixed data lost, Style csSimple, leaving with TAB. Issue #35087. Patch by Gernot Riebold
git-svn-id: trunk@63204 -
2020-05-21 22:15:42 +00:00
juha
257f95ec97 LCL: Never trigger click events on TreeView's fold-arrow. Issue #37051, patch from CudaText man.
git-svn-id: trunk@63171 -
2020-05-16 08:23:09 +00:00
juha
320f05fb78 LCL: Prevent ReferenceCount going negative in a rare situation (DLL under Windows 7). Issue #37072, patch from Zdravko Gabrovski.
git-svn-id: trunk@63167 -
2020-05-15 22:52:13 +00:00
juha
b4415f3aa4 LCL: Don't trigger click event on TreeView's fold-arrow if another node is selected. Issue #37051.
git-svn-id: trunk@63147 -
2020-05-13 22:29:10 +00:00
juha
e7cce245c9 LCL: Reshow an application hint correctly. Issue #37053, patch from Zaher Dirkey.
git-svn-id: trunk@63142 -
2020-05-12 20:03:34 +00:00
juha
11e2bdecbc LCL: Don't trigger double-click on TreeView's fold-arrow if another node is selected. Issue #37051.
git-svn-id: trunk@63139 -
2020-05-12 18:52:10 +00:00
juha
47bfab75ef LCL: Remove also public property TCustomComboBox.ReadOnly.
git-svn-id: trunk@63112 -
2020-05-02 14:13:43 +00:00
juha
368225808a LCL: Remove deprecated TComboBox.ReadOnly.
git-svn-id: trunk@63110 -
2020-05-01 21:12:54 +00:00
juha
d6fe30b43c LCL: Improve EmptyValue and DisplayEmpty in DB controls. Issue #36035, patch from Zdravko Gabrovski.
git-svn-id: trunk@63052 -
2020-04-23 22:58:48 +00:00
zeljko
455c23e3f7 LCL: implemented TUNBPages.Move(). Patch by Michal Gawrycki. issue #36953
git-svn-id: trunk@63047 -
2020-04-22 17:01:40 +00:00
martin
5aad829595 LCL: DragManager, use BeginTempCursor, instead of calling WidgetSet / Avoid flicker, when dragging TListView (on Windows)
git-svn-id: trunk@63007 -
2020-04-17 15:54:33 +00:00
ondrej
d0ac09f35b LCL: do not call SetImageListWS if handle is not allocated. Issue #36921
git-svn-id: trunk@62999 -
2020-04-16 13:21:33 +00:00
zeljko
e91c53d5bc LCL: fixed regression, activate from delayed event should be called only if we are active form. issue #36877
git-svn-id: trunk@62892 -
2020-04-05 16:13:21 +00:00
juha
a43056f291 LCL: "EmptyValue" and "DisplayEmpty" properties for TBLookupCombobox and TDBLookupListBox components. Issue #36035, patch from Zdravko Gabrovski.
git-svn-id: trunk@62884 -
2020-04-04 12:51:38 +00:00
martin
9ff9f3ac82 Fix leak in TLCLGlyphs.GetImageIndex (introduced in r58106 #50dc18646e). Entry name must be set, before adding to tree. Since the name is used as lookup (the tree "sorts" by the name).
git-svn-id: trunk@62868 -
2020-04-02 20:12:29 +00:00
juha
7c479cba63 LCL: Update contents of TTreeView better when Scrollbars are hidden with ssAutoVertical. Issue #36731, patch from nappsoft.
git-svn-id: trunk@62843 -
2020-04-01 10:43:21 +00:00
zeljko
42c1f05392 LCL: TTreeView fixed sort under unixes. issue #33064
git-svn-id: trunk@62828 -
2020-03-31 11:03:33 +00:00
juha
f5c35fba4b LCL: Include more code in "try" block in InputQuery(). Issue #33370, patch from Serge Anvarov.
git-svn-id: trunk@62777 -
2020-03-20 10:15:22 +00:00
juha
b79364d9d0 Revert r56034 #9019311d50. Do not reset TDBEdit.Modified always. Issue #31820.
git-svn-id: trunk@62769 -
2020-03-16 19:51:39 +00:00
ondrej
f6c39c019d LCL: implement MDI for win32. Issue #36582, based on patch by Kostas Michalopoulos, attempt 2
git-svn-id: trunk@62745 -
2020-03-12 09:28:38 +00:00
ondrej
29018d9a1a Revert r62685 #e1838e46a0: LCL: implement MDI for win32. Issue #36582, based on patch by Kostas Michalopoulos
git-svn-id: trunk@62739 -
2020-03-11 05:48:36 +00:00
ondrej
cef1d45559 Reverted revisions r62734, r62733, r62731, r62729, r62728, r62715, r62704 #6343248e4e - changes after MDI commit
git-svn-id: trunk@62738 -
2020-03-11 05:47:23 +00:00
zeljko
50d299bc8f LCL: throw warning if items.count is differrent than invisible + visible count and check items.IndexOf(). issue #36776
git-svn-id: trunk@62733 -
2020-03-10 08:46:14 +00:00
juha
da2d035ab2 LCL: Use the enhanced Delete() syntax in TMenuItem.Clear.
git-svn-id: trunk@62729 -
2020-03-09 23:45:02 +00:00
juha
33ed35c417 LCL,IDE: Turn TMenuItem.Delete into a function returning the TMenuItem. Delete+Free unused MenuItems correctly in IDE's code. Issue #36776.
git-svn-id: trunk@62728 -
2020-03-09 21:29:06 +00:00
juha
45ba784bd8 LCL: Solve issue #36746 in a Delphi compatible way. Patch from C Western.
git-svn-id: trunk@62715 -
2020-03-08 12:47:53 +00:00
juha
6343248e4e LCL: Free sub menuitem when it is deleted. Fix TMenuItem.Clear. Issue #36746.
git-svn-id: trunk@62704 -
2020-03-07 20:31:46 +00:00
juha
6a5c733584 LCL: Fix FPC_FullVersion text for FPC 3.0.4. Now 30004, was 30400.
git-svn-id: trunk@62703 -
2020-03-07 20:31:32 +00:00
marcus
b9e4a03603 fixes for is precedence change in fpc r44266 #831fd20413
git-svn-id: trunk@62699 -
2020-03-06 12:07:46 +00:00
ondrej
e1838e46a0 LCL: implement MDI for win32. Issue #36582, based on patch by Kostas Michalopoulos
git-svn-id: trunk@62685 -
2020-02-28 19:29:59 +00:00
ondrej
da5d437410 LCL: simplify TScreen.BeginTempCursor
git-svn-id: trunk@62683 -
2020-02-28 07:07:40 +00:00
ondrej
466e5b307b LCL: fix compilation with FPC 3.0.x
git-svn-id: trunk@62671 -
2020-02-25 06:17:58 +00:00
juha
5f31268a52 LCL: Remove useless comments above methods.
git-svn-id: trunk@62668 -
2020-02-24 09:50:57 +00:00
ondrej
74fb203f39 LCL: Screen.BeginTempCursor & EndTempCursor
git-svn-id: trunk@62664 -
2020-02-23 06:04:38 +00:00
juha
bc1e8a9946 LCL: Update Images in BitBtn and SpeedButton from connected Action also when Glyph is not empty. Issue #22071.
git-svn-id: trunk@62642 -
2020-02-17 18:17:25 +00:00
juha
efcdcd91ab LCL: Update "Accept" flag in TCustomAbstractGroupedEdit.EditDragOver. Optimize. Issue #36685, patch from errno.
git-svn-id: trunk@62630 -
2020-02-14 09:36:14 +00:00
juha
a79371c9f2 LCL: Allow updating image in TMenuItem externally. Issue #36607, patch from Anton Kavalenka.
git-svn-id: trunk@62585 -
2020-01-24 19:41:10 +00:00
ondrej
fab987c917 TImageList: compress default resolution as well (non-default resolutions are already compressed).
git-svn-id: trunk@62584 -
2020-01-24 08:59:39 +00:00
dmitry
8bcb4c3d6f lcl: moving RegisterPropertyToSkip from unit initialization to WSRegisterClass methods
git-svn-id: trunk@62581 -
2020-01-23 15:28:39 +00:00
dmitry
556c5562fe bug #36281. Merged revision(s) 62516-62547 from branches/listviewsortindicator:
lcl: adding sortIndicator to the listview
........
win32: implementation of sortindicator 
........
lcl: adding autosortindicator property for the listview
........
gtk2: sortindicator implementation
........
gtk2: reverting accidental changes (unrelated to sortindicator)
........
qt5: implementing sort indicator  (seems like qt5 allows only 1 indicator per header)
........
cocoa: implementing sortIndicator
........
doc: adding short descriptions for SortIndicator and AutoSortIndicator
........

git-svn-id: trunk@62567 -
2020-01-17 01:49:23 +00:00
ondrej
f5da5df4fb LCL: high-DPI: fix inplace frames. Issue #36370
git-svn-id: trunk@62507 -
2020-01-07 21:14:44 +00:00
wp
ec8029f42d LCL/FlowPanel: Fix AutoSize issue (issue #36514).
git-svn-id: trunk@62486 -
2020-01-04 14:26:03 +00:00
juha
b46b72fb2b LCL: Remove deprecated function FontCanUTF8. All widgetsets returned True, including GTK(2) and QT(5). Not implementing it caused bugs.
git-svn-id: trunk@62425 -
2019-12-20 17:45:44 +00:00
juha
709c6d0859 LCL: DBLookup controls and ScrollListDataset, scroll also if dataset wwas opened before control was created. Issue #33109, patch from Michal Gawrycki.
git-svn-id: trunk@62415 -
2019-12-18 20:52:05 +00:00
wp
07e7174b8d LCL: Fix Delphi compatibility of PolyBezier (default value of Continuous argument). Issue #36442, patch by CudaText man).
git-svn-id: trunk@62404 -
2019-12-15 22:55:36 +00:00
wp
9449a23949 LCL/ComboBoxEx: Use type TImageIndex for image index properties of TComboboxEx. Issue #33026, patch by Michal Gawrycki.
git-svn-id: trunk@62379 -
2019-12-11 21:43:21 +00:00
juha
065d7f1e25 LCL: Change selection properly when setting TListBox.ItemIndex. Issue #34967, patch from Denis Kozlov.
git-svn-id: trunk@62312 -
2019-11-28 20:39:42 +00:00
wp
733d74e407 LCL: Fix TSpeedButton and TBitBtn using non-scaled icons if an Action is assigned to these controls (https://forum.lazarus.freepascal.org/index.php/topic,47574.msg340909.html).
git-svn-id: trunk@62311 -
2019-11-28 17:58:24 +00:00
juha
7b46b7ced2 LCL: Prevent a crash when freeing a DBEdit with focus. Issue #27178, patch from Petr-K.
git-svn-id: trunk@62288 -
2019-11-23 22:12:41 +00:00
juha
88ac636e41 LCL: Prevent a crash in Coolbar when clicking a Grabber in an empty band.
git-svn-id: trunk@62283 -
2019-11-22 20:08:39 +00:00
juha
0c7fee62f3 IDE: Use configurable DropDownCount for IDE's ComboBoxes. Issue #36329, patch from Vojtech Cihak.
git-svn-id: trunk@62278 -
2019-11-22 00:14:36 +00:00
juha
9a4a5ac00d LCL: Prevent an exception in TPageControl with a disabled tab. Issue #36282, patch from errno.
git-svn-id: trunk@62235 -
2019-11-12 22:55:40 +00:00
juha
8e1067a191 LCL: Prevent an error when Monitor.PixelsPerInch=0 which may happen with GTK3 + Wayland. Issue #36220, patch from David.
git-svn-id: trunk@62212 -
2019-11-06 21:32:33 +00:00
juha
b13519cc85 LCL: Call GetPageClass when adding a TTabSheet in PageControl. Eliminate PageClass variable. Issue #34886.
git-svn-id: trunk@62136 -
2019-10-27 19:19:28 +00:00
juha
106e142af0 LCL: Wait for the first WMSize() before triggering onShow()/onActivate() of a form. Issue #36127, patch from Joeny Ang.
git-svn-id: trunk@62113 -
2019-10-24 22:34:22 +00:00
juha
92a535fc1f Revert r57155 and r60340 #b6923ebc84 because of a regression bug. See issue #36170.
git-svn-id: trunk@62095 -
2019-10-20 17:16:16 +00:00
juha
6e36102baf LCL: Minor improvement for scaling in Grids and ImageList. Issue #35648, patch from Alexey Tor.
git-svn-id: trunk@62090 -
2019-10-19 10:53:30 +00:00
juha
a5cca7c662 LCL: Make TForm's bounds and restored bounds consistent. Issue #36127, patch from Joeny Ang.
git-svn-id: trunk@61997 -
2019-10-05 20:26:41 +00:00
juha
dcb8bd49fb Designer: Support Undo for properties of subcomponents like 'LabeledEdit1.SubLabel'. Issue #36071.
git-svn-id: trunk@61974 -
2019-10-03 22:58:20 +00:00
bart
a7be8c9c96 LCL: fix TTaskDialog.ModalResult if closebutton (in CommonButtons) is clicked. Issue #0036069.
git-svn-id: trunk@61947 -
2019-09-29 10:43:55 +00:00
bart
96eee65d5d LCL: override TSpinEdit.GetLimitedValue so it cannot return values outside the integer range. Issue #0032793.
git-svn-id: trunk@61945 -
2019-09-29 10:21:16 +00:00
wp
6decc9e2aa LCL/Trackbar: Undo r61810 #5217a2df4e
git-svn-id: trunk@61812 -
2019-09-03 16:54:16 +00:00