Problem with wxGrid - Text edition

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
jcvignoud
Knows some wx things
Knows some wx things
Posts: 28
Joined: Wed Apr 20, 2005 4:50 pm

Problem with wxGrid - Text edition

Post by jcvignoud »

Hi everyone,

I have a problem with wxGrid. I want to select the current line (I want it is colored).

I grab the left click event and after I select the grid but after that, it's becomming impossible to edit the case.

If anybody has a solution to do those two things, maybe I don't follow the right way.

Thanks,

JC
aggro
In need of some credit
In need of some credit
Posts: 8
Joined: Tue Jun 07, 2005 2:08 pm

Re: Problem with wxGrid - Text edition

Post by aggro »

jcvignoud wrote:I grab the left click event and after I select the grid but after that, it's becomming impossible to edit the case.
If you grab it, it means that the normal target for that event won't catch it. So if you just grab an event and do nothing, nothing will happen, even something used to happen before.

void YourFrame::OnGridCellLeftClick( wxGridEvent &event )
{
// Your code here

// This will allow the event to travel further for other components to catch it
event.Skip( true );
}
Post Reply