1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 %% Name: combopopup.tex
3 %% Purpose: wxComboPopup docs
4 %% Author: Jaakko Salli
8 %% Copyright: (c) Jaakko Salli
9 %% License: wxWindows license
10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12 \section{\class{wxComboPopup
}}\label{wxcombopopup
}
14 In order to use a custom popup with
\helpref{wxComboCtrl
}{wxcomboctrl
},
15 an interface class must be derived from wxComboPopup. For more information
16 how to use it, see
\helpref{Setting Custom Popup for wxComboCtrl
}{wxcomboctrl
}.
18 \wxheading{Include files
}
24 \helpref{wxCore
}{librarieslist
}
28 \helpref{wxComboCtrl
}{wxcomboctrl
}
30 \latexignore{\rtfignore{\wxheading{Members
}}}
33 \membersection{wxComboPopup::wxComboPopup
}\label{wxcombopopupwxcombopopup
}
35 \func{}{wxComboPopup
}{\void}
37 Default constructor. It is recommended that internal variables
38 are prepared in
\helpref{Init
}{wxcombopopupinit
} instead
39 (because
\helpref{m
\_combo}{wxcombopopupmcombo
} is not valid in constructor).
42 \membersection{wxComboPopup::m
\_combo}\label{wxcombopopupmcombo
}
44 \member{wxComboCtrl
}{m
\_combo}
46 Parent
\helpref{wxComboCtrl
}{wxcomboctrl
}. This is parameter has
47 been prepared before
\helpref{Init
}{wxcombopopupinit
} is called.
50 \membersection{wxComboPopup::Create
}\label{wxcombopopupcreate
}
52 \func{bool
}{Create
}{\param{wxWindow*
}{parent
}}
54 The derived class must implement this to create the popup control.
56 \wxheading{Return value
}
58 \true if the call succeeded,
\false otherwise.
61 \membersection{wxComboPopup::Dismiss
}\label{wxcombopopupdismiss
}
63 \func{void
}{Dismiss
}{\void}
65 Utility function that hides the popup.
68 \membersection{wxComboPopup::GetAdjustedSize
}\label{wxcombopopupgetadjustedsize
}
70 \func{wxSize
}{GetAdjustedSize
}{\param{int
}{minWidth
},
\param{int
}{prefHeight
},
\param{int
}{maxHeight
}}
72 The derived class may implement this to return adjusted size
73 for the popup control, according to the variables given.
75 \wxheading{Parameters
}
77 \docparam{minWidth
}{Preferred minimum width.
}
78 \docparam{prefHeight
}{Preferred height. May be -
1 to indicate
80 \docparam{maxWidth
}{Max height for window, as limited by
85 Called each time popup is about to be shown.
88 \membersection{wxComboPopup::GetControl
}\label{wxcombopopupgetcontrol
}
90 \func{wxWindow*
}{GetControl
}{\void}
92 The derived class must implement this to return pointer
93 to the associated control created in
\helpref{Create
}{wxcombopopupcreate
}.
96 \membersection{wxComboPopup::GetStringValue
}\label{wxcombopopupgetstringvalue
}
98 \constfunc{wxString
}{GetStringValue
}{\void}
100 The derived class must implement this to return
101 string representation of the value.
104 \membersection{wxComboPopup::Init
}\label{wxcombopopupinit
}
106 \func{void
}{Init
}{\void}
108 The derived class must implement this to initialize
109 its internal variables. This method is called immediately
110 after construction finishes.
\helpref{m
\_combo}{wxcombopopupmcombo
}
111 member variable has been initialized before the call.
114 \membersection{wxComboPopup::IsCreated
}\label{wxcombopopupiscreated
}
116 \constfunc{bool
}{IsCreated
}{\void}
118 Utility method that returns
\true if Create has been called.
120 Useful in conjunction with
\helpref{LazyCreate
}{wxcombopopuplazycreate
}.
123 \membersection{wxComboPopup::LazyCreate
}\label{wxcombopopuplazycreate
}
125 \func{bool
}{LazyCreate
}{\void}
127 The derived class may implement this to return
128 \true if it wants to delay call to
\helpref{Create
}{wxcombopopupcreate
}
129 until the popup is shown for the first time. It is more
130 efficient, but on the other hand it is often more convenient
131 to have the control created immediately.
135 Base implementation returns
\false.
138 \membersection{wxComboPopup::OnComboDoubleClick
}\label{wxcombopopuponcombodoubleclick
}
140 \func{void
}{OnComboDoubleClick
}{\void}
142 The derived class may implement this to do something
143 when the parent
\helpref{wxComboCtrl
}{wxcomboctrl
} gets double-clicked.
146 \membersection{wxComboPopup::OnComboKeyEvent
}\label{wxcombopopuponcombokeyevent
}
148 \func{void
}{OnComboKeyEvent
}{\param{wxKeyEvent\&
}{event
}}
150 The derived class may implement this to receive
151 key events from the parent
\helpref{wxComboCtrl
}{wxcomboctrl
}.
153 Events not handled should be skipped, as usual.
156 \membersection{wxComboPopup::OnDismiss
}\label{wxcombopopupondismiss
}
158 \func{void
}{OnDismiss
}{\void}
160 The derived class may implement this to do
161 special processing when popup is hidden.
164 \membersection{wxComboPopup::OnPopup
}\label{wxcombopopuponpopup
}
166 \func{void
}{OnPopup
}{\void}
168 The derived class may implement this to do
169 special processing when popup is shown.
172 \membersection{wxComboPopup::PaintComboControl
}\label{wxcombopopuppaintcombocontrol
}
174 \func{void
}{PaintComboControl
}{\param{wxDC\&
}{dc
},
\param{const wxRect\&
}{rect
}}
176 The derived class may implement this to paint
177 the parent
\helpref{wxComboCtrl
}{wxcomboctrl
}.
179 Default implementation draws value as string.
182 \membersection{wxComboPopup::SetStringValue
}\label{wxcombopopupsetstringvalue
}
184 \func{void
}{SetStringValue
}{\param{const wxString\&
}{value
}}
186 The derived class must implement this to receive
187 string value changes from
\helpref{wxComboCtrl
}{wxcomboctrl
}.