Recent

Author Topic: Set caption of TKolTabcontrol.pages[n] at runtime?  (Read 3095 times)

JohnvdWaeter

  • Full Member
  • ***
  • Posts: 168
    • http://www.jvdw.nl
Set caption of TKolTabcontrol.pages[n] at runtime?
« on: November 28, 2008, 10:50:42 pm »
Hi Yuri,

How to set the caption of a tab of a TKolTabControl at runtime?

TabControl1_tab0.caption:='foo' gives AV.

TabControl1.Pages[0].Caption:='bar' does not seem to have an effect

TabControl1.Pages[0].text:='bar' does not seem to have an effect either...

?

tia!

John

JohnvdWaeter

  • Full Member
  • ***
  • Posts: 168
    • http://www.jvdw.nl
RE: Set caption of TKolTabcontrol.pages[n] at runtime?
« Reply #1 on: December 11, 2008, 10:03:51 am »
Yes, right, I've asked that before....

TabControl1.TC_Pages[n].Caption....

sometimes its hard to see and rememder the difference between design-time properties and runtime-properties....