wxRuby Documentation Home

# Wx::GridSizeEvent

This event class contains information about a row/column resize event.

## Derived from

NotifyEvent

CommandEvent

Event

Object

## Event handling

The event handler for the following functions takes a
GridSizeEvent parameter.
The …CMD… variants also take a window identifier.

evt_grid_col_size() { | event | … } | The user resized a column by dragging it. Processes a EVT_GRID_COL_SIZE.
evt_grid_row_size() { | event | … } | The user resized a row by dragging it. Processes a EVT_GRID_ROW_SIZE.
evt_grid_cmd_col_size() { | event | … } | The user resized a column by dragging it; variant taking a window identifier. Processes a EVT_GRID_COL_SIZE.
evt_grid_cmd_row_size() { | event | … } | The user resized a row by dragging it; variant taking a window identifier. Processes a EVT_GRID_ROW_SIZE.

## Methods

- GridSizeEvent.new
- GridSizeEvent#alt_down
- GridSizeEvent#control_down
- GridSizeEvent#get_position
- GridSizeEvent#get_row_or_col
- GridSizeEvent#meta_down
- GridSizeEvent#shift_down

### GridSizeEvent.new

GridSizeEvent.new(%(arg-type)Integer% id, EventType type, Object obj, Integer rowOrCol = -1, Integer x = -1, Integer y = -1, Boolean control = false, Boolean shift = false, Boolean alt = false, Boolean meta = false)

### GridSizeEvent#alt_down

Boolean alt_down()

Returns true if the Alt key was down at the time of the event.

### GridSizeEvent#control_down

Boolean control_down()

Returns true if the Control key was down at the time of the event.

### GridSizeEvent#get_position

Point get_position()

Position in pixels at which the event occurred.

### GridSizeEvent#get_row_or_col

Integer get_row_or_col()

Row or column at that was resized.

### GridSizeEvent#meta_down

Boolean meta_down()

Returns true if the Meta key was down at the time of the event.

### GridSizeEvent#shift_down

Boolean shift_down()

Returns true if the Shift key was down at the time of the event.

[This page automatically generated from the Textile source at 2023-06-09 00:45:35 +0000]