]> git.saurik.com Git - wxWidgets.git/blobdiff - docs/latex/wx/datectrl.tex
underscore fix(es)
[wxWidgets.git] / docs / latex / wx / datectrl.tex
index 73f6482eabc6a11f0b347c871eb7b73754926c55..8ef6c026da570b0c4406fe04669e54d0e52267ee 100644 (file)
 
 \section{\class{wxDatePickerCtrl}}\label{wxdatepickerctrl}
 
 
 \section{\class{wxDatePickerCtrl}}\label{wxdatepickerctrl}
 
-This control allows the user to select a date. Unlike
+This control allows the user to select a date. Unlike 
 \helpref{wxCalendarCtrl}{wxcalendarctrl}, which is a relatively big control,
 \helpref{wxCalendarCtrl}{wxcalendarctrl}, which is a relatively big control,
-it is implemented as a small window showing the currently selected date and
-allowing to edit it directly using the keyboard and may also display a popup
+wxDatePickerCtrl is implemented as a small window showing the currently selected date.
+The control can be edited using the keyboard, and can also display a popup
 window for more user-friendly date selection, depending on the styles used and
 the platform.
 
 window for more user-friendly date selection, depending on the styles used and
 the platform.
 
+It is only available if \texttt{wxUSE\_DATEPICKCTRL} is set to $1$.
+
 \wxheading{Derived from}
 
 \helpref{wxControl}{wxcontrol}\\
 \wxheading{Derived from}
 
 \helpref{wxControl}{wxcontrol}\\
@@ -28,8 +30,6 @@ the platform.
 
 <wx/dateevt.h>
 
 
 <wx/dateevt.h>
 
-(only available if \texttt{wxUSE\_DATEPICKCTRL} is set to $1$)
-
 \wxheading{Window styles}
 
 \twocolwidtha{5cm}%
 \wxheading{Window styles}
 
 \twocolwidtha{5cm}%
@@ -40,7 +40,11 @@ components. This style is not supported by the generic version.}
 \twocolitem{\windowstyle{wxDP\_DROPDOWN}}{Creates a control with a month
 calendar drop down part from which the user can select a date.}
 \twocolitem{\windowstyle{wxDP\_DEFAULT}}{Creates a control with default style
 \twocolitem{\windowstyle{wxDP\_DROPDOWN}}{Creates a control with a month
 calendar drop down part from which the user can select a date.}
 \twocolitem{\windowstyle{wxDP\_DEFAULT}}{Creates a control with default style
-which is the best supported for the current platform.}
+which is the best supported for the current platform (currently wxDP\_SPIN
+under Windows and wxDP\_DROPDOWN elsewhere).}
+\twocolitem{\windowstyle{wxDP\_SHOWCENTURY}}{Forces display of the century in
+the default date format. Without this flas the century could be displayed or
+not depending on the default date representation in the system.}
 \end{twocollist}
 
 \wxheading{Event handling}
 \end{twocollist}
 
 \wxheading{Event handling}
@@ -66,7 +70,7 @@ changes the current selection in the control.}
 \param{const wxDateTime\& }{dt = wxDefaultDateTime},\rtfsp
 \param{const wxPoint\& }{pos = wxDefaultPosition},\rtfsp
 \param{const wxSize\& }{size = wxDefaultSize},\rtfsp
 \param{const wxDateTime\& }{dt = wxDefaultDateTime},\rtfsp
 \param{const wxPoint\& }{pos = wxDefaultPosition},\rtfsp
 \param{const wxSize\& }{size = wxDefaultSize},\rtfsp
-\param{long}{ style = wxDP\_DEFAULT},\rtfsp
+\param{long}{ style = wxDP\_DEFAULT | wxDP\_SHOWCENTURY},\rtfsp
 \param{const wxValidator\& }{validator = wxDefaultValidator},
 \param{const wxString\& }{name = ``datectrl"}}
 
 \param{const wxValidator\& }{validator = wxDefaultValidator},
 \param{const wxString\& }{name = ``datectrl"}}
 
@@ -81,7 +85,7 @@ all the parameters.
 \param{const wxDateTime\& }{dt = wxDefaultDateTime},\rtfsp
 \param{const wxPoint\& }{pos = wxDefaultPosition},\rtfsp
 \param{const wxSize\& }{size = wxDefaultSize},\rtfsp
 \param{const wxDateTime\& }{dt = wxDefaultDateTime},\rtfsp
 \param{const wxPoint\& }{pos = wxDefaultPosition},\rtfsp
 \param{const wxSize\& }{size = wxDefaultSize},\rtfsp
-\param{long}{ style = wxDP\_DEFAULT},\rtfsp
+\param{long}{ style = wxDP\_DEFAULT | wxDP\_SHOWCENTURY},\rtfsp
 \param{const wxValidator\& }{validator = wxDefaultValidator},
 \param{const wxString\& }{name = ``datectrl"}}
 
 \param{const wxValidator\& }{validator = wxDefaultValidator},
 \param{const wxString\& }{name = ``datectrl"}}
 
@@ -166,4 +170,3 @@ in the currently selected range, if any.
 
 Calling this method does not result in a date change event.
 
 
 Calling this method does not result in a date change event.
 
-