Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 14 total
Thread TPanel Scrollbars not appearing
Thu, Dec 14 2017 8:12 AMPermanent Link

Matthew Jones

I have a TPanel on a form which is embedded on a form, and they are all set to layout so that the TPanel auto-sizes to topLeft/BottomRight. Chrome shows this is working okay - the div changes size.

But I have the TPanel scrollbars set to vertical, and they never appear, no matter how small the TPanel gets, and even though the TBasicPanels on it (set top left, consume bottom) are now hidden. The bottom TBasicPanel is set to stretch to the bottom right. And I just tried no stretch and autoheight but no difference.

A quick test app (simple form, TPanel with topLeft/StretchBR, scroll vertical, put on a TBasicPanel and TLabel) shows this is broken. Or I'm expecting something wrong.

--

Matthew Jones
Thu, Dec 14 2017 9:50 AMPermanent Link

Mark Brooks

Slikware

Avatar

I'm not sure that I 100% understand your description of the scenario, however the scrollbars won't appear unless there is something that needs to be scrolled AFAIK?
Thu, Dec 14 2017 10:30 AMPermanent Link

Matthew Jones

Mark Brooks wrote:

> however the scrollbars won't appear unless there is something that needs to be scrolled AFAIK?

The content of the TPanel is bigger than the panel, so the bars should appear. Make 500 pixels of data, resize browser to make the panel 300 pixels.

--

Matthew Jones
Fri, Dec 15 2017 3:42 AMPermanent Link

Mark Brooks

Slikware

Avatar

That's really surprising. I use this type of layout LOTS and never had an issue. Do you want to post your demo code that replicates the issue?
Fri, Dec 15 2017 3:42 AMPermanent Link

Mark Brooks

Slikware

Avatar

That's really surprising. I use this type of layout LOTS and never had an issue. Do you want to post your demo code that replicates the issue?
Fri, Dec 15 2017 4:21 AMPermanent Link

Matthew Jones

Mark Brooks wrote:

> That's really surprising. I use this type of layout LOTS and never had an issue. Do you want to post your demo code that replicates the issue?

Okay, I was about to prepare my demo, and thought that maybe it is another modification to the theme interface that needs to be moved across. I will go regenerate my TPanel interface.

--

Matthew Jones
Fri, Dec 15 2017 4:29 AMPermanent Link

Matthew Jones

Matthew Jones wrote:

> Mark Brooks wrote:
>
> > That's really surprising. I use this type of layout LOTS and never had an issue. Do you want to post your demo code that replicates the issue?
>
> Okay, I was about to prepare my demo, and thought that maybe it is another modification to the theme interface that needs to be moved across. I will go regenerate my TPanel interface.

Nope, can't see anything wrong in the TPanel related theme changes.

http://matthew-jones.com/elevate/ScrollTPanel/output/project1.html

http://matthew-jones.com/elevate/ScrollTPanel/ScrollTPanel.zip

I hope I'm just being stupid!

--

Matthew Jones
Fri, Dec 15 2017 6:13 AMPermanent Link

Mark Brooks

Slikware

Avatar

I don't think you're being stupid .......................

1) My stuff works because I tend to use TScrollPanel (or descendants) for my containers.

2) I observe the same behaviour that you're seeing with TPanel, which I think is incorrect.

3) Interestingly scrolling with the MouseWheel or via Touch in your project both work

Hrm.........
Fri, Dec 15 2017 6:52 AMPermanent Link

Matthew Jones

Mark Brooks wrote:

> 3) Interestingly scrolling with the MouseWheel or via Touch in your project both work

Indeed - and I cannot turn that off if scroll bars are on. Probably a side effect. I'm not sure I understand the code well enough to see an issue.

--

Matthew Jones
Fri, Dec 15 2017 12:54 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< I have a TPanel on a form which is embedded on a form, and they are all set to layout so that the TPanel auto-sizes to topLeft/BottomRight. Chrome shows this is working okay - the div changes size.

But I have the TPanel scrollbars set to vertical, and they never appear, no matter how small the TPanel gets, and even though the TBasicPanels on it (set top left, consume bottom) are now hidden. The bottom TBasicPanel is set to stretch to the bottom right. And I just tried no stretch and autoheight but no difference.

A quick test app (simple form, TPanel with topLeft/StretchBR, scroll vertical, put on a TBasicPanel and TLabel) shows this is broken. Or I'm expecting something wrong. >>

So, you're trying to both auto-size in the vertical direction (even partly) *and* use vertical scrollbars ?

Tim Young
Elevate Software
www.elevatesoft.com
Page 1 of 2Next Page
Jump to Page:  1 2
Image