thanks to our godfather Robin, I finally got two grids on
one notebook page running. There is a revised script attached,
which implements such a biest, where you can jump between them
though Alt-Up and Alt-Down. The problem is: it's unpossible
for a user to see, which grid has the current focus.
The idea is to draw a small border around the current activated
grid (similar to Netescape Mail window). But what is the easiest
way to get there?
thanks to our godfather Robin, I finally got two grids on
one notebook page running. There is a revised script attached,
which implements such a biest, where you can jump between them
though Alt-Up and Alt-Down. The problem is: it's unpossible
for a user to see, which grid has the current focus.
The idea is to draw a small border around the current activated
grid (similar to Netescape Mail window). But what is the easiest
way to get there?
I havn't used Netscape mail in ages... If you are wanting to put the border
around the whole wxGrid window then one simple way you can do that is to put
another window under the grid, make the grid a child of that window, and
give it a EVT_SIZE handler like this::
and then setting the background colour of this window will effectivly draw a
border around the grid.
Another possibility you may want to look at is to change the colour of the
cell highlight. As you've discovered you can't (yet) remove the highlight,
but you can certainly make one stand out a lot more than the other one. For
example::
def MakeActive(self, active):
if active:
self.SetCellHighlightColour(wxRED)
else:
self.SetCellHighlightColour(self.GetGridLineColour())