Forum > LCL
Can't seem to change height of tabsheet at design or run time. Why?
(1/1)
Username:
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:
--- Quote ---Can't seem to change height of tabsheet at design or run time. Why?
--- End quote ---
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.
--- Quote from: Username on January 18, 2023, 03:06:33 am ---All the TabSheet heights are stuck at 791 and width at 291.
--- End quote ---
Do resize the PageControl and recheck values.
I hope this gives you a small hint.
Username:
Thanks KodeZwerg.
Works fine now. TabSheet size appears to be PageControl height less tab height. Appreciate the help.
Navigation
[0] Message Index