]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/pickerbase.tex
Need to convert from physical to logical units inside HitTest
[wxWidgets.git] / docs / latex / wx / pickerbase.tex
CommitLineData
ec376c8f
VZ
1%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2%% Name: pickerbase.tex
3%% Purpose: wxPickerBase documentation
4%% Author: Francesco Montorsi
5%% Created: 2006-04-18
6%% RCS-ID: $Id$
7%% Copyright: (c) 2006 Francesco Montorsi
8%% License: wxWindows license
9%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
10
11\section{\class{wxPickerBase}}\label{wxpickerbase}
12
13Base abstract class for all pickers which support an auxiliary text control.
14This class handles all positioning and sizing of the text control like a
15an horizontal \helpref{wxBoxSizer}{wxboxsizer} would do, with the text control on
16the left of the picker button and the proportion of the picker fixed to value 1.
17
18\wxheading{Derived from}
19
20\helpref{wxControl}{wxcontrol}\\
21\helpref{wxWindow}{wxwindow}\\
22\helpref{wxEvtHandler}{wxevthandler}\\
23\helpref{wxObject}{wxobject}
24
25\wxheading{Include files}
26
27<wx/pickerbase.h>
28
29\wxheading{Window styles}
30
31\twocolwidtha{5cm}%
32\begin{twocollist}\itemsep=0pt
33\twocolitem{\windowstyle{wxPB\_USE\_TEXTCTRL}}{Creates a text control to the left of the
34picker which is completely managed by this \helpref{wxPickerBase}{wxpickerbase}
35class.}
36\end{twocollist}
37
38\wxheading{See also}
39
40\helpref{wxColourPickerCtrl}{wxcolourpickerctrl}
41
42
43\latexignore{\rtfignore{\wxheading{Members}}}
44
45\membersection{wxPickerBase::SetInternalMargin}\label{wxpickerbasesetinternalmargin}
46
47\func{void}{SetInternalMargin}{\param{int}{margin}}
48
49Sets the margin (in pixel) between the picker and the text control.
a65ffcb2 50This function can be used only when \helpref{wxpickerbasehastextctrl}{HasTextCtrl} returns \true.
ec376c8f
VZ
51
52
53\membersection{wxPickerBase::GetInternalMargin}\label{wxpickerbasegetinternalmargin}
54
55\constfunc{int}{GetInternalMargin}{}
56
57Returns the margin (in pixel) between the picker and the text control.
a65ffcb2 58This function can be used only when \helpref{wxpickerbasehastextctrl}{HasTextCtrl} returns \true.
ec376c8f
VZ
59
60
61\membersection{wxPickerBase::SetTextCtrlProportion}\label{wxpickerbasesettextctrlproportion}
62
63\func{void}{SetTextCtrlProportion}{\param{int}{prop}}
64
65Sets the proportion between the text control and the picker.
66Look at the overview of wxPickerBase for more details about this.
a65ffcb2 67This function can be used only when \helpref{wxpickerbasehastextctrl}{HasTextCtrl} returns \true.
ec376c8f
VZ
68
69
a65ffcb2 70\membersection{wxPickerBase::GetTextCtrlProportion}\label{wxpickerbasegettextctrlproportion}
ec376c8f
VZ
71
72\constfunc{int}{GetTextCtrlProportion}{}
73
74Returns the proportion between the text control and the picker.
a65ffcb2 75This function can be used only when \helpref{wxpickerbasehastextctrl}{HasTextCtrl} returns \true.
ec376c8f
VZ
76
77
a65ffcb2
VZ
78
79\membersection{wxPickerBase::HasTextCtrl}\label{wxpickerbasehastextctrl}
ec376c8f
VZ
80
81\constfunc{bool}{HasTextCtrl}{}
82
a65ffcb2 83Returns true if this window has a valid text control (i.e. if the \windowstyle{wxPB\_USE\_TEXTCTRL} style was
ec376c8f
VZ
84given when creating this control).
85
86
a65ffcb2 87\membersection{wxPickerBase::GetTextCtrl}\label{wxpickerbasegetextctrl}
ec376c8f
VZ
88
89\func{wxTextCtrl *}{GetTextCtrl}{}
90
a65ffcb2 91Returns 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.
ec376c8f 92Very 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).
a65ffcb2
VZ
93
94
95\membersection{wxPickerBase::IsTextCtrlGrowable}\label{wxpickerbaseistextctrlgrowable}
96
97\constfunc{bool}{IsTextCtrlGrowable}{}
98
99Returns \true if the text control is growable.
100This function can be used only when \helpref{wxpickerbasehastextctrl}{HasTextCtrl} returns \true.
101
102
103\membersection{wxPickerBase::SetTextCtrlGrowable}\label{wxpickerbasesettextctrlgrowable}
104
105\func{void}{SetTextCtrlGrowable}{\param{bool}{ grow = true}}
106
107Sets the text control as growable when {\tt grow} is \true.
108This function can be used only when \helpref{wxpickerbasehastextctrl}{HasTextCtrl} returns \true.
109
110
111
112\membersection{wxPickerBase::IsPickerCtrlGrowable}\label{wxpickerbaseispickerctrlgrowable}
113
114\constfunc{bool}{IsPickerCtrlGrowable}{}
115
116Returns \true if the picker control is growable.
117
118
119\membersection{wxPickerBase::SetPickerCtrlGrowable}\label{wxpickerbasesetpickerctrlgrowable}
120
121\func{void}{SetPickerCtrlGrowable}{\param{bool}{ grow = true}}
122
123Sets the picker control as growable when {\tt grow} is \true.
124This function has effects only when \helpref{wxpickerbasehastextctrl}{HasTextCtrl} returns \true.
125