Commit Graph

553 Commits

Author SHA1 Message Date
juha
3574bdfb6d Move debug- & other non-GUI stuff from LCLProc to LazUtilities and LazLogger in package LazUtils.
git-svn-id: trunk@58244 -
2018-06-13 13:59:07 +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
ondrej
70b731c254 LCL: publish DoubleBuffered & ParentDoubleBuffered
git-svn-id: trunk@58099 -
2018-06-03 20:36:08 +00:00
ondrej
3ce2d72ef3 LCL: TCustomEdit: add OnChange handler list
git-svn-id: trunk@56721 -
2017-12-14 14:15:34 +00:00
juha
c4f8616371 LCL: Change a counter to boolean FTextChangedLock, used for firing events right. Issue #32630.
git-svn-id: trunk@56489 -
2017-11-24 20:44:02 +00:00
juha
c645377b97 LCL: Unpublish TEdit.Action. Issue #31339, patch from AlexeyT.
git-svn-id: trunk@56425 -
2017-11-17 12:07:47 +00:00
bart
c3f41244e0 Revert r56181 #c5637ad72a (Fix firing an OnChange and setting Modified when setting Text inside OnChange and new Text = old Text. Issue #0032602.) It causes a regression.
git-svn-id: trunk@56353 -
2017-11-10 21:04:34 +00:00
ondrej
251aa8f6fe lcl: edit: don't call OnEditingDone if ReadOnly
git-svn-id: trunk@56338 -
2017-11-08 17:40:24 +00:00
juha
b5b61d1a93 LCL: Prevent TCustomEdit.OnChange firing extra time when CharCase is ecLowerCase or ecUpperCase. Issue #32630, patch from accorp.
git-svn-id: trunk@56288 -
2017-11-05 21:48:13 +00:00
bart
c5637ad72a Fix firing an OnChange and setting Modified when setting Text inside OnChange and new Text = old Text. Issue #0032602.
git-svn-id: trunk@56181 -
2017-10-25 09:26:50 +00:00
ondrej
bdb91bdc6d lcl: edit: force show texthint in InitializeWnd. issue #32053
git-svn-id: trunk@55716 -
2017-08-20 12:17:57 +00:00
ondrej
380e645438 LCL: remove deprecated methods and properties (that were tagged to be removed in 1.9)
git-svn-id: trunk@55713 -
2017-08-20 10:25:04 +00:00
ondrej
c68b93c58e lcl: combo box: add new styles csOwnerDrawEditableFixed and csOwnerDrawEditableVariable as replacement for the old ReadOnly property
git-svn-id: trunk@55245 -
2017-06-05 19:27:43 +00:00
ondrej
9a9e336851 LCL: combo box: deprecate ReadOnly property
git-svn-id: trunk@55243 -
2017-06-05 19:07:31 +00:00
ondrej
48dbf5c56d LCL: listbox: fix default value for Options
git-svn-id: trunk@55126 -
2017-05-30 14:54:05 +00:00
juha
d58a9c4bd9 LCL: Prevent Up/Down keys change focus on ListBox. Issue #30558, patch from Stefan Kopf.
git-svn-id: trunk@54592 -
2017-04-09 14:10:01 +00:00
juha
760d03b2bb LCL: Fix TCustomLabel.CalcFittingFontHeight. Issue #31538, patch from Serge Anvarov.
git-svn-id: trunk@54560 -
2017-04-07 16:59:49 +00:00
ondrej
69adfaad00 lcl: listbox: add Options property + add option to enable/disable focus rect drawing. Issue #30532
git-svn-id: trunk@54442 -
2017-03-18 09:40:31 +00:00
ondrej
fb53b10290 LCL: combo box: High-DPI. Issue #31504
git-svn-id: trunk@54369 -
2017-03-08 15:54:45 +00:00
ondrej
48e816a02f LCL: edit: use messages for emulated text hint (messages are also sent when parent form gets/loses focus).
git-svn-id: trunk@54264 -
2017-02-24 15:35:57 +00:00
ondrej
592b495a47 LCL: HighDPI: use relative font scaling, not the absolute PPI (fix for r54210 #eb28e06e83). Issue #31276
git-svn-id: trunk@54211 -
2017-02-20 15:04:02 +00:00
ondrej
eb28e06e83 LCL: HighDPI: fix font scaling. Issue #31276
git-svn-id: trunk@54210 -
2017-02-20 13:59:36 +00:00
bart
b83fd2e5a2 TStaticText: publish properties Enabled, ParentShowHint and PopupMenu. Issues #0031313, #0031315 and #0031333.
git-svn-id: trunk@54071 -
2017-02-02 11:52:30 +00:00
michl
2f58813eed LCL: TComboBox: Make keys Delphi compatible with AutoDropDown = True. Issue #31331
git-svn-id: trunk@54056 -
2017-02-01 19:16:06 +00:00
juha
b2658d37bc LCL: Temporary fix for focus jumping on Arrow keys between controls. Will be moved to WS code. Issue #22191, patch from AlexeyT.
git-svn-id: trunk@53933 -
2017-01-12 15:44:56 +00:00
michl
18ed0a8978 LCL: TLabel, TPanel: draw themed grayed caption if disabled
git-svn-id: trunk@53914 -
2017-01-10 16:14:08 +00:00
ondrej
5f5df812af LCL, win32: TMemo: remove Lines.BeginUpdate/EndUpdate for win32 for Delphi compatibility
git-svn-id: trunk@53888 -
2017-01-06 11:03:11 +00:00
juha
73aa9aa4bb Order uses sections again to see dependencies better.
git-svn-id: trunk@53738 -
2016-12-20 16:26:44 +00:00
ondrej
e7b8a7cf27 lcl: highDPI: rename AScaleFonts parameter to AScale0Fonts and change its behavior. Issue #31083
git-svn-id: trunk@53594 -
2016-12-07 22:22:50 +00:00
ondrej
0296fdc7ae lcl: implement DoAutoAdjustLayout for these controls: TCustomListView, TCustomGrid, TCustomListBox. Issue #14688, patch by regs
git-svn-id: trunk@53574 -
2016-12-06 14:28:37 +00:00
ondrej
58c2446357 lcl: highDPI: handle right and bottom anchored controls in AutoAdjustLayout.
git-svn-id: trunk@53555 -
2016-12-03 23:07:10 +00:00
ondrej
adf87c511a lcl: merge ShouldAutoAdjust* into one method. Fix Width and Height adjustment in relation to Align.
git-svn-id: trunk@53538 -
2016-12-03 06:52:15 +00:00
juha
ea8843fd24 LCL: Ignore AutoSize in ShouldAutoAdjustWidthAndHeight for TEdit and TCombobox. Helps with DPI issues. Issue #30995, patch from AlexeyT.
git-svn-id: trunk@53486 -
2016-11-30 15:07:13 +00:00
ondrej
7ad916287c LCL: customedit: rewrite TextHint emulation, use WinAPI if available.
git-svn-id: trunk@53365 -
2016-11-14 14:19:14 +00:00
bart
7d3b4320c2 Deprecate TCustomEdit's TextHintFontColor and TextHintFontStyle properties and reduce their visibility to Public.
git-svn-id: trunk@53304 -
2016-11-07 11:25:30 +00:00
blikblum
1c88d48964 lcl: in TCustomEdit, replaces Text property check for CanShowTextHint before showing text hint. Move the logic to hide the text hint from RealSetText to TextChanged
git-svn-id: trunk@53296 -
2016-11-04 11:58:36 +00:00
blikblum
d99fe899e7 lcl: use TMemo.Lines.Count to check if TextHint can be show. Part of 30851. Based on tip from AlexeyT
git-svn-id: trunk@53293 -
2016-11-04 11:32:11 +00:00
juha
cdd2334167 LCL: Make the initial height of ToggleBox match with Button. Issue #30536, patch from Alexey Torgashin.
git-svn-id: trunk@52961 -
2016-09-13 12:42:03 +00:00
juha
06b8397c33 LCL: Fix spelling in comment.
git-svn-id: trunk@52605 -
2016-07-03 12:35:55 +00:00
juha
8ed5c08f14 LCL: Implement TCustomListBox.DeleteSelected. Issue #29904, patch from meteu.
git-svn-id: trunk@52068 -
2016-03-27 09:52:11 +00:00
ondrej
b06baa0a9a lcl: edit: make GetTextHint/SetTextHint virtual to be able to change TextHint behavior.
git-svn-id: trunk@51932 -
2016-03-14 07:29:21 +00:00
bart
8e8380449e LCL: Don't use PassWordChar when showing TextHint. Patch by riderkick. Issue #0029748.
git-svn-id: trunk@51742 -
2016-02-28 09:52:14 +00:00
juha
6bb18f6fbd LCL: Implement TCustomMemo.ScrollBy. Refactor widgetset ScrollBy from ScrollingWinControl to WinControl. Solves issue #29067.
git-svn-id: trunk@50523 -
2015-11-29 18:45:53 +00:00
juha
8c4e943410 LCL: Isolate setting the control's position from TControlScrollBar.SetPosition. A half-baked attempt to fix #29067.
git-svn-id: trunk@50479 -
2015-11-23 14:15:37 +00:00
bart
bfa315459c LCL: Publish TRadioButton.Alignment (Issue #0028853).
git-svn-id: trunk@50061 -
2015-10-14 21:49:11 +00:00
bart
0d656c63ff LCL: Make thetype of TextHint TTranslateString instead of String (part of issue #0028129).
git-svn-id: trunk@49285 -
2015-06-07 09:46:32 +00:00
bart
a992cc7d34 LCL: Start implementing TCustomEdit.TextHint support. Issue #0021307.
git-svn-id: trunk@48931 -
2015-05-05 14:18:22 +00:00
bart
483c6ba2cc LCL: Publish TToggleBox.Align. Issue #0027785.
git-svn-id: trunk@48628 -
2015-04-04 21:54:50 +00:00
juha
abf9a845da Deprecate wrappers for LazUTF8 functions in LCLProc.
git-svn-id: trunk@47604 -
2015-02-06 18:25:31 +00:00
bart
77aeb483c6 LCL: Implement TCustomCheckbox.Alignment (Windows only), partly resolves issue #0012343.
git-svn-id: trunk@46963 -
2014-11-22 14:38:26 +00:00
juha
6b94576488 LCL: Publish events OnMouseWheel, OnMouseWheelDown and OnMouseWheelUp for more controls. Issue #26781, patch from Sandro Cumerlato.
git-svn-id: trunk@46336 -
2014-09-26 15:26:05 +00:00
juha
d27da074e8 LCL: Publish TLabel events OnMouseWheel, OnMouseWheelDown and OnMouseWheelUp. Issue #26781, patch from Sandro Cumerlato.
git-svn-id: trunk@46330 -
2014-09-25 20:40:38 +00:00
zeljko
cab06a0777 LCL: TCustomMemo should not trigger OnEditingDone when return is pressed and WantReturns=True.Patch by wp. issue #26769
git-svn-id: trunk@46320 -
2014-09-25 06:19:05 +00:00
bart
08e38d3746 TCustomEdit: Dont set Modified to True in TextChanged when text is set by code. (Issue #0025666)
git-svn-id: trunk@45617 -
2014-06-22 16:38:22 +00:00
bart
9cace444de TCustomComboBox: remove redundant KeyPress method. All this is already done in Utf8KeyPress.
git-svn-id: trunk@44886 -
2014-05-02 12:58:31 +00:00
juha
e5758e1aea LCL: make TCustomButton.Click public. Issue #25870.
git-svn-id: trunk@44451 -
2014-03-16 22:45:52 +00:00
bart
409cedc9c4 LCL: Implement TCustomEdit.NumbersOnly property.
Currently only effective on Windows.

git-svn-id: trunk@43678 -
2014-01-09 13:36:11 +00:00
mattias
fd40afd5e6 LCL: clean up
git-svn-id: trunk@42696 -
2013-09-09 09:04:39 +00:00
paul
2b9bef5afa lcl: move TWSControl.DragStart to TWSCustomListBox.DragStart because of limitation of TWS classes
git-svn-id: trunk@42631 -
2013-09-06 07:29:10 +00:00
paul
b3ce447a57 lcl: don't insert Enter key to TMemo if WantReturns is set to False
git-svn-id: trunk@41673 -
2013-06-11 02:39:15 +00:00
paul
915f42b9b9 lcl: some work on TCustomMemo.WantReturns (part of issue #0022732). The memo already calls default action but still not eat a key
git-svn-id: trunk@41659 -
2013-06-10 09:31:30 +00:00
paul
491eae637b lcl: use TButtonActionLink for TButtonControl (issue #0024435)
git-svn-id: trunk@41648 -
2013-06-10 06:44:07 +00:00
juha
7b162087fd Improve license headers in sources, part 1. Refer to details about license, not copyright. Remove jargon about lack of warranty, it is covered in license already.
git-svn-id: trunk@41387 -
2013-05-24 18:30:06 +00:00
mattias
23762136b6 LCL: published TListBox.ItemIndex, TCheckListBox.ItemIndex
git-svn-id: trunk@39779 -
2013-01-06 12:53:48 +00:00
zeljko
a6468d6f2e LCL: better solution for TToggleBox color, ParentColor is by default false and not published so it behaves same as TButton. issue #22887
git-svn-id: trunk@38698 -
2012-09-16 19:32:56 +00:00
zeljko
86d412a962 LCL: Published TToggleBox.ParentColor.Part of issue #22887
git-svn-id: trunk@38697 -
2012-09-16 19:23:49 +00:00
juha
2d2bc29026 LCL: Publish BorderStyle and CharCase for TDBComboBox. Issue #22295, patch from LacaK2
git-svn-id: trunk@37787 -
2012-06-26 18:24:04 +00:00
paul
68d65a2b2c lcl: don't allow LCL to handle arrow keys of TCustomEdit descendants (fixes bug #0022191), handle WantTabs and WantReturn of TCustomMemo inside CM_WANTSPECIALKEY handler
git-svn-id: trunk@37689 -
2012-06-19 01:17:25 +00:00
paul
f8dcbb669b lcl: don't block special keys in common TControl handler - this is up to descendants.
SynEdit: use shorter inherited call since TControl does not have the handler now

git-svn-id: trunk@37150 -
2012-05-04 00:55:22 +00:00
paul
b00855a592 lcl: don't update Default, Cancel during UpdateDefaultCancel (issue #0021739)
git-svn-id: trunk@36811 -
2012-04-16 07:11:48 +00:00
blikblum
03e0cafaf9 lcl: remove TCustomListBox.Loaded. ItemIndex is initialized in InitializeWnd
git-svn-id: trunk@36756 -
2012-04-13 20:31:58 +00:00
blikblum
ce12dfae54 lcl: move interface initialization of TCustomEdit from CreateWnd to InitializeWnd. Consistent with other controls and allows interfaces to check is handle is being created
git-svn-id: trunk@36754 -
2012-04-13 17:29:27 +00:00
mattias
1b0d5b1061 LCL: fixed comment lcl/stdctrls.pp
git-svn-id: trunk@36323 -
2012-03-25 17:43:49 +00:00
zeljko
b89d4ff137 LCL: removed empty .inc files: edit.inc,memo.inc and timer.inc
git-svn-id: trunk@36269 -
2012-03-23 11:28:03 +00:00
zeljko
3e88452bc4 LCL: fixed visibility of overrided KeyUpAfterInterface in TCustomComboBox.
git-svn-id: trunk@35216 -
2012-02-07 11:40:41 +00:00
juha
9adcf1b232 LCL: Register some new Delphi properties to be skipped by form loader. Issue #20273
git-svn-id: trunk@34800 -
2012-01-19 18:26:48 +00:00
juha
e54b3afbc7 LCL: formatting
git-svn-id: trunk@33904 -
2011-12-02 08:40:30 +00:00
juha
bf07765fd5 LCL: In TComboBox, after pressing Enter call EditingDone. Issue #20782
git-svn-id: trunk@33889 -
2011-12-01 15:04:28 +00:00
sekelsenmat
5774ecec7d customdrawn: Implements TButton clicking, implements InvalidateRect in X11
git-svn-id: trunk@33870 -
2011-11-30 14:05:01 +00:00
juha
260ece9f1b LCL: Make TCustomComboBox.AddItem virtual. Issue #20033
git-svn-id: trunk@33100 -
2011-10-26 16:53:48 +00:00
zeljko
1ad62b1229 LCL: TToggleBox published properties: BidiMode, Contstraints, Color, Font, ParentBidiMode, ParentFont.
git-svn-id: trunk@31331 -
2011-06-22 12:22:58 +00:00
paul
8a3c07043c lcl: add TCustomListBox.AddItem() method
git-svn-id: trunk@30968 -
2011-05-30 06:31:01 +00:00
paul
aecfd2f738 lcl: implement TListBox.ScrollWidth:
- win32, wince: set/get scrollwidth using LB_SETHORIZONTALEXTENT/LB_GETHORIZONTALEXTENT (issue #0018912)
  - qt, gtk2: don't show listbox horizontal scrollbar by default. show it only when scrollwidth > content area

git-svn-id: trunk@30138 -
2011-04-02 17:30:44 +00:00
paul
dfc3dc15df lcl, win32: move ListBox, CheckListBox styles into CreateParams of LCL classes
git-svn-id: trunk@29914 -
2011-03-19 16:40:11 +00:00
juha
4e95f6a390 LCL: Show menu shortcuts also when they are sequencial keys combinations (like Ctrl+Q, B)
git-svn-id: trunk@29853 -
2011-03-15 14:05:55 +00:00
paul
fa4ada16f4 lcl: add lcl_defines include file which can be used for common lcl defines (like UseCLDefault)
git-svn-id: trunk@28343 -
2010-11-19 10:46:12 +00:00
paul
f09ed2fb3c lcl: add TStaticText.Transparent property for Delphi compatibility
win32: implement TStaticText.Transparent same way as groupbox transparency

git-svn-id: trunk@28151 -
2010-11-08 09:07:40 +00:00
paul
d35e85a332 win32: restore wm_erasebkgnd default handler after clDefault experiments
lcl: more proper implementation for clDefault, add UseCLDefault define to compile with clDefault as default color for controls

git-svn-id: trunk@28140 -
2010-11-08 02:27:02 +00:00
blikblum
bb7a0731ed lcl: uncheck radiobutton siblings when handle not allocated, bug #17281
git-svn-id: trunk@27208 -
2010-08-27 01:48:32 +00:00
blikblum
4a9091c3a2 lcl: don't publish TRadioButton State and AllowGrayed properties: Delphi compatible.
separate TCustomCheckBox/TCheckBox constructors to avoid double setting of AutoSize/TabStop in TToggleBox/TRadioButton

git-svn-id: trunk@27055 -
2010-08-10 20:12:40 +00:00
blikblum
1aa796b724 lcl: remove workarounds to recursive LM_CHANGE calls, since it was fixed fixed in rev 27050 #8d7d250608 and 27051:
- don't toggle TRadioButton siblings state since this is done by widgetset;  
 - remove FLastCheckedOnChange; 
 - call OnChange only if State was really changed by widgetset 
 - Dont set Checked property in Click
Part of 0017139 and 0017104

git-svn-id: trunk@27053 -
2010-08-10 17:02:07 +00:00
paul
d5c10dfaa2 lcl: don't trigger the onClick event for the unchecked radio buttons (bug #0014989)
git-svn-id: trunk@26761 -
2010-07-21 08:03:19 +00:00
mattias
22a192ff6e LCL: implemented preferredsize for TScrollBar, bug #16855
git-svn-id: trunk@26635 -
2010-07-14 07:37:30 +00:00
mattias
f94941a0de LCL: TEdit: handling VK_RETURN after interface, bug #16430
git-svn-id: trunk@26592 -
2010-07-11 09:23:57 +00:00
zeljko
2b886c466e LCL: TCustomEdit: when Text property is assigned Modified should be setted up to False according to embarcadero docs.
git-svn-id: trunk@26370 -
2010-06-30 21:09:46 +00:00
paul
9094e47382 lcl: move combobox style from win32 to LCL createparams, override unsupported styles in wince
git-svn-id: trunk@25793 -
2010-05-31 06:22:37 +00:00
paul
ce91a6a9f0 lcl,win32,wince: move edit control flags to createparams
git-svn-id: trunk@25476 -
2010-05-17 07:34:07 +00:00
paul
b44f635f4a win32: remove isGroupBox flag
git-svn-id: trunk@25474 -
2010-05-17 01:57:14 +00:00
paul
7686d846ed lcl, win32, wince: move button controls flags into CreateParams methods
git-svn-id: trunk@25473 -
2010-05-17 01:10:18 +00:00
paul
8b1b85e16d lcl: move button flags to TCustomButton.CreateParams
git-svn-id: trunk@25398 -
2010-05-14 09:16:51 +00:00