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
The Help button is clicked.
VB.NET | Private Sub object_HelpWanted(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.HelpWanted |
VB | Private Sub object_HelpWanted(ByVal HelpName As String) |
C#.NET | void object_HelpWanted(object sender, EventArgumentType e); |
VC++ | void OnHelpWantedobject(_bstr_t HelpName); |
C | HRESULT OnHelpWantedobject(BSTR HelpName); |
object
HelpName
Specifies which portion of the control requested help.
Value | Description |
---|---|
Toolbar | The Help button of the tool bar was clicked. |
PageSetup | The Help button of the Page Setup dialog was clicked. |
The HelpWanted event occurs when the Help button is clicked.
The user can request online help by clicking on the Help button of the Page Setup dialog or by clicking on the Help button of the built-in tool bar.
This event does not occur when the user hits F1 (or similar keys) as these are normally handled by the application.
The WantHelpButton property is used to define whether the Help button is visible on the tool bar.
' In case the richedit control changed, we have to reformat everything AxSftPrintPreview1.Restart(SftPrintPreviewRestartConstants.restartSftPrintPreviewComplete) End Sub Private Sub AxSftPrintPreview1_PageSetupWanted(ByVal sender As Object, ByVal e As System.EventArgs) Handles AxSftPrintPreview1.PageSetupWanted AxSftPrintPreview1.PageSetup(0) End Sub Private Sub AxSftPrintPreview1_HelpWanted(ByVal sender As Object, ByVal e As AxSftPrintPreviewLib10._ISftPrintPreviewEvents_HelpWantedEvent) Handles AxSftPrintPreview1.HelpWanted MessageBox.Show("Sorry, this sample doesn't offer a help file") End Sub Private Sub AxSftPrintPreview1_CloseWanted(ByVal sender As Object, ByVal e As System.EventArgs) Handles AxSftPrintPreview1.CloseWanted MenuViewRichEdit_Click(Me, New System.EventArgs()) End Sub
' Connect the RichEdit control to the print preview control SftPrintPreview1.ContentProviderCallbackX RichTextBox1.hWnd, SftPrintPreview1.RenderRichEditX, 0 End Sub Private Sub SftPrintPreview1_PageSetupWanted() SftPrintPreview1.PageSetup 0 End Sub Private Sub SftPrintPreview1_HelpWanted(ByVal HelpName As String) MsgBox ("Sorry, this sample doesn't offer a help file") End Sub Private Sub SftPrintPreview1_CloseWanted() ViewRichEdit_Click End Sub
axSftPrintPreview1.Restart(SftPrintPreviewRestartConstants.restartSftPrintPreviewComplete); } private void axSftPrintPreview1_PageSetupWanted(object sender, System.EventArgs e) { axSftPrintPreview1.PageSetup(0); } private void axSftPrintPreview1_HelpWanted(object sender, AxSftPrintPreviewLib10._ISftPrintPreviewEvents_HelpWantedEvent e) { MessageBox.Show("Sorry, this sample doesn't offer a help file"); } private void axSftPrintPreview1_CloseWanted(object sender, System.EventArgs e) { menuViewRichEdit_Click(this, new System.EventArgs());
m_vPrintPreview1->PageSetup((long) m_hWnd); } void CSftPrintPreviewDlg::OnCloseWantedSftPrintPreview1() { OnOK(); } void CSftPrintPreviewDlg::OnHelpWantedSftPrintPreview1(LPCTSTR HelpName) { MessageBox(_T("Sorry, this sample doesn't offer a help file")); } BEGIN_EVENTSINK_MAP(CSftPrintPreviewDlg, CDialog) //{{AFX_EVENTSINK_MAP(CSftPrintPreviewDlg) ON_EVENT(CSftPrintPreviewDlg, IDC_SFTPRINTPREVIEW1, 8 /* CloseWanted */, OnCloseWantedSftPrintPreview1, VTS_NONE)
See Also SftPrintPreview Object | Object Hierarchy