Commit Graph

108 Commits

Author SHA1 Message Date
juha
6810c626df LazUtils: Change "Character" to "Codepoint" in LazUTF8 function names to be more accurate and to avoid confusion.
git-svn-id: trunk@56692 -
2017-12-11 19:44:22 +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
bart
298e1155ad MaskEdit: fix pasting text with spaces when maskchar is cMask_AlphaNum, cMask_Letter and cMask_Number or cMask_NumberPlusMin. Issue #0030481.
git-svn-id: trunk@52839 -
2016-08-19 21:07:42 +00:00
bart
5bf9ffa801 MaskEdit: check if control can be focussed before focussing when validation fails in DoExit. Issue #0030482. Patch by Lutz Mändle.
git-svn-id: trunk@52837 -
2016-08-19 20:20:43 +00:00
bart
16b35167c9 MaskEdit: do replace SpaceChar with #32 in FormatMaskText.
git-svn-id: trunk@52206 -
2016-04-17 12:28:03 +00:00
bart
9a6c33c697 MaskEdit: don't remove the mask in FormatMaskText regardless of the "MaskSave" value in the specified EditMask.
git-svn-id: trunk@52204 -
2016-04-16 11:48:49 +00:00
bart
55e1744d9c LCL: in TMaskEdit.RestoreMask only clear the control if it is actually masked. Issue #0028477.
git-svn-id: trunk@49595 -
2015-08-05 11:22:25 +00:00
zeljko
3768a9fd84 LCL: fixed TMaskEdit left arrow does not move cursor. issue #28385
git-svn-id: trunk@49512 -
2015-07-09 08:25:11 +00:00
bart
07301de359 MaskEdit: Fix loading text. Issue #0028328.
git-svn-id: trunk@49368 -
2015-06-19 16:49:10 +00:00
zeljko
c14ef804f7 LCL: TMaskEdit, published Alignment property.
git-svn-id: trunk@49335 -
2015-06-15 13:49:19 +00:00
zeljko
41459427dc LCL: TCustomMaskEdit, do not set selection if control isn't focused. issue #17942
git-svn-id: trunk@49301 -
2015-06-09 08:22:26 +00:00
bart
a9060dc0b7 MaskEdit: fix FormatMaskText.
git-svn-id: trunk@49197 -
2015-05-28 17:27:53 +00:00
bart
6f07e65533 MaskEdit: implement FormatMaskText function (Issue #0028167).
git-svn-id: trunk@49167 -
2015-05-25 15:24:20 +00:00
bart
b81e99f438 MaskEdit: fix RestoreMask.
git-svn-id: trunk@49069 -
2015-05-17 14:27:37 +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
70ff3f35b9 MaskEdit: don't call GetEditText as a shorcut to inherited RealGetText, because it may fail if GetEditText is overridden.
git-svn-id: trunk@46644 -
2014-10-22 22:38:41 +00:00
bart
6635435173 MaskEdit: don't call GetEditText in RealGetText, fixes issue #0026924.
git-svn-id: trunk@46643 -
2014-10-22 22:21:47 +00:00
bart
89bce7fb34 MaskEdit: properly override RealGetText and RealSetText to handle Text property. Fixes issue #0026865.
git-svn-id: trunk@46593 -
2014-10-18 13:09:16 +00:00
juha
51ab663b7f LCL: Publish events OnMouseWheel, OnMouseWheelDown and OnMouseWheelUp for yet more controls. Issue #26781, patch from Sandro Cumerlato.
git-svn-id: trunk@46338 -
2014-09-26 21:40:47 +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
d5e1ced666 MaskEdit: fix possible crash in PasteFromClipBoard.
git-svn-id: trunk@43985 -
2014-02-09 16:40:44 +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
bart
029f4903de MaskEdit: avoid calling OnChange when setting initial values for Mask and Text.
Resolves issue #0019029.
(Code completion also made some unrelated changes synchronizing lower/uppercase usage in declarations)

git-svn-id: trunk@43350 -
2013-11-01 23:41:58 +00:00
bart
7ae07addc0 MaskEdit: make SetSel() and GetSel() protected.
Reason: Delphi compatibility (Issue #0024970).

git-svn-id: trunk@42665 -
2013-09-07 16:25:41 +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
bart
80d6f392bc MaskEdit: respect AutoSelect if control is masked.
Fixes issue #0024311.

git-svn-id: trunk@40900 -
2013-04-27 12:43:44 +00:00
bart
dd4612a337 MaskEdit: fix program crash in OnExit of DBEdit, after TDBEdit.UpdateData calls ValidateEdit (issue #0024134).
git-svn-id: trunk@40660 -
2013-03-28 17:52:04 +00:00
bart
44caf00ceb MaskEdit: when user presses Escape, don't "eat" the key if there is nothing to reset.
(Delphi compatibility). Partially resolves issue #0023936.

git-svn-id: trunk@40379 -
2013-02-24 00:09:38 +00:00
bart
a1892d81c9 Maskedit.pp: Implement support for Utf8.
(Old MaskEdit only supported lower ASCII characters)
It's a major rewrite.

git-svn-id: trunk@39175 -
2012-10-28 12:43:01 +00:00
bart
a6a22c7551 EditMask.pp: provide SplitEditMask() procedure.
This can be also be used by property editor for Maskedit, thus avoiding duplicate code.

git-svn-id: trunk@39149 -
2012-10-23 11:57:44 +00:00
mattias
729a931a1b lcl: typo
git-svn-id: trunk@37684 -
2012-06-18 10:55:19 +00:00
juha
afdef03054 LCL: add DebugLns to TCustomControlFilterEdit DoEnter and DoExit. They are not always called properly.
git-svn-id: trunk@37350 -
2012-05-19 13:19:11 +00:00
paul
6a782e1d1b lcl: use TCaption in MaskEdit for fields and methods related to Text property
git-svn-id: trunk@35363 -
2012-02-14 09:29:23 +00:00
sekelsenmat
1130c0fb47 Patch from bug #20121, also added ssModifier constant in the unit Controls for global usage, but use it with care not to do something like [ssModifier, ssMeta] which wont compile in Macs
git-svn-id: trunk@35131 -
2012-02-04 17:39:11 +00:00
blikblum
dbccbd3689 lcl: change TCustomMaskEdit.EditMask to protected. Issue #20790
git-svn-id: trunk@33899 -
2011-12-01 21:36:28 +00:00
blikblum
2f38072922 lcl: fix cursor placement of MaskEdit. Patch by Bart. Issue #20593
git-svn-id: trunk@33210 -
2011-11-01 23:05:33 +00:00
blikblum
9539b6f4eb lcl: update behavior of backspace in maskedit. Issue #20591
git-svn-id: trunk@33159 -
2011-10-29 23:03:39 +00:00
maxim
8a47d1cb94 LCL: fixed comments in maskedit.pp, patch from Bart Broersma, bug #20129
git-svn-id: trunk@32159 -
2011-09-02 20:28:49 +00:00
maxim
0b7adfb3a5 LCL: improved MaskEdit localization (one ToDo item less). Thanks Alexey Lagunov for the hint.
git-svn-id: trunk@32042 -
2011-08-24 21:03:41 +00:00
mattias
76686be5bf LCL: TCustomMaskEdit.Text string to TTranslateString
git-svn-id: trunk@29200 -
2011-01-25 18:36:13 +00:00
paul
57daf59d6e lcl: use DefaultFormatSettings to prevent deprecated message generation
git-svn-id: trunk@28588 -
2010-12-02 07:21:19 +00:00
blikblum
2639c13652 lcl: publish TMaskEdit.OnEditingDone
git-svn-id: trunk@25268 -
2010-05-09 02:25:44 +00:00
blikblum
bca0033c28 lcl: publish TMaskEdit.Align (inadvertently removed in previous commit)
git-svn-id: trunk@23873 -
2010-03-08 01:26:47 +00:00
blikblum
b4b050bffb lcl/maskedit: Add DisableMask and RestoreMask so it's possible to avoid the mask validation as in Delphi but more safe
Handle validation fail. By Bart Broersma. Issue #15459.

git-svn-id: trunk@23853 -
2010-03-07 00:07:32 +00:00
paul
f8a182a252 lcl: publish TMaskEdit.Align
git-svn-id: trunk@22711 -
2009-11-23 03:18:08 +00:00
jesus
e45d50c8c4 LCL, TMaskedit fixes, from Bart Broersma, issue #14895
git-svn-id: trunk@22550 -
2009-11-12 21:27:08 +00:00
vincents
377d707a1d LCL: fixed irrecoverable state of DBEdit control because of setting TMaskEdit.EditText from Bart (issue #14832)
git-svn-id: trunk@22323 -
2009-10-28 16:00:48 +00:00
paul
324ab49d7b lcl: masedit patch from Bart Broersma (issue #0014776)
git-svn-id: trunk@22214 -
2009-10-18 06:25:11 +00:00
paul
5a0f95b483 lcl: MaskEdit: several minor fixes (patch by Bart Broersma, issue #0014725)
git-svn-id: trunk@22053 -
2009-10-06 02:29:08 +00:00