Recent

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

Alextp

  • Hero Member
  • *****
  • Posts: 1058
    • 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

  • Hero Member
  • *****
  • Posts: 843
  • Former Delphi 1-7 and 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.
o Lazarus v2.1.0 r63598, FPC v3.3.1 r45778, macOS 10.14.6 (with sup update), Xcode 11.3.1
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (Parallels VM)
o FPC 3.0.4, FreeBSD 12-STABLE r361007 amd64
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04 (Parallels VM)

 

TinyPortal © 2005-2018