Jump to content

TUnimTabPanel+.ActivePage:=XXX Problem


asapltda

Recommended Posts

I have a TUnimTabPanel, with two (2) TUnimTabSheet, I have a button on the TUnimTabSheet1, which performs a process and by code I select the TUnimTabSheet2, using UnimTabPanel1.ActivePage: = TUnimTabSheet2, it works fine.
But if I go back to TUnimTabSheet1 and press the button again, the process is executed but TUnimTabSheet2 is not shown, what can I do to solve this.
thanks for your help

 

Link to comment
Share on other sites

The problem appears when: the person selects a TUnimTabSheet by pressing the header of the TUnimTabSheet, the button on the selected sheet that uses PageControl1.ActivePage: = tbsNoCode is disabled.
----
The temporary solution is to place a Change event in TUnimTabPanel and it is not necessary to place code you must place a comment for the event to remain,, I think the problem is that TUnimTabPanel is not updated when using the tabsheet header to navigate.

Mainm.dfm

Mainm.pas

TUnimTabPanelPry.res

Link to comment
Share on other sites

×
×
  • Create New...