2 % automatically generated by HelpGen $Revision$ from
3 % dyntbar.h at 21/Jan/02 21:14:18
7 \section{\class{wxDynamicToolBar
}}\label{wxdynamictoolbar
}
10 wxDynamicToolBar manages containment and layout of tool windows.
12 \wxheading{Derived from
}
14 \helpref{wxToolBarBase
}{wxtoolbarbase
}
16 \wxheading{Include files
}
20 \wxheading{Data structures
}
22 \latexignore{\rtfignore{\wxheading{Members
}}}
25 \membersection{wxDynamicToolBar::wxDynamicToolBar
}\label{wxdynamictoolbarwxdynamictoolbar
}
27 \func{}{wxDynamicToolBar
}{\void}
32 \func{}{wxDynamicToolBar
}{\param{wxWindow*
}{parent
},
\param{const wxWindowID
}{id
},
\param{const wxPoint\&
}{pos = wxDefaultPosition
},
\param{const wxSize\&
}{size = wxDefaultSize
},
\param{const long
}{style = wxNO
\_BORDER},
\param{const int
}{orientation = wxVERTICAL
},
\param{const int
}{RowsOrColumns =
1},
\param{const wxString\&
}{name = wxToolBarNameStr
}}
34 Constructor: see the documentation for wxToolBar for details.
37 \membersection{wxDynamicToolBar::
\destruct{wxDynamicToolBar
}}\label{wxdynamictoolbardtor
}
39 \func{}{\destruct{wxDynamicToolBar
}}{\void}
44 \membersection{wxDynamicToolBar::AddSeparator
}\label{wxdynamictoolbaraddseparator
}
46 \func{void
}{AddSeparator
}{\param{wxWindow*
}{pSepartorWnd = NULL
}}
48 Adds a separator. See the documentation for wxToolBar for details.
51 \membersection{wxDynamicToolBar::AddTool
}\label{wxdynamictoolbaraddtool
}
53 \func{void
}{AddTool
}{\param{int
}{toolIndex
},
\param{wxWindow*
}{pToolWindow
},
\param{const wxSize\&
}{size = wxDefaultSize
}}
55 Adds a tool. See the documentation for wxToolBar for details.
58 \func{void
}{AddTool
}{\param{int
}{toolIndex
},
\param{const wxString\&
}{imageFileName
},
\param{wxBitmapType
}{imageFileType = wxBITMAP
\_TYPE\_BMP},
\param{const wxString\&
}{labelText = ""
},
\param{bool
}{alignTextRight = FALSE
},
\param{bool
}{isFlat = TRUE
}}
60 Adds a tool. See the documentation for wxToolBar for details.
63 \func{void
}{AddTool
}{\param{int
}{toolIndex
},
\param{wxBitmap
}{labelBmp
},
\param{const wxString\&
}{labelText = ""
},
\param{bool
}{alignTextRight = FALSE
},
\param{bool
}{isFlat = TRUE
}}
65 Adds a tool. See the documentation for wxToolBar for details.
68 \func{wxToolBarToolBase*
}{AddTool
}{\param{const int
}{toolIndex
},
\param{const wxBitmap\&
}{bitmap
},
\param{const wxBitmap\&
}{pushedBitmap = wxNullBitmap
},
\param{const bool
}{toggle = FALSE
},
\param{const long
}{xPos = -
1},
\param{const long
}{yPos = -
1},
\param{wxObject*
}{clientData = NULL
},
\param{const wxString\&
}{helpString1 = ""
},
\param{const wxString\&
}{helpString2 = ""
}}
70 Method from wxToolBarBase (for compatibility), only
71 the first two arguments are valid.
72 See the documentation for wxToolBar for details.
75 \membersection{wxDynamicToolBar::Create
}\label{wxdynamictoolbarcreate
}
77 \func{bool
}{Create
}{\param{wxWindow*
}{parent
},
\param{const wxWindowID
}{id
},
\param{const wxPoint\&
}{pos = wxDefaultPosition
},
\param{const wxSize\&
}{size = wxDefaultSize
},
\param{const long
}{style = wxNO
\_BORDER},
\param{const int
}{orientation = wxVERTICAL
},
\param{const int
}{RowsOrColumns =
1},
\param{const wxString\&
}{name = wxToolBarNameStr
}}
79 Creation function: see the documentation for wxToolBar for details.
82 \membersection{wxDynamicToolBar::CreateDefaultLayout
}\label{wxdynamictoolbarcreatedefaultlayout
}
84 \func{LayoutManagerBase*
}{CreateDefaultLayout
}{\void}
86 Creates the default layout (BagLayout).
89 \membersection{wxDynamicToolBar::CreateTool
}\label{wxdynamictoolbarcreatetool
}
91 \func{wxToolBarToolBase*
}{CreateTool
}{\param{wxControl*
}{control
}}
93 Creates a toolbar tool.
96 \func{wxToolBarToolBase*
}{CreateTool
}{\param{int
}{id
},
\param{const wxBitmap\&
}{bitmap1
},
\param{const wxBitmap\&
}{bitmap2
},
\param{bool
}{toggle
},
\param{wxObject*
}{clientData
},
\param{const wxString\&
}{shortHelpString
},
\param{const wxString\&
}{longHelpString
}}
98 Creates a toolbar tool.
101 \membersection{wxDynamicToolBar::DoDeleteTool
}\label{wxdynamictoolbardodeletetool
}
103 \func{bool
}{DoDeleteTool
}{\param{size
\_t }{pos
},
\param{wxToolBarToolBase*
}{tool
}}
105 Deletes a tool. The tool is still in m
\_tools list when this function is called, and it will
106 only be deleted from it if it succeeds.
109 \membersection{wxDynamicToolBar::DoEnableTool
}\label{wxdynamictoolbardoenabletool
}
111 \func{void
}{DoEnableTool
}{\param{wxToolBarToolBase*
}{tool
},
\param{bool
}{enable
}}
113 Called when the tools enabled flag changes.
116 \membersection{wxDynamicToolBar::DoInsertTool
}\label{wxdynamictoolbardoinserttool
}
118 \func{bool
}{DoInsertTool
}{\param{size
\_t }{pos
},
\param{wxToolBarToolBase*
}{tool
}}
120 Inserts a tool at the given position.
123 \membersection{wxDynamicToolBar::DoSetToggle
}\label{wxdynamictoolbardosettoggle
}
125 \func{void
}{DoSetToggle
}{\param{wxToolBarToolBase*
}{tool
},
\param{bool
}{toggle
}}
127 Called when the tools 'can be toggled' flag changes.
130 \membersection{wxDynamicToolBar::DoToggleTool
}\label{wxdynamictoolbardotoggletool
}
132 \func{void
}{DoToggleTool
}{\param{wxToolBarToolBase*
}{tool
},
\param{bool
}{toggle
}}
134 Called when the tool is toggled.
137 \membersection{wxDynamicToolBar::DrawSeparator
}\label{wxdynamictoolbardrawseparator
}
139 \func{void
}{DrawSeparator
}{\param{wxDynToolInfo\&
}{info
},
\param{wxDC\&
}{dc
}}
141 Draws a separator. The default implementation draws a shaded line.
144 \membersection{wxDynamicToolBar::EnableTool
}\label{wxdynamictoolbarenabletool
}
146 \func{void
}{EnableTool
}{\param{const int
}{toolIndex
},
\param{const bool
}{enable = TRUE
}}
148 Enables or disables the given tool.
151 \membersection{wxDynamicToolBar::FindToolForPosition
}\label{wxdynamictoolbarfindtoolforposition
}
153 \constfunc{wxToolBarToolBase*
}{FindToolForPosition
}{\param{wxCoord
}{x
},
\param{wxCoord
}{y
}}
155 Finds a tool for the given position.
158 \membersection{wxDynamicToolBar::GetPreferredDim
}\label{wxdynamictoolbargetpreferreddim
}
160 \func{void
}{GetPreferredDim
}{\param{const wxSize\&
}{givenDim
},
\param{wxSize\&
}{prefDim
}}
162 Returns the preferred dimension, taking the given dimension and a reference to the result.
165 \membersection{wxDynamicToolBar::GetToolInfo
}\label{wxdynamictoolbargettoolinfo
}
167 \func{wxDynToolInfo*
}{GetToolInfo
}{\param{int
}{toolIndex
}}
169 Returns tool information for the given tool index.
172 \membersection{wxDynamicToolBar::Layout
}\label{wxdynamictoolbarlayout
}
174 \func{bool
}{Layout
}{\void}
176 Performs layout. See definitions of orientation types.
179 \membersection{wxDynamicToolBar::OnEraseBackground
}\label{wxdynamictoolbaronerasebackground
}
181 \func{void
}{OnEraseBackground
}{\param{wxEraseEvent\&
}{event
}}
183 Responds to background erase events. Currently does nothing.
186 \membersection{wxDynamicToolBar::OnPaint
}\label{wxdynamictoolbaronpaint
}
188 \func{void
}{OnPaint
}{\param{wxPaintEvent\&
}{event
}}
190 Responds to paint events, drawing separators.
193 \membersection{wxDynamicToolBar::OnSize
}\label{wxdynamictoolbaronsize
}
195 \func{void
}{OnSize
}{\param{wxSizeEvent\&
}{event
}}
197 Responds to size events, calling Layout.
200 \membersection{wxDynamicToolBar::Realize
}\label{wxdynamictoolbarrealize
}
202 \func{bool
}{Realize
}{\void}
204 Overriden from wxToolBarBase; does nothing.
207 \membersection{wxDynamicToolBar::RemveTool
}\label{wxdynamictoolbarremvetool
}
209 \func{void
}{RemveTool
}{\param{int
}{toolIndex
}}
211 Removes the given tool. Misspelt in order not to clash with a similar function
215 \membersection{wxDynamicToolBar::SetLayout
}\label{wxdynamictoolbarsetlayout
}
217 \func{void
}{SetLayout
}{\param{LayoutManagerBase*
}{pLayout
}}
219 Sets the layout for this toolbar.
222 \membersection{wxDynamicToolBar::SizeToolWindows
}\label{wxdynamictoolbarsizetoolwindows
}
224 \func{void
}{SizeToolWindows
}{\void}
226 Internal function for sizing tool windows.