Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Delphi DBGrid missing scrollbars

Posted on 2009-05-19
1
Medium Priority
?
1,718 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 38

Accepted Solution

by:
Geert Gruwez earned 500 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

604 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