git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57624
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- wxGridCellFloatEditor
- wxGridCellNumberEditor
- wxGridCellTextEditor
- wxGridCellFloatEditor
- wxGridCellNumberEditor
- wxGridCellTextEditor
Please see wxGridEvent, wxGridSizeEvent, wxGridRangeSelectEvent, and
wxGridEditorCreatedEvent for the documentation of all event types you can
use with wxGrid.
Please see wxGridEvent, wxGridSizeEvent, wxGridRangeSelectEvent, and
wxGridEditorCreatedEvent for the documentation of all event types you can
use with wxGrid.
See wxGridTableBase::CanGetValueAs() and the @ref overview_grid for
more information.
*/
See wxGridTableBase::CanGetValueAs() and the @ref overview_grid for
more information.
*/
- const wxString GetCellValue(const wxGridCellCoords& coords) const;
+ const wxString& GetCellValue(const wxGridCellCoords& coords) const;
/**
Returns a pointer to the current default grid cell editor.
/**
Returns a pointer to the current default grid cell editor.
This method takes an array containing the indices of the columns in
their display order, i.e. uses the same convention as
wxHeaderCtrl::SetColumnsOrder().
This method takes an array containing the indices of the columns in
their display order, i.e. uses the same convention as
wxHeaderCtrl::SetColumnsOrder().
void SetColumnsOrder(const wxArrayInt& order);
/**
Resets the position of the columns to the default.
void SetColumnsOrder(const wxArrayInt& order);
/**
Resets the position of the columns to the default.
/**
@name Cursor Movement
/**
@name Cursor Movement
@event{EVT_GRID_CELL_CHANGING(func)}
The user is about to change the data in a cell. The new cell value as
string is available from GetString() event object method. This event
@event{EVT_GRID_CELL_CHANGING(func)}
The user is about to change the data in a cell. The new cell value as
string is available from GetString() event object method. This event
- can be vetoed if the change is not allowed. Processes a @c
- wxEVT_GRID_CELL_CHANGING event type.
+ can be vetoed if the change is not allowed.
+ Processes a @c wxEVT_GRID_CELL_CHANGING event type.
@event{EVT_GRID_CELL_CHANGED(func)}
The user changed the data in a cell. The old cell value as string is
available from GetString() event object method. Notice that vetoing
@event{EVT_GRID_CELL_CHANGED(func)}
The user changed the data in a cell. The old cell value as string is
available from GetString() event object method. Notice that vetoing
proceed in which case wxGrid::SetColPos() is used to reorder the
columns display order without affecting the use of the column indices
otherwise.
proceed in which case wxGrid::SetColPos() is used to reorder the
columns display order without affecting the use of the column indices
otherwise.
This event macro corresponds to @c wxEVT_GRID_COL_MOVE event type.
@event{EVT_GRID_COL_SORT(func)}
This event is generated when a column is clicked by the user and its
This event macro corresponds to @c wxEVT_GRID_COL_MOVE event type.
@event{EVT_GRID_COL_SORT(func)}
This event is generated when a column is clicked by the user and its
(and not vetoed) the grid supposes that the table was indeed resorted
and updates the column to indicate the new sort order and refreshes
itself.
(and not vetoed) the grid supposes that the table was indeed resorted
and updates the column to indicate the new sort order and refreshes
itself.
This event macro corresponds to @c wxEVT_GRID_COL_SORT event type.
@endEventTable
This event macro corresponds to @c wxEVT_GRID_COL_SORT event type.
@endEventTable
*/
void GetScrollPixelsPerUnit(int* xUnit, int* yUnit) const;
*/
void GetScrollPixelsPerUnit(int* xUnit, int* yUnit) const;
/**
Get the position at which the visible portion of the window starts.
/**
Get the position at which the visible portion of the window starts.
@param y
Receives the first visible y position in scroll units.
@param y
Receives the first visible y position in scroll units.
- @remarks If either of the scrollbars is not at the home position, x
- and/or y will be greater than zero. Combined with
- wxWindow::GetClientSize(), the application can use this
- function to efficiently redraw only the visible portion
- of the window. The positions are in logical scroll
- units, not pixels, so to convert to pixels you will
- have to multiply by the number of pixels per scroll
- increment.
+ @remarks
+ If either of the scrollbars is not at the home position, @a x
+ and/or @a y will be greater than zero.
+ Combined with wxWindow::GetClientSize(), the application can use this
+ function to efficiently redraw only the visible portion of the window.
+ The positions are in logical scroll units, not pixels, so to convert
+ to pixels you will have to multiply by the number of pixels per scroll
+ increment.
@see SetScrollbars(), Scroll()
*/
void GetViewStart(int* x, int* y) const;
@see SetScrollbars(), Scroll()
*/
void GetViewStart(int* x, int* y) const;
+
+ /**
+ This is a simple overload of GetViewStart(int*,int*); see that function
+ for more info.
+ */
wxPoint GetViewStart() const;
wxPoint GetViewStart() const;
/**
Gets the size in device units of the scrollable window area (as
/**
Gets the size in device units of the scrollable window area (as
*/
void PrepareDC(wxDC& dc);
*/
void PrepareDC(wxDC& dc);
/**
Scrolls a window so the view start is at the given point.
/**
Scrolls a window so the view start is at the given point.
@remarks The positions are in scroll units, not pixels, so to convert to
pixels you will have to multiply by the number of
pixels per scroll increment. If either parameter is
@remarks The positions are in scroll units, not pixels, so to convert to
pixels you will have to multiply by the number of
pixels per scroll increment. If either parameter is
- wxDefaultCoord (-1), that position will be ignored (no change
+ ::wxDefaultCoord (-1), that position will be ignored (no change
in that direction).
@see SetScrollbars(), GetScrollPixelsPerUnit()
*/
void Scroll(int x, int y);
in that direction).
@see SetScrollbars(), GetScrollPixelsPerUnit()
*/
void Scroll(int x, int y);
+
+ /**
+ This is an overload of Scroll(int,int); see that function for more info.
+ */
void Scroll(const wxPoint& pt);
void Scroll(const wxPoint& pt);
/**
Set the horizontal and vertical scrolling increment only. See the
/**
Set the horizontal and vertical scrolling increment only. See the
(or toggle or ...) any items which should be disabled in the menu
before showing it.
(or toggle or ...) any items which should be disabled in the menu
before showing it.
- @param menu
- The menu to show.
- @param pos
- The position at which to show the menu in client coordinates.
+ The parameter @a menu is the menu to show.
+ The parameter @a pos (or the parameters @a x and @a y) is the
+ position at which to show the menu in client coordinates.
@return
The selected menu item id or @c wxID_NONE if none selected or an
@return
The selected menu item id or @c wxID_NONE if none selected or an