Tab Control: Dynamically Changing the Title of Each Page

0 Likes

This article descries how to change at runtime the title shown for each page on a Tab.

Problem:

Is there a way to dynamically change the title of each page defined as part of a Tab?

Resolution:

The solution is to reset the Tab and then add the new titles to be shown. Not resetting the Tab will just add pages and not rename the existing pages. Below is sample code based on a Tab called Screen1-Ta-1:


modify Screen1-Ta-1, reset-TABs 1
modify Screen1-Ta-1, TAB-TO-add ("test1" , "test2")

After this, the two pages on the Tab will have the titles changed to “test1” and “test2” with all their elements attached correctly.

Incident Number: 99-043554

Old KB# 14351
Comment List
Related
Recommended