Recent

Author Topic: Hide tabs on TPageControl?  (Read 7645 times)

Harrison

  • New Member
  • *
  • Posts: 16
Hide tabs on TPageControl?
« on: June 16, 2010, 02:57:49 am »
I'm wondering if it's possible to hide and show tabs on a PageControl object?

For example, I have four tabs. I only want 2 of those tabs to show, unless a certain object is checked.

Is this possible?

Ocye

  • Hero Member
  • *****
  • Posts: 518
    • Scrabble3D
Re: Hide tabs on TPageControl?
« Reply #1 on: June 16, 2010, 03:06:38 am »
Simply use the property TabVisible for each TabSheet.
Lazarus 1.7 (SVN) FPC 3.0.0

Harrison

  • New Member
  • *
  • Posts: 16
Re: Hide tabs on TPageControl?
« Reply #2 on: June 16, 2010, 03:22:20 am »
I somehow completely overlooked that when I checked. Thanks a lot.

 

TinyPortal © 2005-2018