Recent

Author Topic: Can't seem to change height of tabsheet at design or run time. Why?  (Read 648 times)

Username

  • New Member
  • *
  • Posts: 30
I have a page control with 5 tabSheets. All the TabSheet heights are stuck at 791 and width at 291. Height is taller than the pageControl and extends past bottom of form. I can not find any way to change the height or width. Changing in Object Inspector is not possible. Goes back to 791 as soon as I hit enter or click off the cell.

Hope someone can tell me why. Image shows component tree. TIA for any help.

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2269
  • Fifty shades of code.
    • Delphi & FreePascal
Re: Can't seem to change height of tabsheet at design or run time. Why?
« Reply #1 on: January 18, 2023, 03:39:20 am »
Quote
Can't seem to change height of tabsheet at design or run time. Why?
Because Height and Width in that case tell you the client height and width as your visual playground.
A PageControl is the owner, TabSheets are the children, each child fit into the PageControl, so when you want a TabSheet smaller or bigger, make the PageControl smaller or bigger.
All the TabSheet heights are stuck at 791 and width at 291.
Do resize the PageControl and recheck values.

I hope this gives you a small hint.
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

Username

  • New Member
  • *
  • Posts: 30
Re: Can't seem to change height of tabsheet at design or run time. Why?
« Reply #2 on: January 18, 2023, 04:05:38 am »
Thanks KodeZwerg.
Works fine now. TabSheet size appears to be PageControl height less tab height. Appreciate the help.

 

TinyPortal © 2005-2018