zDateTime Class Reference

DERIVED CLASS FOR DATETIME CONTROLS. More...

#include <Zclass.h>

Inheritance diagram for zDateTime:
zWindow

List of all members.

Public Member Functions

void Format (xstring format)
void Text (LPCTSTR s)
xstring Text (void)
void Clear (void)
void CalBkColor (COLORREF clr)
void CalMonthBkColor (COLORREF clr)
void CalMonthTextColor (COLORREF clr)
void CalTitleBkColor (COLORREF clr)
void CalTitleTextColor (COLORREF clr)
void CalTrailingTextColor (COLORREF clr)
void CalFont (HFONT hFont, bool redraw=__yes)

Friends

class zForm

Detailed Description

DERIVED CLASS FOR DATETIME CONTROLS.

% Provides functionality of a date and time picker control. The date and time picker control (DTP control) provides a simple interface to exchange date and time information with a user. This interface contains fields,each of which displays a part of the date and time information stored in the control. The user can change the information stored in the control by changing the content of the string in a given field. The user can move from field to field using the mouse or the keyboard.


Member Function Documentation

void zDateTime::CalBkColor ( COLORREF  clr  )  [inline]

Sets the background color displayed between months of the month calendar within a date and time picker (DTP) control.

void zDateTime::CalFont ( HFONT  hFont,
bool  redraw = __yes 
) [inline]

Sets the font to be used by the date and time picker (DTP) control's child month calendar control.

void zDateTime::CalMonthBkColor ( COLORREF  clr  )  [inline]

Sets the background color displayed within the month of the month calendar within a date and time picker (DTP) control.

void zDateTime::CalMonthTextColor ( COLORREF  clr  )  [inline]

Sets the color used to display text within a month of the month calendar within a date and time picker (DTP) control.

void zDateTime::CalTitleBkColor ( COLORREF  clr  )  [inline]

Sets the background color displayed in the calendar's title of the month calendar within a date and time picker (DTP) control.

void zDateTime::CalTitleTextColor ( COLORREF  clr  )  [inline]

Sets the color used to display text within the calendar's title of the month calendar within a date and time picker (DTP) control.

void zDateTime::CalTrailingTextColor ( COLORREF  clr  )  [inline]

Sets the color used to display header day and trailing day text. Header and trailing days are the days from the previous and following months that appear on the current month calendar within a date and time picker (DTP) control.

void zDateTime::Clear ( void   ) 

Clears the window's text.

Reimplemented from zWindow.

void zDateTime::Format ( xstring  format  )  [inline]

Sets the display of a date and time picker (DTP) control based on a given format string. Setting this parameter to NULL will reset the control to the default format string for the current style. It is acceptable to include extra characters within the format string to produce a more rich display. Format Strings A DTP format string consists of a series of elements that represent a particular piece of information and define its display format. The elements will be displayed in the order they appear in the format string. Date and time format elements will be replaced by the actual date and time. They are defined by the following groups of characters: Element Description

  • "d" The one- or two-digit day.
  • "dd" The two-digit day. Single-digit day values are preceded by a zero.
  • "ddd" The three-character weekday abbreviation.
  • "dddd" The full weekday name.
  • "h" The one- or two-digit hour in 12-hour format.
  • "hh" The two-digit hour in 12-hour format. Single-digit values are preceded by a zero.
  • "H" The one- or two-digit hour in 24-hour format.
  • "HH" The two-digit hour in 24-hour format. Single-digit values are preceded by a zero.
  • "m" The one- or two-digit minute.
  • "mm" The two-digit minute. Single-digit values are preceded by a zero.
  • "M" The one- or two-digit month number.
  • "MM" The two-digit month number. Single-digit values are preceded by a zero.
  • "MMM" The three-character month abbreviation.
  • "MMMM" The full month name.
  • "t" The one-letter AM/PM abbreviation (that is, AM is displayed as "A").
  • "tt" The two-letter AM/PM abbreviation (that is, AM is displayed as "AM").
  • "yy" The last two digits of the year (that is, 1996 would be displayed as "96").
  • "yyyy" The full year (that is, 1996 would be displayed as "1996"). To make the information more readable, you can add body text to the format string by enclosing it in single quotes. Spaces and punctuation marks do not need to be quoted. Note: Nonformat characters that are not delimited by single quotes will result in unpredictable display by the DTP control. For example, to display the current date with the format "'Today is: 04:22:31 Tuesday Mar 23, 1996", the format string is "'Today is: 'hh':'m':'s dddd MMM dd', 'yyyy". To include a single quote in your body text, use two consecutive single quotes. For example, "'Don''t forget' MMM dd',' yyyy" produces output that looks like: Don't forget Mar 23, 1996. It is not necessary to use quotes with the comma, so "'Don''t forget' MMM dd, yyyy" is also valid, and produces the same output.
xstring zDateTime::Text ( void   )  [inline]

Retrieves the window’s title to the specified text. If the window is a control, the text within the control is retrieived.

Reimplemented from zWindow.

void zDateTime::Text ( LPCTSTR   )  [inline]

Sets the window’s title to the specified text. If the window is a control, the text within the control is set.

Reimplemented from zWindow.


The documentation for this class was generated from the following file:

Generated on Sun Nov 29 07:22:16 2009 for Rad.on++ by  doxygen 1.6.1