Can you set multiple wxGrid Colum Attributes?
Petr Smilauer
petrsm at jcu.cz
Fri Jan 11 07:00:34 PST 2008
Dear Bob,
>> Right, so you are doing both operations at the same time.
>> What does your "color problem" mean?
> That the above code is not restoring the grid to the default
> background color.
Perhaps a little more detail would help. Restoring from what
state? You set a different attribute for these columns before?
using SetColAttr call too, with the same column indices, but
different Attr object?
> I went back and looked at old project of mine.
> I used the same code as above and it did restore
> the background colors when I was using wx263.
So, you say, if you link your current project with wx263, it works,
but not with wx???
> Isn't this just an
>> window refresh problem (have you tried to hide and uncover the
>> grid area)?
> I don't want it to flicker, so no I didn't try that.
Well, I mean it literally, try to force repaint while you work at it. It's
not about flicker: if you want to change colour of your cells, it has
to be redrawn, right?
> If not, I suggest you set breakpoint on one of these SetColAttr calls
>> and see whether they are replaced (down there in the
...
> The idea of using any framework is to save development time,
> not use it up. The boss expects this project to ship in his
> life time, which may exceed mine if it doesn't work. ;-)
If demands of your boss prevent to set a breapoint at your code
to fix problems, it is probably time you change job. I will not
do debugging of your code for you. Sorry.
Petr
More information about the wx-users
mailing list