⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 combopopup.tex

📁 很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.
💻 TEX
字号:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Name:        combopopup.tex%% Purpose:     wxComboPopup docs%% Author:      Jaakko Salli%% Modified by:%% Created:%% RCS-ID:      $Id: combopopup.tex,v 1.2 2006/10/10 17:46:46 JS Exp $%% Copyright:   (c) Jaakko Salli%% License:     wxWindows license%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\section{\class{wxComboPopup}}\label{wxcombopopup}In order to use a custom popup with \helpref{wxComboCtrl}{wxcomboctrl},an interface class must be derived from wxComboPopup. For more informationhow to use it, see \helpref{Setting Custom Popup for wxComboCtrl}{wxcomboctrl}.\wxheading{Include files}<combo.h>\wxheading{See also}\helpref{wxComboCtrl}{wxcomboctrl}\latexignore{\rtfignore{\wxheading{Members}}}\membersection{wxComboPopup::wxComboPopup}\label{wxcombopopupwxcombopopup}\func{}{wxComboPopup}{\void}Default constructor. It is recommended that internal variablesare prepared in \helpref{Init}{wxcombopopupinit} instead(because \helpref{m\_combo}{wxcombopopupmcombo} is not valid in constructor).\membersection{wxComboPopup::m\_combo}\label{wxcombopopupmcombo}\member{wxComboCtrl}{m\_combo}Parent \helpref{wxComboCtrl}{wxcomboctrl}. This is parameter hasbeen prepared before \helpref{Init}{wxcombopopupinit} is called.\membersection{wxComboPopup::Create}\label{wxcombopopupcreate}\func{bool}{Create}{\param{wxWindow* }{parent}}The derived class must implement this to create the popup control.\wxheading{Return value}\true if the call succeeded, \false otherwise.\membersection{wxComboPopup::Dismiss}\label{wxcombopopupdismiss}\func{void}{Dismiss}{\void}Utility function that hides the popup.\membersection{wxComboPopup::GetAdjustedSize}\label{wxcombopopupgetadjustedsize}\func{wxSize}{GetAdjustedSize}{\param{int }{minWidth}, \param{int }{prefHeight}, \param{int }{maxHeight}}The derived class may implement this to return adjusted sizefor the popup control, according to the variables given.\wxheading{Parameters}\docparam{minWidth}{Preferred minimum width.}\docparam{prefHeight}{Preferred height. May be -1 to indicateno preference.}\docparam{maxWidth}{Max height for window, as limited byscreen size.}\wxheading{Remarks}Called each time popup is about to be shown.\membersection{wxComboPopup::GetControl}\label{wxcombopopupgetcontrol}\func{wxWindow*}{GetControl}{\void}The derived class must implement this to return pointerto the associated control created in \helpref{Create}{wxcombopopupcreate}.\membersection{wxComboPopup::GetStringValue}\label{wxcombopopupgetstringvalue}\constfunc{wxString}{GetStringValue}{\void}The derived class must implement this to returnstring representation of the value.\membersection{wxComboPopup::Init}\label{wxcombopopupinit}\func{void}{Init}{\void}The derived class must implement this to initializeits internal variables. This method is called immediatelyafter construction finishes. \helpref{m\_combo}{wxcombopopupmcombo}member variable has been initialized before the call.\membersection{wxComboPopup::IsCreated}\label{wxcombopopupiscreated}\constfunc{bool}{IsCreated}{\void}Utility method that returns \true if Create has been called.Useful in conjunction with \helpref{LazyCreate}{wxcombopopuplazycreate}.\membersection{wxComboPopup::LazyCreate}\label{wxcombopopuplazycreate}\func{bool}{LazyCreate}{\void}The derived class may implement this to return\true if it wants to delay call to \helpref{Create}{wxcombopopupcreate}until the popup is shown for the first time. It is moreefficient, but on the other hand it is often more convenientto have the control created immediately.\wxheading{Remarks}Base implementation returns \false.\membersection{wxComboPopup::OnComboDoubleClick}\label{wxcombopopuponcombodoubleclick}\func{void}{OnComboDoubleClick}{\void}The derived class may implement this to do somethingwhen the parent \helpref{wxComboCtrl}{wxcomboctrl} gets double-clicked.\membersection{wxComboPopup::OnComboKeyEvent}\label{wxcombopopuponcombokeyevent}\func{void}{OnComboKeyEvent}{\param{wxKeyEvent\& }{event}}The derived class may implement this to receivekey events from the parent \helpref{wxComboCtrl}{wxcomboctrl}.Events not handled should be skipped, as usual.\membersection{wxComboPopup::OnDismiss}\label{wxcombopopupondismiss}\func{void}{OnDismiss}{\void}The derived class may implement this to dospecial processing when popup is hidden.\membersection{wxComboPopup::OnPopup}\label{wxcombopopuponpopup}\func{void}{OnPopup}{\void}The derived class may implement this to dospecial processing when popup is shown.\membersection{wxComboPopup::PaintComboControl}\label{wxcombopopuppaintcombocontrol}\func{void}{PaintComboControl}{\param{wxDC\& }{dc}, \param{const wxRect\& }{rect}}The derived class may implement this to paintthe parent \helpref{wxComboCtrl}{wxcomboctrl}.Default implementation draws value as string.\membersection{wxComboPopup::SetStringValue}\label{wxcombopopupsetstringvalue}\func{void}{SetStringValue}{\param{const wxString\& }{value}}The derived class must implement this to receivestring value changes from \helpref{wxComboCtrl}{wxcomboctrl}.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -