home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{9E3C8244-FB0C-11D1-AA5E-008048E292F1}#1.0#0"; "POLSPELL.OCX"
- Begin VB.Form Form1
- Caption = "Form1"
- ClientHeight = 2640
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 4785
- LinkTopic = "Form1"
- ScaleHeight = 2640
- ScaleWidth = 4785
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton Command5
- Caption = "AddWord"
- Height = 375
- Left = 240
- TabIndex = 6
- Top = 1560
- Width = 1455
- End
- Begin VB.ListBox List1
- Height = 1425
- Left = 2040
- TabIndex = 4
- Top = 960
- Width = 2175
- End
- Begin VB.CommandButton Command4
- Caption = "GetSuggestion"
- Height = 375
- Left = 240
- TabIndex = 3
- Top = 1080
- Width = 1455
- End
- Begin VB.CommandButton Command3
- Caption = "IsWordExist"
- Height = 375
- Left = 240
- TabIndex = 2
- Top = 600
- Width = 1455
- End
- Begin VB.CommandButton Command2
- Caption = "About"
- Height = 375
- Left = 240
- TabIndex = 1
- Top = 120
- Width = 1455
- End
- Begin VB.TextBox Text1
- Height = 375
- Left = 2040
- TabIndex = 0
- Text = "Text1"
- Top = 120
- Width = 2175
- End
- Begin SPELLCHECKERLib.SpellChecker SpellChecker1
- Left = 4320
- Top = 120
- _Version = 65536
- _ExtentX = 661
- _ExtentY = 661
- _StockProps = 0
- End
- Begin VB.Label Label1
- Height = 255
- Left = 2040
- TabIndex = 5
- Top = 600
- Width = 2175
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command2_Click()
- SpellChecker1.AboutBox
- End Sub
- Private Sub Command3_Click()
- If (SpellChecker1.IsWordExist(Text1.Text)) Then
- Label1.Caption = "Exists"
- Else
- Label1.Caption = "Doesn't exist"
- End If
- End Sub
- Private Sub Command4_Click()
- Dim Str As String
- Dim count As Integer
- List1.Clear
- count = 0
- Do
- Str = SpellChecker1.GetSuggestion(Text1.Text, count)
- count = count + 1
- If Str <> "" Then
- List1.AddItem Str
- End If
- Loop Until Str = ""
- End Sub
- Private Sub Command5_Click()
- SpellChecker1.AddWord Text1.Text
- End Sub
- Private Sub Form_Load()
- SpellChecker1.OpenDictionary App.Path + "\SpellUs.lex", App.Path + "\custom.dic"
- End Sub
-