Yes I think it can be done! I believe you will need to subclass "PyGridCellRenderer" or "GridCellRenderer" and add the borders in correct cells in the draw method. The draw method as (grid, attr, dc, rect, row, col, isSelected) as vars.
That said it would be an interesting programming challenge. The "dc" object has lots of tools to draw the picture. I have attempted to use bitmap pic in the backgrounds of cells and it worked. I also have attempted to have gradient backgrounds with some success. But I never have attempted to play with just the borders of a cell. Maybe you could avoid the graphic backgrounds and use a line object. Let's know if decide to attempt this. Johnf On Monday, November 29, 2010 11:03:25 am Jeff Johnson wrote: > Sorry! Meant for VFP. But while I'm at it. How about Dabo? > > > Jeff > > ------------------- > > Jeff Johnson > [email protected] > > On 11/29/2010 11:57 AM, Jeff Johnson wrote: > > I would like to have borders around four cells in a grid. > > > > For example there are five columns and 20 rows. I would like a border > > around the first four rows, second four rows, etc. and each column. > > ______________________________________________________ > > > > |_______________|_______________|_______________|______ > > | > > | > > | > > |_______________|_______________|_______________|______ > > > > Is this possible? > > _______________________________________________ > Post Messages to: [email protected] > Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users > Searchable Archives: http://leafe.com/archives/search/dabo-users > This message: > http://leafe.com/archives/byMID/[email protected] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
