Recent

Author Topic: TabControl visual bug when setting its height  (Read 1432 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
TabControl visual bug when setting its height
« on: July 31, 2020, 07:07:40 pm »
CudaText plugins need to set custom height of Tabcontrol to make it height like Button's height. Ie hide "panel part". Show only "buttons part".
So code does
  TabControl1.Height := Button1.Height //some auto-sized button

This makes TOO SMALL height of tabcontrol! So buttons are clipped.
only 4-5 pixels gray band is shown.
Attaching demo. macOS 10.11. press button on demo - tabcontrol will clip.

fpc 3.3. laz r63658.
« Last Edit: July 31, 2020, 07:10:16 pm by Alextp »

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: TabControl visual bug when setting its height
« Reply #1 on: August 01, 2020, 07:00:07 am »
Of more concern is the shadow panel shown in the attached pic.

But, yes, I see what you mean about the tabs being clipped.

 

TinyPortal © 2005-2018