DERIVED CLASS FOR DATETIME CONTROLS. More...
#include <Zclass.h>
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 |
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.
| 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
| 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.
1.6.1