Difference between revisions of "TDateLabel"

From Free Pascal wiki
Jump to navigationJump to search
m
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{TDateLabel}}
 +
 
=== About ===
 
=== About ===
 
''TDateLabel'' is a descendant of TLabel. It overrides the Caption property and makes it read only. It also exposes two new properties: DateTime and Format.
 
''TDateLabel'' is a descendant of TLabel. It overrides the Caption property and makes it read only. It also exposes two new properties: DateTime and Format.
Line 7: Line 9:
  
 
* Format allows you to define the format string to be used by the caption.
 
* Format allows you to define the format string to be used by the caption.
 +
 +
The purpose/advantage of this control is to allow the developer to display a formated date/time elegantly on a form while the control still retains the value in a true TDateTime data type. This allows the developer to use all of the standard date functions (date math functions) found in the DateUtil unit.
 +
 +
This control is useful for implementing custom calendar interfaces for day planner projects.
  
 
The download contains the component, an installation package and a demo application, that illustrates the features of the component along with some instrumentation for evaluating the chart on a given system.
 
The download contains the component, an installation package and a demo application, that illustrates the features of the component along with some instrumentation for evaluating the chart on a given system.
Line 12: Line 18:
 
=== Screenshot ===
 
=== Screenshot ===
  
Here is an exemple of ''TDateLabel''.
+
Here is an exemple of ''TDateLabel''. This example shows four TDateLabels, all containing the same DateTime value, presenting the value with different formatting. The border has been turned on to give perspective to the text alignment.
  
 
[[Image:TDateLabel.png]]
 
[[Image:TDateLabel.png]]
  
 
=== Author ===
 
=== Author ===
 
+
Extreme Programmers, LLC
  
 
=== License ===
 
=== License ===
Line 23: Line 29:
  
 
=== Download ===
 
=== Download ===
The latest stable release can be found on ''link to the lazarus-ccr sf download location''.
+
The latest stable release can be found on [http://sourceforge.net/project/showfiles.php?group_id=92177&package_id=328117 SourceForge Lazarus-CCR].
  
 
=== Change Log ===
 
=== Change Log ===
* Version 1.0 ''date''
+
* Version 1.0 ''22 June 2009''
  
 
=== Dependencies / System Requirements ===
 
=== Dependencies / System Requirements ===
 
* None
 
* None
  
Status: ''Stable / Alpha''
+
Status: ''Stable''
 
 
Issues:
 
 
 
 
 
=== Installation ===
 
* step 1
 
* step 2
 
 
 
=== The ''My Component'' Example Application ===
 
  
'''Installation'''
+
Issues: None
* Open TestMyComponent.lpi
 
* compile
 
* run
 

Latest revision as of 09:53, 27 June 2009

English (en) español (es) français (fr)

About

TDateLabel is a descendant of TLabel. It overrides the Caption property and makes it read only. It also exposes two new properties: DateTime and Format.

Its main caracteristics are :

  • DateTime allows you to assign a TDateTime value to the control.
  • Format allows you to define the format string to be used by the caption.

The purpose/advantage of this control is to allow the developer to display a formated date/time elegantly on a form while the control still retains the value in a true TDateTime data type. This allows the developer to use all of the standard date functions (date math functions) found in the DateUtil unit.

This control is useful for implementing custom calendar interfaces for day planner projects.

The download contains the component, an installation package and a demo application, that illustrates the features of the component along with some instrumentation for evaluating the chart on a given system.

Screenshot

Here is an exemple of TDateLabel. This example shows four TDateLabels, all containing the same DateTime value, presenting the value with different formatting. The border has been turned on to give perspective to the text alignment.

TDateLabel.png

Author

Extreme Programmers, LLC

License

modified LGPL (same as the FPC RTL and the Lazarus LCL). You can contact the author if the modified LGPL doesn't work with your project licensing.

Download

The latest stable release can be found on SourceForge Lazarus-CCR.

Change Log

  • Version 1.0 22 June 2009

Dependencies / System Requirements

  • None

Status: Stable

Issues: None