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

📄 tipprov.tex

📁 很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.
💻 TEX
字号:
\section{\class{wxTipProvider}}\label{wxtipprovider}This is the class used together with \helpref{wxShowTip}{wxshowtip} function.It must implement \helpref{GetTip}{wxtipprovidergettip} function and return thecurrent tip from it (different tip each time it is called).You will never use this class yourself, but you need it to show startup tipswith wxShowTip. Also, if you want to get the tips text from elsewhere than asimple text file, you will want to derive a new class from wxTipProvider anduse it instead of the one returned by \helpref{wxCreateFileTipProvider}{wxcreatefiletipprovider}.\wxheading{Derived from}None.\wxheading{Include files}<wx/tipdlg.h>\wxheading{See also}\helpref{Startup tips overview}{tipsoverview}, \helpref{::wxShowTip}{wxshowtip}\latexignore{\rtfignore{\wxheading{Members}}}\membersection{wxTipProvider::wxTipProvider}\label{wxtipproviderctor}\func{}{wxTipProvider}{\param{size\_t }{currentTip}}Constructor.\docparam{currentTip}{The starting tip index.}\membersection{wxTipProvider::GetTip}\label{wxtipprovidergettip}\func{wxString}{GetTip}{\void}Return the text of the current tip and pass to the next one. This function ispure virtual, it should be implemented in the derived classes.\membersection{wxTipProvider::PreprocessTip}\label{wxtipproviderpreprocesstip}\func{virtual wxString}{PreProcessTip}{\param{const wxString\&}{tip}}Returns a modified tip. This function will be called immediately after read,and before being check whether it is a comment, an empty string or a string to translate. You can optionally override this in your custom user-derived class to optionally to modify the tip as soon as it is read. You can return any modification to the string. If you return wxEmptyString, then this tip is skipped, and the next one is read.\membersection{wxCurrentTipProvider::GetCurrentTip}\label{wxtipprovidergetcurrenttip}\constfunc{size\_t}{GetCurrentTip}{\void}Returns the index of the current tip (i.e. the one which would be returned by GetTip).The program usually remembers the value returned by this function after calling \helpref{wxShowTip}{wxshowtip}. Note that it is not the same as the value whichwas passed to wxShowTip $+ 1$ because the user might have pressed the "Next"button in the tip dialog.

⌨️ 快捷键说明

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