wxButton in a wxGrid cell?
A.M.
cuberootva at gmail.com
Fri Sep 1 05:58:56 PDT 2006
Hi all,
I am basically trying to achieve the look and feel of a regular
wxButton but instead of placing it on a panel, dialog, etc...I would
like to have it in a cell of the grid. I've looked into both renderers
and editors and it seems like I wouldn't even need an editor since
there is nothing to edit, but then the renderer, at first glance,
doesn't allow wx controls to be "plugged in" since I must handle the
drawing of the control myself.
This is fine, I've looked at examples and I feel confident that I can
do it, however, one major goal of this is to keep it acting like a
real button including the hover and toggle effects that occur with
normal mouse events. How to provide that functionality isn't readily
apparent.
So, my question is how can I accomplish this? Or at least fake it :)
Currently I am using an image to simulate a button without any mouse
events so it doesn't change but that is way to static and it can't be
controlled at runtime unless you have all images needed at your
disposal so I really wouldn't like to go that route.
Thanks!
More information about the wxpython-users
mailing list