Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Scroll thumbs don't appear


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Jan 15, 2018 2:03 AM Last Post By: Asger Joergensen Threads: [ Previous | Next ]
Keith Dopson

Posts: 63
Registered: 3/16/00
Scroll thumbs don't appear  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 2, 2018 1:23 PM
I have a TImage atop TScrollBox, aligned top. I load an image like this:

if (ExtractFileExt(OpenDialog1->FileName).LowerCase() ==".jpg")
{
TJPEGImage *myJPG=new TJPEGImage;
myJPG->LoadFromFile(OpenDialog1->FileName);
Image1->Picture->Assign(myJPG);
delete myJPG;
}
else
{
Image1->Picture->LoadFromFile(OpenDialog1->FileName);
}

The jpeg is clearly much larger than the TImage, yet the scrollbars for the ScrollBox do not appear.

The ScrollBox both ButtonSize are sized 20, and Visible is true, the AutoScroll is true.

Why do the ScrollBox scrollbar thumbs not appear?

Asger Joergensen

Posts: 370
Registered: 11/18/08
Re: Scroll thumbs don't appear  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 15, 2018 2:03 AM   in response to: Keith Dopson in response to: Keith Dopson
Hi Keith

A late reply.

It is important that the Align on the image is set to alNone
and that the AutoSize is set to true.

p.s. you can use:
Image1->Picture->LoadFromFile(OpenDialog1->FileName);
in both cases.

Best regards
Asger
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02