X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ec376c8fd9ff813392030426acd2317c6fa6527e..a1c3cdc4a2c4cc2b15d7fdf60c1be228f9fbc520:/docs/latex/wx/pickerbase.tex diff --git a/docs/latex/wx/pickerbase.tex b/docs/latex/wx/pickerbase.tex index 123c7bcd50..16c9277d38 100644 --- a/docs/latex/wx/pickerbase.tex +++ b/docs/latex/wx/pickerbase.tex @@ -13,7 +13,10 @@ Base abstract class for all pickers which support an auxiliary text control. This class handles all positioning and sizing of the text control like a an horizontal \helpref{wxBoxSizer}{wxboxsizer} would do, with the text control on -the left of the picker button and the proportion of the picker fixed to value 1. +the left of the picker button. +The proportion (see \helpref{wxSizer}{wxsizer} documentation for more info about +proportion values) of the picker control defaults to $1$ when there isn't a text control +associated (see {\tt wxPB\_USE\_TEXTCTRL} style) and to $0$ otherwise. \wxheading{Derived from} @@ -47,6 +50,7 @@ class.} \func{void}{SetInternalMargin}{\param{int}{margin}} Sets the margin (in pixel) between the picker and the text control. +This function can be used only when \helpref{HasTextCtrl}{wxpickerbasehastextctrl} returns \true. \membersection{wxPickerBase::GetInternalMargin}\label{wxpickerbasegetinternalmargin} @@ -54,34 +58,92 @@ Sets the margin (in pixel) between the picker and the text control. \constfunc{int}{GetInternalMargin}{} Returns the margin (in pixel) between the picker and the text control. +This function can be used only when \helpref{HasTextCtrl}{wxpickerbasehastextctrl} returns \true. \membersection{wxPickerBase::SetTextCtrlProportion}\label{wxpickerbasesettextctrlproportion} \func{void}{SetTextCtrlProportion}{\param{int}{prop}} -Sets the proportion between the text control and the picker. +Sets the proportion value of the text control. Look at the overview of wxPickerBase for more details about this. +This function can be used only when \helpref{HasTextCtrl}{wxpickerbasehastextctrl} returns \true. -\membersection{wxPickerBase::GetTextCtrlProportion}\label{wxpickerbasesgettextctrlproportion} +\membersection{wxPickerBase::SetPickerCtrlProportion}\label{wxpickerbasesetpickerctrlproportion} + +\func{void}{SetPickerCtrlProportion}{\param{int}{prop}} + +Sets the proportion value of the picker. +Look at the overview of wxPickerBase for more details about this. + + +\membersection{wxPickerBase::GetTextCtrlProportion}\label{wxpickerbasegettextctrlproportion} \constfunc{int}{GetTextCtrlProportion}{} -Returns the proportion between the text control and the picker. +Returns the proportion value of the text control. +This function can be used only when \helpref{HasTextCtrl}{wxpickerbasehastextctrl} returns \true. + + +\membersection{wxPickerBase::GetPickerCtrlProportion}\label{wxpickerbasegetpickerctrlproportion} + +\constfunc{int}{GetPickerCtrlProportion}{} +Returns the proportion value of the picker. -\membersection{wxPickerBase::HasTextCtrl}\label{wxpickerbaseshastextctrl} + +\membersection{wxPickerBase::HasTextCtrl}\label{wxpickerbasehastextctrl} \constfunc{bool}{HasTextCtrl}{} -Returns true if this class has a valid text control (i.e. if the \windowstyle{wxPB\_USE\_TEXTCTRL} style was +Returns true if this window has a valid text control (i.e. if the \windowstyle{wxPB\_USE\_TEXTCTRL} style was given when creating this control). -\membersection{wxPickerBase::GetTextCtrl}\label{wxpickerbasesgetextctrl} +\membersection{wxPickerBase::GetTextCtrl}\label{wxpickerbasegetextctrl} \func{wxTextCtrl *}{GetTextCtrl}{} -Returns a pointer to the text control handled by this class or \texttt{NULL} if the \windowstyle{wxPB\_USE\_TEXTCTRL} style was not specified when this control was created. +Returns a pointer to the text control handled by this window or \texttt{NULL} if the \windowstyle{wxPB\_USE\_TEXTCTRL} style was not specified when this control was created. Very important: the contents of the text control could be containing an invalid representation of the entity which can be chosen through the picker (e.g. the user entered an invalid colour syntax because of a typo). Thus you should never parse the content of the textctrl to get the user's input; rather use the derived-class getter (e.g. \helpref{wxColourPickerCtrl::GetColour}{wxcolourpickerctrlgetcolour}, \helpref{wxFilePickerCtrl::GetPath}{wxfilepickerctrlgetpath}, etc). + + +\membersection{wxPickerBase::IsTextCtrlGrowable}\label{wxpickerbaseistextctrlgrowable} + +\constfunc{bool}{IsTextCtrlGrowable}{} + +Returns \true if the text control is growable. +This function can be used only when \helpref{HasTextCtrl}{wxpickerbasehastextctrl} returns \true. + + +\membersection{wxPickerBase::SetPickerCtrlGrowable}\label{wxpickerbasesetpickerctrlgrowable} + +\func{void}{SetPickerCtrlGrowable}{\param{bool}{ grow = true}} + +Sets the picker control as growable when {\tt grow} is \true. + + +\membersection{wxPickerBase::SetTextCtrlGrowable}\label{wxpickerbasesettextctrlgrowable} + +\func{void}{SetTextCtrlGrowable}{\param{bool}{ grow = true}} + +Sets the text control as growable when {\tt grow} is \true. +This function can be used only when \helpref{HasTextCtrl}{wxpickerbasehastextctrl} returns \true. + + + +\membersection{wxPickerBase::IsPickerCtrlGrowable}\label{wxpickerbaseispickerctrlgrowable} + +\constfunc{bool}{IsPickerCtrlGrowable}{} + +Returns \true if the picker control is growable. + + +\membersection{wxPickerBase::SetPickerCtrlGrowable}\label{wxpickerbasesetpickerctrlgrowable} + +\func{void}{SetPickerCtrlGrowable}{\param{bool}{ grow = true}} + +Sets the picker control as growable when {\tt grow} is \true. +This function has effects only when \helpref{HasTextCtrl}{wxpickerbasehastextctrl} returns \true. +