Insert Tab - TABCTRL SENDMSG() Function 33

Syntax

IDX$=SENDMSG(sysgui,id,33,tabidx%,tabdes${,context{,ERR=lineref}})

Description

This function inserts a tab into the control. The return value contains the null string if the operation fails. If the operation succeeds, the return value will be the value passed in tabidx%.

Parameter

Description

sysgui

SYSGUI channel.

id

Tab control ID.

33

Number of this SENDMSG() function.

tabidx%

Tab insertion location.

tabdes$

String containing a description of a tab and uses the following template:

imageidx:i(2),id:i(2),text:c(1*=0)

The imageidx field contains the index of the displayed image list tab image (-1 indicates no image). The id field contains the ID of a control or child window to be displayed when the tab is selected by the user (-1 indicates that no control or child window should be displayed automatically). The text field contains the text displayed on the tab.