Tim Burgess
2014-07-15 11:34:39 UTC
Hi,
I'm porting a QT application to WX, so I'm obviously encountering the odd
class that has no equivalent. I've come across a grid where each grid
element contains a button.
I can sort of reproduce this using nested sizers to get the appropriate
layout (I looked at wxGrid but it didn't seem to support use of a button for
its cell contents and, anyhow, it's poor in terms of accessibility), but
referencing the buttons poses a question, given that the entire grid
contains 100 cells:
Do I need to define 100 separate ID values for the buttons - using wxID_ANY
is obviously convenient, but then doesn't allow me to determine which was
pressed when my event handler is triggered. Am I missing a trick here?
Best wishes.
Tim Burgess
I'm porting a QT application to WX, so I'm obviously encountering the odd
class that has no equivalent. I've come across a grid where each grid
element contains a button.
I can sort of reproduce this using nested sizers to get the appropriate
layout (I looked at wxGrid but it didn't seem to support use of a button for
its cell contents and, anyhow, it's poor in terms of accessibility), but
referencing the buttons poses a question, given that the entire grid
contains 100 cells:
Do I need to define 100 separate ID values for the buttons - using wxID_ANY
is obviously convenient, but then doesn't allow me to determine which was
pressed when my event handler is triggered. Am I missing a trick here?
Best wishes.
Tim Burgess
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users