Recent

Author Topic: LAWM:Panel with scroll?  (Read 4441 times)

amartitegui

  • Jr. Member
  • **
  • Posts: 84
LAWM:Panel with scroll?
« on: December 20, 2017, 08:37:38 pm »
Hi guys.
Im trying to split a form in 3 panels. Each below.
The las one which should contain more data than rest, i would like to be higher so would go further than parent (form) bottom limit.
Question is...if i put a few controls in it and i set panels heigh to wrap contents... and its bottom limit goes below of parent limits automatically gets scroll behavior? Or do i have to do something or force a property somewhere.
Dont have a computer to test it ant hand, but i have to solve it somehow in the morning. So if anyone knows... thanks
« Last Edit: December 21, 2017, 07:39:35 am by amartitegui »

Thaddy

  • Hero Member
  • *****
  • Posts: 14159
  • Probably until I exterminate Putin.
Re: Panel with scroll?
« Reply #1 on: December 20, 2017, 08:44:04 pm »
TScrollBox?
Specialize a type, not a var.

molly

  • Hero Member
  • *****
  • Posts: 2330
Re: Panel with scroll?
« Reply #2 on: December 20, 2017, 08:44:14 pm »
TPanel does not scroll contents by default. You should use a TScollBox instead. You can place that on your panel if wanted or replace the panel. See also askingbox.

edit: Beaten by 10 secs by Thaddy  ;D

amartitegui

  • Jr. Member
  • **
  • Posts: 84
Re: Panel with scroll?
« Reply #3 on: December 20, 2017, 08:46:49 pm »
Thanks guys.

 ;)

jmpessoa

  • Hero Member
  • *****
  • Posts: 2296
Re: Panel with scroll?
« Reply #4 on: December 20, 2017, 09:20:44 pm »

Quote
i set panels heigh to wrap contents...

LAMW???  if yes,  please re-write your subject to  "LAMW: Panel with scroll?"

about:
Quote
....and its bottom limit goes below of parent limits automatically gets scroll behavior?

If not, you can try put a jScrollView under your jPanel....
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

molly

  • Hero Member
  • *****
  • Posts: 2330
Re: Panel with scroll?
« Reply #5 on: December 20, 2017, 09:24:09 pm »
Oops. I missed that this question was posted in android thread.

In that case, i have no idea what components are available by default.

Please follow jmpessoa's advise.

Thaddy

  • Hero Member
  • *****
  • Posts: 14159
  • Probably until I exterminate Putin.
Re: Panel with scroll?
« Reply #6 on: December 20, 2017, 09:25:12 pm »
Oops, I missed that too...
Specialize a type, not a var.

amartitegui

  • Jr. Member
  • **
  • Posts: 84
Re: LAWM:Panel with scroll?
« Reply #7 on: December 21, 2017, 07:41:59 am »
Yes, LAMW sorry should have think about.

amartitegui

  • Jr. Member
  • **
  • Posts: 84
Re: LAWM:Panel with scroll?
« Reply #8 on: December 21, 2017, 09:13:56 am »
Quote
If not, you can try put a jScrollView under your jPanel....

Works and also jhorizontalscroll... thanks man.

amartitegui

  • Jr. Member
  • **
  • Posts: 84
Re: LAWM:Panel with scroll?
« Reply #9 on: December 21, 2017, 07:42:02 pm »
Jscrollview only has vertical scroll, am i right?


jmpessoa

  • Hero Member
  • *****
  • Posts: 2296
Re: LAWM:Panel with scroll?
« Reply #10 on: December 21, 2017, 11:16:18 pm »

Quote
Jscrollview only has vertical scroll, am i right?

[At the moment] yes!   
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

 

TinyPortal © 2005-2018