Tab Controls are unique to graphical environments, but can be required in cross-platform applications. In the TUI environment, the user interface is not driven by 'tabs' but by means the View menu. The tabs are not represented to the user in the display. The tabs sit behind the tab page frames. This is because of screen real estate and other factors, such as the absence of a mouse interface.
To add the View menu to drive tab controls, complete the following:
when vlAction = 'VIEWCUSTOMER'
plSetTabControl(1)
plTabPage(vlAction)
when vlAction = 'VIEWPRODUCT'
plSetTabControl(2)
plTabPage(vlAction)
The Example Application has been enhanced to use Tab Controls (MS-Windows only).