If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
hilda
Knows some wx things
Posts: 49 Joined: Tue Apr 01, 2008 6:22 am
Location: India
Post
by hilda » Wed May 14, 2008 11:07 am
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?
Qasim
Knows some wx things
Posts: 29 Joined: Wed May 23, 2007 3:41 pm
Location: London
Post
by Qasim » Wed May 14, 2008 4:08 pm
I think "Grid sample" is the one you should look into.
Hope that helps.
Who doubts nothing, Knows nothing
lester
Filthy Rich wx Solver
Posts: 211 Joined: Sat Sep 02, 2006 7:24 pm
Location: Ukraine
Post
by lester » Wed May 14, 2008 4:21 pm
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:
Attachments
2.PNG (4.73 KiB) Viewed 1458 times
hilda
Knows some wx things
Posts: 49 Joined: Tue Apr 01, 2008 6:22 am
Location: India
Post
by hilda » Thu May 15, 2008 3:38 am
can anyone giv me some code snipets?