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

📄 frame.tex

📁 很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.
💻 TEX
📖 第 1 页 / 共 2 页
字号:
different from (0, 0) if the frame has a toolbar.\membersection{wxFrame::GetMenuBar}\label{wxframegetmenubar}\constfunc{wxMenuBar*}{GetMenuBar}{\void}Returns a pointer to the menubar currently associated with the frame (if any).\wxheading{See also}\helpref{wxFrame::SetMenuBar}{wxframesetmenubar}, \helpref{wxMenuBar}{wxmenubar}, \helpref{wxMenu}{wxmenu}\membersection{wxFrame::GetStatusBar}\label{wxframegetstatusbar}\constfunc{wxStatusBar*}{GetStatusBar}{\void}Returns a pointer to the status bar currently associated with the frame (if any).\wxheading{See also}\helpref{wxFrame::CreateStatusBar}{wxframecreatestatusbar}, \helpref{wxStatusBar}{wxstatusbar}\membersection{wxFrame::GetStatusBarPane}\label{wxframegetstatusbarpane}\func{int}{GetStatusBarPane}{\void}Returns the status bar pane used to display menu and toolbar help.\wxheading{See also}\helpref{wxFrame::SetStatusBarPane}{wxframesetstatusbarpane}\membersection{wxFrame::GetToolBar}\label{wxframegettoolbar}\constfunc{wxToolBar*}{GetToolBar}{\void}Returns a pointer to the toolbar currently associated with the frame (if any).\wxheading{See also}\helpref{wxFrame::CreateToolBar}{wxframecreatetoolbar}, \helpref{wxToolBar}{wxtoolbar},\rtfsp\helpref{wxFrame::SetToolBar}{wxframesettoolbar}\membersection{wxFrame::OnCreateStatusBar}\label{wxframeoncreatestatusbar}\func{virtual wxStatusBar*}{OnCreateStatusBar}{\param{int }{number}, \param{long}{ style}, \param{wxWindowID}{ id}, \param{const wxString\&}{ name}}Virtual function called when a status bar is requested by \helpref{wxFrame::CreateStatusBar}{wxframecreatestatusbar}.\wxheading{Parameters}\docparam{number}{The number of fields to create.}\docparam{style}{The window style. See \helpref{wxStatusBar}{wxstatusbar} for a listof valid styles.}\docparam{id}{The window identifier. If -1, an identifier will be chosen bywxWidgets.}\docparam{name}{The window name.}\wxheading{Return value}A status bar object.\wxheading{Remarks}An application can override this function to return a different kind of status bar. The defaultimplementation returns an instance of \helpref{wxStatusBar}{wxstatusbar}.\wxheading{See also}\helpref{wxFrame::CreateStatusBar}{wxframecreatestatusbar}, \helpref{wxStatusBar}{wxstatusbar}.\membersection{wxFrame::OnCreateToolBar}\label{wxframeoncreatetoolbar}\func{virtual wxToolBar*}{OnCreateToolBar}{\param{long}{ style}, \param{wxWindowID}{ id}, \param{const wxString\&}{ name}}Virtual function called when a toolbar is requested by \helpref{wxFrame::CreateToolBar}{wxframecreatetoolbar}.\wxheading{Parameters}\docparam{style}{The toolbar style. See \helpref{wxToolBar}{wxtoolbar} for a listof valid styles.}\docparam{id}{The toolbar window identifier. If -1, an identifier will be chosen bywxWidgets.}\docparam{name}{The toolbar window name.}\wxheading{Return value}A toolbar object.\wxheading{Remarks}An application can override this function to return a different kind of toolbar. The defaultimplementation returns an instance of \helpref{wxToolBar}{wxtoolbar}.\wxheading{See also}\helpref{wxFrame::CreateToolBar}{wxframecreatetoolbar}, \helpref{wxToolBar}{wxtoolbar}.\membersection{wxFrame::ProcessCommand}\label{wxframeprocesscommand}\func{void}{ProcessCommand}{\param{int }{id}}Simulate a menu command.\wxheading{Parameters}\docparam{id}{The identifier for a menu item.}\membersection{wxFrame::SendSizeEvent}\label{wxframesendsizeevent}\func{void}{SendSizeEvent}{\void}This function sends a dummy \helpref{size event}{wxsizeevent} to the frameforcing it to reevaluate its children positions. It is sometimes useful to callthis function after adding or deleting a children after the frame creation orif a child size changes.Note that if the frame is using either sizers or constraints for the childrenlayout, it is enough to call \helpref{Layout()}{wxwindowlayout} directly andthis function should not be used in this case.% VZ: we don't have all this any more (18.08.00)%%Under Windows, instead of using {\bf SetIcon}, you can add the%following lines to your MS Windows resource file:%%\begin{verbatim}%wxSTD_MDIPARENTFRAME ICON icon1.ico%wxSTD_MDICHILDFRAME  ICON icon2.ico%wxSTD_FRAME          ICON icon3.ico%\end{verbatim}%%where icon1.ico will be used for the MDI parent frame, icon2.ico%will be used for MDI child frames, and icon3.ico will be used for%non-MDI frames.%%If these icons are not supplied, and {\bf SetIcon} is not called either,%then the following defaults apply if you have included wx.rc.%%\begin{verbatim}%wxDEFAULT_FRAME               ICON std.ico%wxDEFAULT_MDIPARENTFRAME      ICON mdi.ico%wxDEFAULT_MDICHILDFRAME       ICON child.ico%\end{verbatim}%%You can replace std.ico, mdi.ico and child.ico with your own defaults%for all your wxWidgets application. Currently they show the same icon.\membersection{wxFrame::SetMenuBar}\label{wxframesetmenubar}\func{void}{SetMenuBar}{\param{wxMenuBar* }{menuBar}}Tells the frame to show the given menu bar.\wxheading{Parameters}\docparam{menuBar}{The menu bar to associate with the frame.}\wxheading{Remarks}If the frame is destroyed, themenu bar and its menus will be destroyed also, so do not delete the menubar explicitly (except by resetting the frame's menu bar to anotherframe or NULL).Under Windows, a size event is generated, so be sure to initializedata members properly before calling {\bf SetMenuBar}.Note that on some platforms, it is not possible to call this function twice for the same frame object.\wxheading{See also}\helpref{wxFrame::GetMenuBar}{wxframegetmenubar}, \helpref{wxMenuBar}{wxmenubar}, \helpref{wxMenu}{wxmenu}.\membersection{wxFrame::SetStatusBar}\label{wxframesetstatusbar}\func{void}{SetStatusBar}{\param{wxStatusBar*}{ statusBar}}Associates a status bar with the frame.\wxheading{See also}\helpref{wxFrame::CreateStatusBar}{wxframecreatestatusbar}, \helpref{wxStatusBar}{wxstatusbar},\rtfsp\helpref{wxFrame::GetStatusBar}{wxframegetstatusbar}\membersection{wxFrame::SetStatusBarPane}\label{wxframesetstatusbarpane}\func{void}{SetStatusBarPane}{\param{int}{ n}}Set the status bar pane used to display menu and toolbar help.Using -1 disables help display.\membersection{wxFrame::SetStatusText}\label{wxframesetstatustext}\func{virtual void}{SetStatusText}{\param{const wxString\& }{ text}, \param{int}{ number = 0}}Sets the status bar text and redraws the status bar.\wxheading{Parameters}\docparam{text}{The text for the status field.}\docparam{number}{The status field (starting from zero).}\wxheading{Remarks}Use an empty string to clear the status bar.\wxheading{See also}\helpref{wxFrame::CreateStatusBar}{wxframecreatestatusbar}, \helpref{wxStatusBar}{wxstatusbar}\membersection{wxFrame::SetStatusWidths}\label{wxframesetstatuswidths}\func{virtual void}{SetStatusWidths}{\param{int}{ n}, \param{int *}{widths}}Sets the widths of the fields in the status bar.\wxheading{Parameters}\docparam{n}{The number of fields in the status bar. It must be thesame used in \helpref{CreateStatusBar}{wxframecreatestatusbar}.}\docparam{widths}{Must contain an array of {\it n} integers, each of which is a status field widthin pixels. A value of -1 indicates that the field is variable width; at least onefield must be -1. You should delete this array after calling {\bf SetStatusWidths}.}\wxheading{Remarks}The widths of the variable fields are calculated from the total width of all fields,minus the sum of widths of the non-variable fields, divided by the number ofvariable fields.\pythonnote{Only a single parameter is required, a Python list ofintegers.}\perlnote{In wxPerl this method takes the field widths as parameters.}\membersection{wxFrame::SetToolBar}\label{wxframesettoolbar}\func{void}{SetToolBar}{\param{wxToolBar*}{ toolBar}}Associates a toolbar with the frame.\wxheading{See also}\helpref{wxFrame::CreateToolBar}{wxframecreatetoolbar}, \helpref{wxToolBar}{wxtoolbar},\rtfsp\helpref{wxFrame::GetToolBar}{wxframegettoolbar}

⌨️ 快捷键说明

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