X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b67a86d57493137cb1f7cce8ca8daf0b7120207e..58e8013e8217e36a4bdf38e6dbad3b21edf61af6:/docs/latex/wx/fontpicker.tex?ds=sidebyside diff --git a/docs/latex/wx/fontpicker.tex b/docs/latex/wx/fontpicker.tex index 099f028721..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.}