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

📄 grid.tex

📁 很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.
💻 TEX
📖 第 1 页 / 共 5 页
字号:
Disables column moving by dragging with the mouse. Equivalent to passing false to\helpref{wxGrid::EnableDragColMove}{wxgridenabledragcolmove}.\membersection{wxGrid::DisableDragColSize}\label{wxgriddisabledragcolsize}\func{void}{DisableDragColSize}{\void}Disables column sizing by dragging with the mouse. Equivalent to passing false to\helpref{wxGrid::EnableDragColSize}{wxgridenabledragcolsize}.\membersection{wxGrid::DisableDragGridSize}\label{wxgriddisabledraggridsize}\func{void}{DisableDragGridSize}{\void}Disable mouse dragging of grid lines to resize rows and columns. Equivalent to passingfalse to \helpref{wxGrid::EnableDragGridSize}{wxgridenabledraggridsize}\membersection{wxGrid::DisableDragRowSize}\label{wxgriddisabledragrowsize}\func{void}{DisableDragRowSize}{\void}Disables row sizing by dragging with the mouse. Equivalent to passing false to\helpref{wxGrid::EnableDragRowSize}{wxgridenabledragrowsize}.\membersection{wxGrid::EnableCellEditControl}\label{wxgridenablecelleditcontrol}\func{void}{EnableCellEditControl}{\param{bool }{enable = true}}Enables or disables in-place editing of grid cell data. The grid will issue either awxEVT\_GRID\_EDITOR\_SHOWN or wxEVT\_GRID\_EDITOR\_HIDDEN event.\membersection{wxGrid::EnableDragColSize}\label{wxgridenabledragcolsize}\func{void}{EnableDragColSize}{\param{bool }{enable = true}}Enables or disables column sizing by dragging with the mouse.\membersection{wxGrid::EnableDragColMove}\label{wxgridenabledragcolmove}\func{void}{EnableDragColMove}{\param{bool }{enable = true}}Enables or disables column moving by dragging with the mouse.\membersection{wxGrid::EnableDragGridSize}\label{wxgridenabledraggridsize}\func{void}{EnableDragGridSize}{\param{bool }{enable = true}}Enables or disables row and column resizing by dragging gridlines with the mouse.\membersection{wxGrid::EnableDragRowSize}\label{wxgridenabledragrowsize}\func{void}{EnableDragRowSize}{\param{bool }{enable = true}}Enables or disables row sizing by dragging with the mouse.\membersection{wxGrid::EnableEditing}\label{wxgridenableediting}\func{void}{EnableEditing}{\param{bool }{edit}}If the edit argument is false this function sets the whole grid as read-only. If theargument is true the grid is set to the default state where cells may be editable. In thedefault state you can set single grid cells and whole rows and columns to be editable orread-only via\helpref{wxGridCellAttribute::SetReadOnly}{wxgridcellattrsetreadonly}. For singlecells you can also use the shortcut function\helpref{wxGrid::SetReadOnly}{wxgridsetreadonly}.For more information about controlling grid cell attributes see the\helpref{wxGridCellAttr}{wxgridcellattr} cell attribute class and the\helpref{wxGrid classes overview}{gridoverview}.\membersection{wxGrid::EnableGridLines}\label{wxgridenablegridlines}\func{void}{EnableGridLines}{\param{bool }{enable = true}}Turns the drawing of grid lines on or off.\membersection{wxGrid::EndBatch}\label{wxgridendbatch}\func{void}{EndBatch}{\void}Decrements the grid's batch count. When the count is greater than zero repainting ofthe grid is suppressed. Each previous call to\helpref{wxGrid::BeginBatch}{wxgridbeginbatch} must be matched by a later call toEndBatch. Code that does a lot of grid modification can be enclosed betweenBeginBatch and EndBatch calls to avoid screen flicker. The final EndBatch willcause the grid to be repainted.\membersection{wxGrid::Fit}\label{wxgridfit}\func{void}{Fit}{\void}Overridden wxWindow method.\membersection{wxGrid::ForceRefresh}\label{wxgridforcerefresh}\func{void}{ForceRefresh}{\void}Causes immediate repainting of the grid. Use this instead of the usual wxWindow::Refresh.\membersection{wxGrid::GetBatchCount}\label{wxgridgetbatchcount}\func{int}{GetBatchCount}{\void}Returns the number of times that \helpref{wxGrid::BeginBatch}{wxgridbeginbatch} has been calledwithout (yet) matching calls to \helpref{wxGrid::EndBatch}{wxgridendbatch}. Whilethe grid's batch count is greater than zero the display will not be updated.\membersection{wxGrid::GetCellAlignment}\label{wxgridgetcellalignment}\func{void}{GetCellAlignment}{\param{int }{row}, \param{int }{col}, \param{int* }{horiz}, \param{int* }{vert}}Sets the arguments to the horizontal and vertical text alignment values for thegrid cell at the specified location.Horizontal alignment will be one of wxALIGN\_LEFT, wxALIGN\_CENTRE or wxALIGN\_RIGHT. \\Vertical alignment will be one of wxALIGN\_TOP, wxALIGN\_CENTRE or wxALIGN\_BOTTOM.\perlnote{This method only takes the parameters {\tt row} and {\tt col} andreturns a 2-element list {\tt ( horiz, vert )}.}\membersection{wxGrid::GetCellBackgroundColour}\label{wxgridgetcellbackgroundcolour}\func{wxColour}{GetCellBackgroundColour}{\param{int }{row}, \param{int }{col}}Returns the background colour of the cell at the specified location.\membersection{wxGrid::GetCellEditor}\label{wxgridgetcelleditor}\func{wxGridCellEditor*}{GetCellEditor}{\param{int }{row}, \param{int }{col}}Returns a pointer to the editor for the cell at the specified location.See \helpref{wxGridCellEditor}{wxgridcelleditor} andthe \helpref{wxGrid overview}{gridoverview} for more information about cell editors and renderers.\membersection{wxGrid::GetCellFont}\label{wxgridgetcellfont}\func{wxFont}{GetCellFont}{\param{int }{row}, \param{int }{col}}Returns the font for text in the grid cell at the specified location.\membersection{wxGrid::GetCellRenderer}\label{wxgridgetcellrenderer}\func{wxGridCellRenderer*}{GetCellRenderer}{\param{int }{row}, \param{int }{col}}Returns a pointer to the renderer for the grid cell at the specified location.See \helpref{wxGridCellRenderer}{wxgridcellrenderer} andthe \helpref{wxGrid overview}{gridoverview} for more information about cell editors and renderers.\membersection{wxGrid::GetCellTextColour}\label{wxgridgetcelltextcolour}\func{wxColour}{GetCellTextColour}{\param{int }{row}, \param{int }{col}}Returns the text colour for the grid cell at the specified location.\membersection{wxGrid::GetCellValue}\label{wxgridgetcellvalue}\func{wxString}{GetCellValue}{\param{int }{row}, \param{int }{col}}\func{wxString}{GetCellValue}{\param{const wxGridCellCoords\&}{coords}}Returns the string contained in the cell at the specified location. For simple applications where agrid object automatically uses a default grid table of string values you use this function togetherwith \helpref{wxGrid::SetCellValue}{wxgridsetcellvalue} to access cell values.For more complex applications where you have derived your own grid table class that containsvarious data types (e.g. numeric, boolean or user-defined custom types) then you only use thisfunction for those cells that contain string values.See \helpref{wxGridTableBase::CanGetValueAs}{wxgridtablebasecangetvalueas}and the \helpref{wxGrid overview}{gridoverview} for more information.\membersection{wxGrid::GetColAt}\label{wxgridgetcolat}\constfunc{int}{GetColAt}{\param{int }{colPos}}Returns the column ID of the specified column position.\membersection{wxGrid::GetColLeft}\label{wxgridgetcolleft}\constfunc{int}{GetColLeft}{\param{int }{col}}\membersection{wxGrid::GetColLabelAlignment}\label{wxgridgetcollabelalignment}\func{void}{GetColLabelAlignment}{\param{int* }{horiz}, \param{int* }{vert}}Sets the arguments to the current column label alignment values.Horizontal alignment will be one of wxALIGN\_LEFT, wxALIGN\_CENTRE or wxALIGN\_RIGHT.\\Vertical alignment will be one of wxALIGN\_TOP, wxALIGN\_CENTRE or wxALIGN\_BOTTOM.\perlnote{This method takes no parameters andreturns a 2-element list {\tt ( horiz, vert )}.}\membersection{wxGrid::GetColLabelSize}\label{wxgridgetcollabelsize}\func{int}{GetColLabelSize}{\void}Returns the current height of the column labels.\membersection{wxGrid::GetColLabelValue}\label{wxgridgetcollabelvalue}\func{wxString}{GetColLabelValue}{\param{int }{col}}Returns the specified column label. The default grid table class provides column labels ofthe form A,B...Z,AA,AB...ZZ,AAA... If you are using a custom grid table you can override\helpref{wxGridTableBase::GetColLabelValue}{wxgridtablebasegetcollabelvalue} to provideyour own labels.\membersection{wxGrid::GetColMinimalAcceptableWidth}\label{wxgridgetcolminimalacceptablewidth}\func{int}{GetColMinimalAcceptableWidth}{}This returns the value of the lowest column width that can be handled correctly. Seemember \helpref{SetColMinimalAcceptableWidth}{wxgridsetcolminimalacceptablewidth} for details.\membersection{wxGrid::GetColMinimalWidth}\label{wxgridgetcolminimalwidth}\constfunc{int}{GetColMinimalWidth}{\param{int }{col}}Get the minimal width of the given column/row.\membersection{wxGrid::GetColPos}\label{wxgridgetcolpos}\constfunc{int}{GetColPos}{\param{int }{colID}}Returns the position of the specified column.\membersection{wxGrid::GetColRight}\label{wxgridgetcolright}\constfunc{int}{GetColRight}{\param{int }{col}}\membersection{wxGrid::GetColSize}\label{wxgridgetcolsize}\func{int}{GetColSize}{\param{int }{col}}Returns the width of the specified column.\membersection{wxGrid::GetDefaultCellAlignment}\label{wxgridgetdefaultcellalignment}\func{void}{GetDefaultCellAlignment}{\param{int* }{horiz}, \param{int* }{vert}}Sets the arguments to the current default horizontal and vertical text alignmentvalues.Horizontal alignment will be one of wxALIGN\_LEFT, wxALIGN\_CENTRE or wxALIGN\_RIGHT. \\Vertical alignment will be one of wxALIGN\_TOP, wxALIGN\_CENTRE or wxALIGN\_BOTTOM.\membersection{wxGrid::GetDefaultCellBackgroundColour}\label{wxgridgetdefaultcellbackgroundcolour}\func{wxColour}{GetDefaultCellBackgroundColour}{\void}Returns the current default background colour for grid cells.\membersection{wxGrid::GetDefaultCellFont}\label{wxgridgetdefaultcellfont}\func{wxFont}{GetDefaultCellFont}{\void}Returns the current default font for grid cell text.\membersection{wxGrid::GetDefaultCellTextColour}\label{wxgridgetdefaultcelltextcolour}\func{wxColour}{GetDefaultCellTextColour}{\void}Returns the current default colour for grid cell text.\membersection{wxGrid::GetDefaultColLabelSize}\label{wxgridgetdefaultcollabelsize}\func{int}{GetDefaultColLabelSize}{\void}Returns the default height for column labels.\membersection{wxGrid::GetDefaultColSize}\label{wxgridgetdefaultcolsize}\func{int}{GetDefaultColSize}{\void}Returns the current default width for grid columns.\membersection{wxGrid::GetDefaultEditor}\label{wxgridgetdefaulteditor}\constfunc{wxGridCellEditor*}{GetDefaultEditor}{\void}Returns a pointer to the current default grid cell editor.See \helpref{wxGridCellEditor}{wxgridcelleditor} andthe \helpref{wxGrid overview}{gridoverview} for more information about cell editors and renderers.\membersection{wxGrid::GetDefaultEditorForCell}\label{wxgridgetdefaulteditorforcell}\constfunc{wxGridCellEditor*}{GetDefaultEditorForCell}{\param{int }{row}, \param{int }{col}}\constfunc{wxGridCellEditor*}{GetDefaultEditorForCell}{\param{const wxGridCellCoords\& }{c}}\membersection{wxGrid::GetDefaultEditorForType}\label{wxgridgetdefaulteditorfortype}\constfunc{wxGridCellEditor*}{GetDefaultEditorForType}{\param{const wxString\& }{typeName}}\membersection{wxGrid::GetDefaultRenderer}\label{wxgridgetdefaultrenderer}\constfunc{wxGridCellRenderer*}{GetDefaultRenderer}{\void}Returns a pointer to the current default grid cell renderer.See \helpref{wxGridCellRenderer}{wxgridcellrenderer} andthe \helpref{wxGrid overview}{gridoverview} for more information about cell editors and renderers.\membersection{wxGrid::GetDefaultRendererForCell}\label{wxgridgetdefaultrendererforcell}\constfunc{wxGridCellRenderer*}{GetDefaultRendererForCell}{\param{int }{row}, \param{int }{col}}\membersection{wxGrid::GetDefaultRendererForType}\label{wxgridgetdefaultrendererfortype}\constfunc{wxGridCellRenderer*}{GetDefaultRendererForType}{\param{const wxString\& }{typeName}}\membersection{wxGrid::GetDefaultRowLabelSize}\label{wxgridgetdefaultrowlabelsize}

⌨️ 快捷键说明

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