I want to restrict users (based on special condition) to open a tab or not in a page control. ie, the user can click on the tab but it will not be displayed to him. Instead, a message will show to him that "he don't have the access right to see such tab
".
On what event I should write the checking code, and what tab property (of TPageControl
component) will allow/block user to enter such tab?
You can show tab and effectively disable changing in OnChanging event of TPageControl. All you need to do is set AllowChange var to False.