Page 1 of 1

how to display a button in grid ?

Posted: Wed May 14, 2008 11:07 am
by hilda
hi,

In my project, I need to display a button in last column the grid.I am using wxWindows2.4.2.
hw can i achieve this?

Posted: Wed May 14, 2008 4:08 pm
by Qasim
I think "Grid sample" is the one you should look into.
Hope that helps.

Posted: Wed May 14, 2008 4:21 pm
by lester
You can use Renderer for draw cell as button and catch mouse events, that's not simple, but it work,

my example of wxGrid that don't look as wxGrid:

Posted: Thu May 15, 2008 3:38 am
by hilda
can anyone giv me some code snipets?