Solved

Delphi DBGrid missing scrollbars

Posted on 2009-05-19
1
1,508 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 36

Accepted Solution

by:
Geert Gruwez earned 125 total points
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

772 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

13 Experts available now in Live!

Get 1:1 Help Now