wxRuby Documentation Home

Wx::GridRangeSelectEvent

Derived from

NotifyEvent

CommandEvent

Event

Object

Event handling

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

evt_grid_range_select() { | event | ... } The user selected a group of contiguous cells. Processes a EVT_GRID_RANGE_SELECT.
evt_grid_cmd_range_select() { | event | ... } The user selected a group of contiguous cells; variant taking a window identifier. Processes a EVT_GRID_RANGE_SELECT.

Methods

GridRangeSelectEvent.new

GridRangeSelectEvent.new(Integer id,  EventType type, 
                         Object obj, 
                         Array topLeft, 
                         Array bottomRight, 
                         Boolean sel = true, 
                         Boolean control = false, 
                         Boolean shift = false, 
                         Boolean alt = false, 
                         Boolean meta = false)

GridRangeSelectEvent#alt_down

Boolean alt_down()

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

GridRangeSelectEvent#control_down

Boolean control_down()

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

GridRangeSelectEvent#get_bottom_right_coords

Array get_bottom_right_coords()

Top left corner of the rectangular area that was (de)selected, returned as an row, column pair.

GridRangeSelectEvent#get_bottom_row

Integer get_bottom_row()

Bottom row of the rectangular area that was (de)selected.

GridRangeSelectEvent#get_left_col

Integer get_left_col()

Left column of the rectangular area that was (de)selected.

GridRangeSelectEvent#get_right_col

Integer get_right_col()

Right column of the rectangular area that was (de)selected.

GridRangeSelectEvent#get_top_left_coords

Array get_top_left_coords()

Top left corner of the rectangular area that was (de)selected, returned as a row, column pair.

GridRangeSelectEvent#get_top_row

Integer get_top_row()

Top row of the rectangular area that was (de)selected.

GridRangeSelectEvent#meta_down

Boolean meta_down()

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

GridRangeSelectEvent#selecting

Boolean selecting()

Returns true if the area was selected, false otherwise.

GridRangeSelectEvent#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 Thu May 01 00:50:38 +0100 2008]