New Features
Only a minimal conversion is required when upgrading to SftTabs/DLL 6.0. SftTabs/DLL 6.0 is virtually 100% source code compatible to version 5.0 and earlier versions. The following major enhancements have been made available with SftTabs/DLL 6.0:
- 9 new tab styles.
- Tab pictures now support PNG, TIFF, JPEG, GIF, Exif, EMF+, EMF (GDI+ images) with full support for alpha-blended (translucent and semi-transparent) images (see SFTTABS_TAB, TabPicture and SFT_PICTURE structures).
- New SwitchTab function to make the next/previous tab the active tab.
- New notifications identifying which exact part of a tab was clicked (background, text or picture - SFTTABSN_LBUTTONDOWN_TEXT, SFTTABSN_LBUTTONDBLCLK_TEXT, SFTTABSN_LBUTTONDOWN_IMAGE, SFTTABSN_LBUTTONDBLCLK_IMAGE, SFTTABSN_LBUTTONDOWN_AREA, SFTTABSN_LBUTTONDBLCLK_AREA).
- Each tab now supports additional tab pictures when the tab is hot (flyby highlighting) or disabled.
- The SFTTABS_TAB structure now returns the location of the tab label and tab picture (see SFTTABS_TAB, rectPic, rectText).
- The exact height of one tab () can now be defined using the SFTTABS_CONTROL, forcedSize member.
- The new SFTTABS_CONTROL, fSwitchOnRelease member defines whether tab switching occurs as the user presses or releases the mouse button on a tab.
- The control now uses an even smoother painting method (on Windows XP and newer). Applications can still force the painting method used in older releases of the product using SFTTABS_CONTROL, fCompatibleRendering.
- The tab page border can be suppressed for the new button tab styles (SFTTABSSTYLE_BUTTONS_xxx), see SFTTABS_CONTROL, fNoBorder.
- The index of the tab currently highlighted (hot) due to flyby highlighting can now be retrieved using SFTTABS_CONTROL, highlightTabIndex.
- GDI+ specific support (SFTTABS_CONTROL, fGDIPlus, GDIPlusAvailable, LoadGDIPlusImageFromResource, FreeGDIPlusImageLoadedFromResource, DrawSelectionOutline).
- The SetControlInfo function now provides an error return value, making troubleshooting a bit easier (see SFTTABS_CONTROL, lastErrorValue).
- The drawing callback (SFTTABS_DRAWTABPROC) can now also be used when hidden tabs are present in a tab control.
- The drawing callback information provided in the SFTTABS_DRAWINFO structure has been expanded (AvailableRect, iRealTab, fShowAccel).
New Notifications
- SFTTABSN_SWITCHINGDISABLED - A disabled tab has been clicked. This could be used to inform the end-user, that a disabled tab has been clicked.