X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/34c07b8b63651e46aabb7809c25d95dd40736687..58e8013e8217e36a4bdf38e6dbad3b21edf61af6:/docs/latex/wx/fontpicker.tex diff --git a/docs/latex/wx/fontpicker.tex b/docs/latex/wx/fontpicker.tex index 5d446d9cf8..76c1db2761 100644 --- a/docs/latex/wx/fontpicker.tex +++ b/docs/latex/wx/fontpicker.tex @@ -44,6 +44,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 @@ -64,7 +67,7 @@ user's input is valid, i.e. recognizable). } \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 +82,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 +95,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.} @@ -199,3 +203,4 @@ Retrieve the font the user has just selected. \func{void}{SetFont}{\param{const wxFont \&}{ f}} Set the font associated with the event. +