SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Determines whether a currently active page can be left and a new page activated.
C++
virtual BOOL CSftTabsPage::AllowSwitch();
If TRUE is returned, the current page will be deactivated and another page will become active, otherwise the current page (and associated tab) cannot be changed.
The AllowSwitch function determines whether a currently active page can be left and a new page activated.
The default implementation of this member function returns TRUE after performing automatic data validation and exchange for the page.
An application can override this function to perform additional tests such as input validation, to determine if the page can be left.
C++
BOOL CAttrPage::AllowSwitch() { if (!UpdateData(TRUE)) return FALSE; CSampleDoc* pDoc = GetDocument(); pDoc->m_bottomMargin = m_BottomMargin; pDoc->m_leftMargin = m_LeftMargin; pDoc->m_rightMargin = m_RightMargin; pDoc->m_topMargin = m_TopMargin; return TRUE; }
See Also C/C++ API | C++ Classes | Notifications