Hello Boki,
I have a problem with the NextDBGrid:
I have a DataSet connected with a table in a database.
Depending on the selected key in the table the recordcount can't be determined.
If this is the case, the NextDBGrid gets the higher recordcount (the overall records in the table) and sets the scrollbar size accordingly.
Now if you scroll over the edge, the NextDBGrid scrolls further down and shows the last row again and again.
The NextDBGrid should stop scrolling at this point and set the scrollbar size accordingly.
The grid knows where to stop, if it reacts on the return value of TDataSet.GetRecord (grEOF).
This works in the standard component DBGrid in the VCL.
Also the scroll speed is pretty low: when you scroll down, you shortly see the selection on the current AND the next row.
Regards,
Taifun
- Bergsoft Forum
- → Viewing Profile: Topics: Taifun
Community Stats
- Group Members
- Active Posts 27
- Profile Views 12,192
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
0
Neutral
User Tools
Friends
Taifun hasn't added any friends yet.
Latest Visitors
Topics I've Started
DataSet without precise RecordCount
30 April 2008 - 06:03 PM
Major problems with SlideStyle
22 April 2008 - 03:29 PM
Hello,
we would like to use the NextGrid with SlideStyle in our next product, but currently the SlideStyle has too many problems.
The major problems lie within the drawing of the slides.
Some examples:
When you have SlideStyle with OnSlideColoring Event like this:
Now you have more rows than fits into the visible grid and the last visible row is only partially visible.
If you now click on this last row, the grid will scroll a little bit to show the whole row. Afterwards the row will have both colors (see attachment).
Next thing:
I changed the SlideSize to 60. Now the drawing is totally off ...
Some rows are higher, some smaller. The selection has not the same rect like the slide-frame (see also attachment).
Also there is no Font-Property for the SlideCaption. It's always drawn in Gray and without other styles (like bold).
Currently I changed the font-properties directly in your sourcecode (TNxCustomGridControl.DrawSlideCaption), but now the captions are truncated (see attachment).
This change doesn't affect the above descripted problems.
Last thing:
It would be really nice to have an Event for drawing custom things on the Slide (e.g. OnCustomSlideDraw).
There you could draw lines or images directly into the rect of the slide row.
These things are really important for us.
Thanks in advance. And apart from that you're components are awesome!
Regards,
Taifun
we would like to use the NextGrid with SlideStyle in our next product, but currently the SlideStyle has too many problems.
The major problems lie within the drawing of the slides.
Some examples:
When you have SlideStyle with OnSlideColoring Event like this:
CODE
procedure TFrameMain.SlideColoring(Sender: TObject; Index: Integer; var SlideColor, GridColor: TColor; SlideState: TSlideState);
begin
if Index mod 2 = 0 then
begin
SlideColor:=$00E8E8E8;
end;
end;
begin
if Index mod 2 = 0 then
begin
SlideColor:=$00E8E8E8;
end;
end;
Now you have more rows than fits into the visible grid and the last visible row is only partially visible.
If you now click on this last row, the grid will scroll a little bit to show the whole row. Afterwards the row will have both colors (see attachment).
Next thing:
I changed the SlideSize to 60. Now the drawing is totally off ...
Some rows are higher, some smaller. The selection has not the same rect like the slide-frame (see also attachment).
Also there is no Font-Property for the SlideCaption. It's always drawn in Gray and without other styles (like bold).
Currently I changed the font-properties directly in your sourcecode (TNxCustomGridControl.DrawSlideCaption), but now the captions are truncated (see attachment).
This change doesn't affect the above descripted problems.
Last thing:
It would be really nice to have an Event for drawing custom things on the Slide (e.g. OnCustomSlideDraw).
There you could draw lines or images directly into the rect of the slide row.
These things are really important for us.
Thanks in advance. And apart from that you're components are awesome!
Regards,
Taifun
- Bergsoft Forum
- → Viewing Profile: Topics: Taifun
- Privacy Policy



Find content