Solved

Delphi DBGrid missing scrollbars

Posted on 2009-05-19
1
1,532 Views
Last Modified: 2013-11-23
I have a list of contact records displayed in a dbgrid.  Works fine on my system, but the client is reporting random problems on multiple machines with the vertical scrollbars not appearing, so they have to use the keyboard arrows to scroll up and down.  

The contacts are detail records. If the user scrolls through the master records, the scroll bars on the contacts grid appears on every other master record, irrespective of the number of records being more than can be displayed.

Comctl32.dll is usually the first point of suspicion, I am using 5.82.2900.2982, the client is using 5.82.2900.5512. I don't seem to be able to find what version I should be running.  All machines running XP Professional.
0
Comment
Question by:rogerfg7
1 Comment
 
LVL 37

Accepted Solution

by:
Geert Gruwez earned 125 total points
ID: 24421404
are you switching the scrollbars on and off by code ?

see this thread:
https://forums.codegear.com/thread.jspa?threadID=16348

Even though that bug report is marked as "Status: Closed" and
"Resolution: Fixed", the bug is still present in Delphi 2009 with
updates 1 and 2, which is what I'm using. I posted my experience on the
web page you suggested.

The workaround did the trick, however:
myGrid.Align := alNone;
myGrid.Height := myGrid.Height - 5; {kick in the shins}
myGrid.Align := (restore original align)

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Filemaker 14 vs Delphi Embarcadero 7 186
Memory leak using records in a TVirtualStringTree 11 109
delphi prevent click fast 2 189
Delphi 2 47
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now