In my app i had binded wxGrid with the EVT_GRID_COL_SIZE and
EVT_GRID_ROW_SIZE events.
Is there is a way to calculate the follwoing pseudo code
def Handler_for EVT_GRID_COL_SIZE(evt):
1. calculate the size of grid in the handler before the left
key of mouse down
2. calculate the size of the grid in the handler after the
left key of mouse up.
The row/col SIZE events are notifications that are sent after the resize has already happened. You can probably to do something like track the row/col sizes and then use that value in the event handlers. Or you can intercept the low-level mouse events for each of the component windows and deal with the sizes there.
···
On 1/13/11 7:03 AM, mukul wrote:
Hi All,
My problem scenario is as follow.
In my app i had binded wxGrid with the EVT_GRID_COL_SIZE and
EVT_GRID_ROW_SIZE events.
Is there is a way to calculate the follwoing pseudo code
def Handler_for EVT_GRID_COL_SIZE(evt):
1. calculate the size of grid in the handler before the left
key of mouse down
2. calculate the size of the grid in the handler after the
left key of mouse up.