Hide

SftTabs/DLL 6.5 - Tab Control

Display
Print

Second Tab Image

Second Tab Image - Close Button

The second tab image is typically used for a tab Close button. It is only displayed if the tab is the current tab or the mouse cursor is located on the tab.

The SFTTABS_TAB members TabPicture2, TabPicture2Active, TabPicture2Disabled, TabPicture2Hot define the second tab image. The SFTTABSN_LBUTTONDBLCLK_IMAGE2 notification can be intercepted to delete the tab using DeleteTab.

The SFTTABS_TAB member fHasCloseButton must be set to TRUE, otherwise the second tab image is not shown. If no image is defined using the SFTTABS_TAB members TabPicture2 a default image is used.

The SFTTABS_TAB member gap2 defines the gap between the tab label (or the first tab image) and the second tab image (in pixels).

The SFTTABS_TAB member rectPic2 can be used to retrieve the location and size of the second tab image.

See see SFTTABS_TAB, TabPicture2 member.


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.