Tech Tip

SB+ Tabbed Folder screen is being used more in SB+ application due to its dynamic and efficient functionality. The following technical tip will show you how to change the title and the icon on a Tabbed Folder screen giving you, as a developer, more power to control the look of your SB+ Tabbed Folder screens.

When using tabfolders, @FORM is the handle to the tabfolder rather than the window which contains it. To get the handle to the parent window use a syntax as follow:

Create a paragraph similar to the following to change the icon:

LOCAL L.GUI, PARENT
PARENT = GETATTR(@FORM, G.PARENT)
L.GUI = SETATTR(PARENT, "icon", @SBCLIENT<4,1>:"\BMP\Tools.ico")

Create a paragraph similar to the following to change the title:

LOCAL L.GUI
MAINFORM = GETATTR(@FORM,G.PARENT)
L.GUI = SETATTR(MAINFORM,G.TITLE,"MY HEADING")

The actual tabfolder's properties are accessible using @FORM.

Implemented for release 5.2 and higher of SB+/SBClient, the icon to be used for tabfolder form can be specified in appropriate GDS item (LOOKUP.GUIDEFS, 'tabfolder' class).

menu
menu