CyprUS
CyprUS

Reputation: 4239

How to detect a different tab has been clicked in A TTabControl?

I just want to know if on TTabControl click, a different tab other than the current tab has been clicked. Ideas are most welcome.

P.S. Please don't ask for code. I am only asking for ideas. Also, posting codes in my company is frowned upon. ( my prev posts were done in Secret)

Upvotes: 1

Views: 600

Answers (2)

Andriy M
Andriy M

Reputation: 77737

Apart from TTabControl.OnChange you might also want to consider TTablControl.OnChanging:

Write an OnChanging event handler to take specific action immediately before the selected tab changes.

Upvotes: 4

Sertac Akyuz
Sertac Akyuz

Reputation: 54832

from 'TTabControl.OnChange Event'

Write an OnChange event handler to take specific action immediately after the selected tab changes.

Upvotes: 10

Related Questions