TGDateEdit: Difference between revisions

From Gestinux Wiki
Jump to navigation Jump to search
Tintinux (talk | contribs)
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
A readonly property returns the actual date.
A readonly property returns the actual date.


This should be extended in the future for weeks, months, years...  and the symbol might be translated.
This should be extended in the future for weeks, months, years...  


To enter '''two''' dates, that is a period, there is another, more powerful component [[TGPeriodEdit]].
To enter '''two''' dates, that is a period, there is another, more powerful component [[TGPeriodEdit]].


In version 1.5 a new component [[TGDateTimeEdit]] was added to enter a date and a time.
In version 1.5 a new component [[TGDateTimeEdit]] was added to enter a date and a time.
In version 1.6 the symbolic texts are language dependent : example '''DM''' for '''D'''ébut de '''M'''ois in French, instead of '''BM'''.


Other [[Gestinux_util#Visual_components|data entry components]]
Other [[Gestinux_util#Visual_components|data entry components]]

Latest revision as of 17:17, 27 May 2026

This is like a TGEditButton, but the button shows a calendar and a date can be selected.

The date can be entered in the TEdit, and some basic checks are performed.

In addition, some symbolic texts can be entered.

  • BM for begin of current month
  • EM for End of current month

A number can be subtracted, so one can enter BM-1 for the beginning of previous month. A readonly property returns the actual date.

This should be extended in the future for weeks, months, years...

To enter two dates, that is a period, there is another, more powerful component TGPeriodEdit.

In version 1.5 a new component TGDateTimeEdit was added to enter a date and a time.

In version 1.6 the symbolic texts are language dependent : example DM for Début de Mois in French, instead of BM.

Other data entry components