Recent

Author Topic: [SOLVED] TBitBtn are not updated.  (Read 190 times)

Nera

  • Full Member
  • ***
  • Posts: 103
[SOLVED] TBitBtn are not updated.
« on: July 16, 2020, 02:40:52 pm »
Hi guys,

I have an application with TBitBtn buttons on a TPageControl page. When I start the application, all 4 buttons must be updated (They should update the figure). The application starts on the page where the buttons are, but if I change the page the buttons are not updated.
How can I change the page and the buttons are updated in the background.

Tanks.
« Last Edit: July 16, 2020, 04:20:20 pm by Nera »

howardpc

  • Hero Member
  • *****
  • Posts: 3553
Re: TBitBtn are not updated.
« Reply #1 on: July 16, 2020, 03:39:28 pm »
You could use the pagecontrol's OnChange event which is triggered whenever the active tabsheet changes.

Nera

  • Full Member
  • ***
  • Posts: 103
Re: TBitBtn are not updated.
« Reply #2 on: July 16, 2020, 04:18:59 pm »
I decided to hide the tabs until the buttons are ready and loaded.

Thank you.

 

TinyPortal © 2005-2018