Recent

Author Topic: THeaderControl  (Read 3651 times)

StanRogo

  • New member
  • *
  • Posts: 7
THeaderControl
« on: January 06, 2012, 10:15:01 am »
I am trying to use a Header with 5 different items. When I click on an item 4 panels that I have made should be visible:=false and the relvant one should become visible.

I have found an onclick function but this relates to the whole header. I have no idea how to make it so that when I click an individual item in the header the above specified happens. Please help! :(

Ocye

  • Hero Member
  • *****
  • Posts: 518
    • Scrabble3D
Re: THeaderControl
« Reply #1 on: January 06, 2012, 11:12:00 am »
My header control [1] does not have a simple OnClick-event but OnSelectionClick including the appropriate section as parameter. I guess you don't talk about "header controls" - what else?

[1] http://lazarus-ccr.sourceforge.net/docs/lcl/comctrls/theadercontrol.html
Lazarus 1.7 (SVN) FPC 3.0.0

 

TinyPortal © 2005-2018