[wxPython] wxGrid

Thanks,
but now I have other questions:

It is posible to change the width of gridlines??

It is posible to change the colour of the lines and
the background for selected cells???

The selected cells has a doble width border, but this is the same
colour of the normal grid, so if a set gridlines colour to white
then the selected cells is not visible.

Bye ...........Cristian

···

-----Original Message-----
From: Robin Dunn [SMTP:robin@alldunn.com]
Sent: Thursday, May 04, 2000 12:41 PM
To: wxpython-users@wxwindows.org
Subject: Re: [wxPython] wxGrid

>
> Hi...
> I want to emulate some behaviors of wxListCtrl using the
> new wxGrid. For example :
> When I select a cell in a row I want to change the color of the
> a whole row. Any ideas ???
> (I tried to use SetRowAttr dinamically, but I got a windows error
> on wx21_15.dll)
>

Call theGrid.SetSelectionMode(wxGrid.wxGridSelectRows) Then it will be
done
automatically.

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxpython.org Java give you jitters?
http://wxpros.com Relax with wxPython!

_______________________________________________
wxPython-users mailing list wxPython-users@wxwindows.org
http://wxwindows.org/mailman/listinfo/wxpython-users

It is posible to change the width of gridlines??

No.

It is posible to change the colour of the lines and
the background for selected cells???

The selected cells has a doble width border, but this is the same
colour of the normal grid, so if a set gridlines colour to white
then the selected cells is not visible.

I need to correct your terminology a bit. You are referring to the "current
cell highlight", correct? A "selected cell" is what you get when you drag
the mouse or otherwise select one or more cells.

To answer your question, it currently can't be changed, but I think it would
be an easy fix. I'll see if I can slip it in without the feature freeze
police getting too upset.

I just noticed something you might want to try instead. It looks like from
the grid code that you can call EnableGridLines(false) and then the grid
lines won't be drawn, but the cell highlight still will be.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxpython.org Java give you jitters?
http://wxpros.com Relax with wxPython!

I just noticed something you might want to try instead. It looks like

from

the grid code that you can call EnableGridLines(false) and then the grid
lines won't be drawn, but the cell highlight still will be.

I just tried it to be sure and there is a bug here. The area where the grid
lines are at is not painted and so the background shows through... Kind of
a nice effect actually, but probably not what you had in mind. :wink:

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxpython.org Java give you jitters?
http://wxpros.com Relax with wxPython!