DBGrid vertical scrollbar not always showing - this looks REALLY bad 
Author Message
 DBGrid vertical scrollbar not always showing - this looks REALLY bad

I'm converting an app from D2 to D3 and the Vertical Scrollbars on DBGrid
act differently than before -- and it has screwed up the visual appearance
of some of my grids.

In D2, the vertical scrollbar was always displayed in a DBGrid, even if not
filled to display capacity. This seems like the proper behavior since it
allows one to set the column widths for display taking into account the
vert scrollbar.

Now, in D3.01, some grids have no vertical scrollbar when not filled to
display capacity, leaving an UGLY blank column the width of the missing
scrollbar. This seems to only be occurring when the dataset is a detail in
a Master-Detail relationship. Not sure what that has to do with it, but I'm
trying to sort this problem out.

I've also noticed that in D3 the vert scrollbar button now positions itself
more accurately in relation to the position of the cursor in the dataset.
The only change in behavior I consider to be a problem is the
non-persistent vertical scrollbar -- it looks REALLY bad to have a blank
column where the scrollbar should be.

Any help would be greatly appreciated!

--
Jeff Hamblin

===
To email me, take the REMOVE out of my email address



Wed, 18 Jun 1902 08:00:00 GMT
 DBGrid vertical scrollbar not always showing - this looks REALLY bad

You might try comparing the source code of the Delphi2 version with the
source code of the Delphi3 version (source code for the complete VCL
components comes with the Developer's, Professional, or Client/Server
versions) to see how the Grid controls are implemented.  Good luck.
Gene



Quote:
> After more testing I have isolated the problem, and it is very simple to
> reproduce. The DBGrid & DBCtrlGrid in D2 always have a vertical
scrollbar,
> even if the dataset is empty. The DBGrid & DBCtrlGrid in D3 only have a
> vertical scrollbar if there are 2 or more records in the dataset. This is
> with paradox tables, I don't know if this applies to other db formats.

> I am using grids extensively in my application, and now it looks like
shit.
> Am I going to have to go back to D2???

> I think this is a BUG in D3, but I would love for someone to tell me I'm
an
> idiot and overlooking something very simple!!

> I'm using D3.02 and BDE4.01
> --
> Jeff Hamblin

> ===
> To email me, take the REMOVE out of my email address



> > I'm converting an app from D2 to D3 and the Vertical Scrollbars on
DBGrid
> > act differently than before -- and it has screwed up the visual
> appearance
> > of some of my grids.

> > In D2, the vertical scrollbar was always displayed in a DBGrid, even if
> not
> > filled to display capacity. This seems like the proper behavior since
it
> > allows one to set the column widths for display taking into account the
> > vert scrollbar.

> > Now, in D3.01, some grids have no vertical scrollbar when not filled to
> > display capacity, leaving an UGLY blank column the width of the missing
> > scrollbar. This seems to only be occurring when the dataset is a detail
> in
> > a Master-Detail relationship. Not sure what that has to do with it, but
> I'm
> > trying to sort this problem out.

> > I've also noticed that in D3 the vert scrollbar button now positions
> itself
> > more accurately in relation to the position of the cursor in the
dataset.
> > The only change in behavior I consider to be a problem is the
> > non-persistent vertical scrollbar -- it looks REALLY bad to have a
blank
> > column where the scrollbar should be.

> > Any help would be greatly appreciated!



Wed, 18 Jun 1902 08:00:00 GMT
 
 [ 2 post ] 

 Relevant Pages 

1. DBGrid with vertical scrollbar not scrolling the dataset???

2. Horizontal and vertical scrollbar with a header that is always visible

3. DBGrid Not showing scrollbar when on PictureBox or SS Tabbed Dialog Box

4. I want to remove vertical scrollbar from DBGrid

5. How to remove vertical scrollbar from DBGrid?

6. Vertical scrollbar behavior in DBGrid

7. DBGrid: better vertical scrollbar

8. DBGrid: Vertical ScrollBar has only 3 positions

9. scrollbar in TDBLookupCombobox (was: DBgrid: scrollbar bug?)

10. Using several listboxes with 1 vertical scrollbar (result of query)

11. Bad day, or really not possible?

12. listbox without vertical scrollbar ?


 
Powered by phpBB® Forum Software