Commit Graph

78 Commits

Author SHA1 Message Date
zoran
597679399a DateTimePicker - Avoid new warning in FPC trunk -- Case statement does not handle all possible cases -- add otherwise to handle all cases
git-svn-id: trunk@65309 -
2021-06-25 22:06:36 +00:00
zoran
b8d1a71632 DateTimePicker - fix syntax error in 65272
git-svn-id: trunk@65273 -
2021-06-18 13:43:05 +00:00
zoran
ceded1ef60 DateTimePicker - added null handling in IncreaseXXX/DecreaseXXX methods (they were called safely inside unit, but declared protected, so...)
git-svn-id: trunk@65272 -
2021-06-18 13:35:20 +00:00
zoran
48956875e5 DateTimePicker - improve month text length for null date + some code refactoring
git-svn-id: trunk@65257 -
2021-06-17 15:10:31 +00:00
juha
d9c207b72b Corrections for spelling errors in LCL and Components. Issue #38986, patch by Don Siders.
git-svn-id: trunk@65216 -
2021-06-11 07:11:44 +00:00
zoran
100a77699f DateTimePicker - remove a unit from uses section
git-svn-id: trunk@65114 -
2021-05-14 06:21:20 +00:00
mattias
0e564b2d8b datetimectrls: less hints
git-svn-id: trunk@64684 -
2021-02-28 08:52:07 +00:00
zoran
f290c78554 DateTimePicker - add OnShowHint event
git-svn-id: trunk@64651 -
2021-02-22 12:15:58 +00:00
juha
b53ad7ceed Components: Reduce calls to UpperCase() and LowerCase(). Improves performance.
git-svn-id: trunk@64506 -
2021-02-08 19:09:30 +00:00
zoran
6b53432dd4 DateTimePicker: add InMonthView function to TCalendarControlWrapper - adds layer of abstraction to using of calendar "view"
git-svn-id: trunk@64325 -
2021-01-04 11:57:45 +00:00
zoran
7e68563f75 DateTimePicker: add Alignment property
git-svn-id: trunk@64155 -
2020-11-22 22:33:59 +00:00
zoran
c0a1785e24 DateTimePicker: small code refactoring
git-svn-id: trunk@63925 -
2020-09-26 20:45:58 +00:00
zoran
959c6b9cd3 DateTimePicker: Add comments which describe options
git-svn-id: trunk@63867 -
2020-09-05 08:29:10 +00:00
zoran
1f21de2207 DateTimePicker: code cleanup
git-svn-id: trunk@63859 -
2020-09-02 22:11:36 +00:00
zoran
c6843099e5 DateTimePicker - refactoring
git-svn-id: trunk@63858 -
2020-09-01 22:14:39 +00:00
zoran
a04423bc0d DateTimePicker - Surround the hack for setting TextForNullDate to NULL with ifdef fpc_fullversion < 030200, as nodefault now works with string properties
git-svn-id: trunk@63845 -
2020-08-29 16:43:52 +00:00
zoran
c5d98711e5 DateTimePicker - code cleanup
git-svn-id: trunk@63657 -
2020-07-26 12:47:17 +00:00
zoran
2a396aa137 DateTimePicker: Prevent calling change when user start editing and date was null and not yet updated to valid date
git-svn-id: trunk@63264 -
2020-06-01 22:05:39 +00:00
zoran
6e4dbe9fd0 DateTimePicker: change declaration of NullDate - Math.MaxDouble declaration changed in fpc 3.2, and in some corner cases can make problems (mantis #37087). So, we'll just keep using 1.7e+308 (which was Math.MaxDouble in fpc 3.0.4).
git-svn-id: trunk@63250 -
2020-05-30 15:12:22 +00:00
zoran
0dc05db67d DateTimePicker: Change popup mode of CalendarForm from pmAuto to pmExplicit (makes difference when ParentForm of DateTimePicker is TCustomForm, not TForm)
git-svn-id: trunk@62623 -
2020-02-11 10:33:51 +00:00
wp
d32b16b312 DateTimePicker: Make widths of ArrowButton and UpDown highDPI-aware. Issue #35814.
git-svn-id: trunk@61558 -
2019-07-10 20:50:57 +00:00
zoran
66f30ba367 DateTimePicker: add option dtpoResetSelection
git-svn-id: trunk@60614 -
2019-03-07 11:31:22 +00:00
zoran
fc99f0b187 DateTimePicker - improve readability (spaces aronund binary operators)
git-svn-id: trunk@60247 -
2019-01-30 12:27:47 +00:00
zoran
451ce57a11 DateTimePicker: remove comment referring to no more existing bug (mantis #34752)
git-svn-id: trunk@59906 -
2018-12-24 09:43:13 +00:00
zoran
6a64348cd5 DateTimePicker: a small cleanup
git-svn-id: trunk@59891 -
2018-12-22 09:04:00 +00:00
zoran
8abb8ccdeb DateTimePicker: Key handling behaviour improvment
git-svn-id: trunk@59887 -
2018-12-21 14:11:31 +00:00
zoran
94284ccbe5 DateTimePicker: move key handling from calendar to its container form, so that it works when calendar is not TWinControl
git-svn-id: trunk@59875 -
2018-12-20 07:59:41 +00:00
zoran
bb20acbfb4 DateTimePicker: drop down calendar on alt+down key
git-svn-id: trunk@59874 -
2018-12-20 07:39:13 +00:00
wp
62c4c59fe9 DateTimePicker: Make DropDownCalendarForm protected (see https://forum.lazarus.freepascal.org/index.php/topic,43255.msg302417).
git-svn-id: trunk@59598 -
2018-11-18 23:33:33 +00:00
mattias
44053b1a5c lcl: tdatetimepicker: Checked=true by default, issue #33892
git-svn-id: trunk@58377 -
2018-06-22 14:46:17 +00:00
ondrej
0c5181bf67 Revert r58337 and r58339 #e887c43e0d
git-svn-id: trunk@58346 -
2018-06-19 20:04:57 +00:00
ondrej
f1b3d3f742 LCL: call OnEditingDone (DoEditingDone) only if something changed
git-svn-id: trunk@58337 -
2018-06-19 17:11:31 +00:00
ondrej
ff1d04d947 datetimepicker: draw check box instead of having a real control (fixes focus issues).
git-svn-id: trunk@58282 -
2018-06-15 18:53:44 +00:00
ondrej
c727f965e6 datetimepicker: update date also when handle is not yet allocated. issue #32106
git-svn-id: trunk@55435 -
2017-07-04 06:47:33 +00:00
zoran
b47c467010 DateTimePicker: Add RemoveHandlerOnChange, RemoveHandlerOnCheckBoxChange, override RemoveAllHandlersOfObjects
git-svn-id: trunk@55318 -
2017-06-11 16:02:45 +00:00
zoran
cf2b24196c DateTimePiker: Built-in UpDown control appears flat with dtpoFlatButton option
git-svn-id: trunk@55292 -
2017-06-09 16:38:33 +00:00
zoran
59c1e76968 Fix indentation
git-svn-id: trunk@55279 -
2017-06-09 13:17:17 +00:00
ondrej
7643e26863 components: datetimepicker: change boolean properties EnableWhenUnchecked, AutoCheck, FlatButton to entries in Options.
git-svn-id: trunk@55272 -
2017-06-09 07:04:45 +00:00
ondrej
19843adc12 components: datetimepicker: TextForNullDate type TCaption - for translations
git-svn-id: trunk@55271 -
2017-06-09 06:38:31 +00:00
zoran
18e8d9b915 DateTimePicker - add input checking in SendExternalKey and add SendExternalKeyCode method
git-svn-id: trunk@55268 -
2017-06-08 17:32:58 +00:00
zoran
ee969afadb DateTimePicker - improve smart calling change when Date/Time is set from code
git-svn-id: trunk@55266 -
2017-06-07 15:56:49 +00:00
zoran
ccc63716d3 DateTimePicker - corrected misleading comment
git-svn-id: trunk@55234 -
2017-06-05 12:50:11 +00:00
ondrej
7e3c4d39df DateTimeCtrls: TDateTimePicker: add Options property with dtpoDoChangeOnSetDateTime (not default). Issue #31679
git-svn-id: trunk@55133 -
2017-05-31 16:31:59 +00:00
zoran
c954ed4518 DateTimePicker - improved 54652
git-svn-id: trunk@54653 -
2017-04-20 13:08:55 +00:00
zoran
1ed8c064f8 DateTimePicker - don't call OnChange when undoing changes
git-svn-id: trunk@54652 -
2017-04-20 13:00:35 +00:00
zoran
71e9ef32c4 DateTimePicker - OnChange fires twice - bug #31679
git-svn-id: trunk@54651 -
2017-04-20 12:19:22 +00:00
juha
6774461478 DateTimePicker: Don't fire OnChange event when pressing ESC without changes. Issue #31679, patch from Gabor Boros.
git-svn-id: trunk@54645 -
2017-04-19 12:11:27 +00:00
ondrej
4b2b9d793f datetimectrls: datetimepicker: add OnChange and OnCheckBoxChange method handler lists.
git-svn-id: trunk@54497 -
2017-03-28 19:46:33 +00:00
ondrej
3764df3f2c datetimectrls: datetimepicker: use Self as Sender for OnCheckBoxChange.
Reason: do not expose check box to public methods.

git-svn-id: trunk@54496 -
2017-03-28 19:32:46 +00:00
ondrej
bf733a19c0 components: datetimepicker: always update date on CreateWnd. Issue #31571
git-svn-id: trunk@54495 -
2017-03-28 19:26:06 +00:00