X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/34c07b8b63651e46aabb7809c25d95dd40736687..85136e3bf5dadf921652519e71da5db351fb3194:/docs/latex/wx/fontpicker.tex diff --git a/docs/latex/wx/fontpicker.tex b/docs/latex/wx/fontpicker.tex index 5d446d9cf8..60549ad2eb 100644 --- a/docs/latex/wx/fontpicker.tex +++ b/docs/latex/wx/fontpicker.tex @@ -28,6 +28,10 @@ It is only available if \texttt{wxUSE\_FONTPICKERCTRL} is set to $1$ (the defaul +\wxheading{Library} + +\helpref{wxCore}{librarieslist} + \wxheading{Window styles} \twocolwidtha{5cm}% @@ -44,6 +48,9 @@ The text control is automatically synchronized with button's value. Use function \wxheading{Event handling} +To process a font picker event, use these event handler macros to direct input to member +functions that take a \helpref{wxFontPickerEvent}{wxfontpickerevent} argument. + \twocolwidtha{7cm}% \begin{twocollist}\itemsep=0pt \twocolitem{{\bf EVT\_FONTPICKER\_CHANGED(id, func)}}{The user changed the font @@ -60,11 +67,11 @@ user's input is valid, i.e. recognizable). } \latexignore{\rtfignore{\wxheading{Members}}} -\membersection{wxFontPickerCtrl::wxFontPickerCtrl}\label{wxfontpickerctrl} +\membersection{wxFontPickerCtrl::wxFontPickerCtrl}\label{wxfontpickerctrlctor} \func{}{wxFontPickerCtrl}{\param{wxWindow *}{parent},\rtfsp \param{wxWindowID}{ id},\rtfsp -\param{const wxFont\& }{font = *wxNORMAL\_FONT},\rtfsp +\param{const wxFont\& }{font = wxNullFont},\rtfsp \param{const wxPoint\& }{pos = wxDefaultPosition},\rtfsp \param{const wxSize\& }{size = wxDefaultSize},\rtfsp \param{long}{ style = wxFNTP\_DEFAULT\_STYLE},\rtfsp @@ -79,7 +86,7 @@ all the parameters. \func{bool}{Create}{\param{wxWindow *}{parent},\rtfsp \param{wxWindowID}{ id},\rtfsp -\param{const wxFont\& }{font = *wxNORMAL\_FONT},\rtfsp +\param{const wxFont\& }{font = wxNullFont},\rtfsp \param{const wxPoint\& }{pos = wxDefaultPosition},\rtfsp \param{const wxSize\& }{size = wxDefaultSize},\rtfsp \param{long}{ style = wxFNTP\_DEFAULT\_STYLE},\rtfsp @@ -92,7 +99,8 @@ all the parameters. \docparam{id}{The identifier for the control.} -\docparam{font}{The initial font shown in the control.} +\docparam{font}{The initial font shown in the control. If \texttt{wxNullFont} +is given, the default font is used.} \docparam{pos}{Initial position.} @@ -162,6 +170,10 @@ This event class is used for the events generated by +\wxheading{Library} + +\helpref{wxCore}{librarieslist} + \wxheading{Event handling} To process input from a wxFontPickerCtrl, use one of these event handler macros to @@ -199,3 +211,4 @@ Retrieve the font the user has just selected. \func{void}{SetFont}{\param{const wxFont \&}{ f}} Set the font associated with the event. +