|
|
 | | From: | Mark.I | | Subject: | BeforeCellPaint 2.5 | | Date: | Mon, 20 Dec 2004 18:06:46 -0000 |
|
|
 | Some of the problems with the beforeCellPaint are, IMO, caused by the lack of row properties for the grid object.
There isn' t a lot one can do with a row in a grid other than setting a value to the rowselect and multiselect.
One of the problems I have discovered is that when rowselect is set to true and forntstrikeout -in the beforecellpaint function- is also set to true for each column, the line' s length is the length of the field rather than the length of column. There' s an empty gap in the lines etween each column.
It would be very useful if such properties as fontstrikeout, colours, etc., could be set for the entire row when rowselect is set to true. In the same way as rowselecthighlight property.
A grid' s child object for rowselect would fill the gab between the rowset and the grid columns.
Mark.i
-- ======================================= www.hicomsoftware.co.uk 91 Roman Hackle Avenue Cheltenham Gloucestershire GL50 4ST
Tele: (01242) 245893 Fax: (01242) 582284
|
|
 | | From: | Marty Kay | | Subject: | Re: BeforeCellPaint 2.5 | | Date: | Mon, 3 Jan 2005 12:00:58 -0500 |
|
|
 | Hi Mark,
> Some of the problems with the beforeCellPaint are, IMO, caused by the lack > of row properties for the grid object. > > There isn' t a lot one can do with a row in a grid other than setting a > value to the rowselect and multiselect. > > One of the problems I have discovered is that when rowselect is set to true > and forntstrikeout -in the beforecellpaint function- is also set to true for > each column, the line' s length is the length of the field rather than the > length of column. There' s an empty gap in the lines etween each column.
It sounds like what you want is to show a line through an entire row when rowselect is true. Correct?
> It would be very useful if such properties as fontstrikeout, colours, etc., > could be set for the entire row when rowselect is set to true. In the same > way as rowselecthighlight property.
There is no row object currently to hook this capability on. That's why we have created beforeCellPaint and onCellPaint events.
grid.colorRowSelect currently controls the color of the entire selected row. The other grid level color properties (unless overridden) control the unselected row colors.
Is there anything else you are wishing for here that I am missing?
> A grid' s child object for rowselect would fill the gab between the rowset > and the grid columns.
So are you wishing for a row level object within the grid? Also note that the rowset class contains field objects that contain data for the current row.
- Marty Kay (dBI) -
|
|
 | | From: | Mark.I | | Subject: | Re: BeforeCellPaint 2.5 | | Date: | Mon, 3 Jan 2005 21:56:53 -0000 |
|
|
 | > > It sounds like what you want is to show a line through an entire row when > rowselect is true. > Correct?
Yes.
> > > It would be very useful if such properties as fontstrikeout, colours, > etc., > > could be set for the entire row when rowselect is set to true. In the same > > way as rowselecthighlight property. > > There is no row object currently to hook this capability on. > That's why we have created beforeCellPaint and onCellPaint events. > > grid.colorRowSelect currently controls the color of the entire selected row.
That is the only usefulness for this property.
> The other grid level color properties (unless overridden) control the > unselected row colors.
Limited use.
> > Is there anything else you are wishing for here that I am missing?
Basically a row object would fulfill most users' needs. I would've thought.
> > > A grid' s child object for rowselect would fill the gab between the rowset > > and the grid columns. > > So are you wishing for a row level object within the grid?
Exactly.
> Also note that the rowset class contains field objects that contain data for > the current row. >
My understanding of a rowset (data container) is that it contains one or more rows (record structure) containing columns (data fields), and has no bearing on graphical visual interface, such as font colors, size, etc. Therefore a row object at a grid level rather than a rowset' s level would be a useful approach for row object implementation.
Another limitation in the grid control is that you un-select a row (shift+mouse-click -which is a real pain) you cannot identify the row that has been un-selected. Grid' s row-indicator is old stuff, which we don' t use.
Thanks for replying. After 13 days I thought perhaps you enjoy your christmas and new year festivities longer than we do in the UK.
Happy new year. Mark.i
|
|
|