home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Tool Box
/
SIMS_2.iso
/
code
/
cdspy
/
f_search.frm
< prev
next >
Wrap
Text File
|
1995-02-27
|
4KB
|
142 lines
VERSION 2.00
Begin Form F_Search
BorderStyle = 3 'Fixed Double
ClientHeight = 1620
ClientLeft = 1815
ClientTop = 1770
ClientWidth = 3225
Height = 2025
Left = 1755
LinkTopic = "Form1"
ScaleHeight = 1620
ScaleWidth = 3225
Top = 1425
Width = 3345
Begin CommandButton Cmd_Abbruch
BackColor = &H00C0C0C0&
Caption = "&Abbruch"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 375
Left = 1670
TabIndex = 2
Top = 1080
Width = 1365
End
Begin TextBox Txt_Stichwort
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 390
Left = 180
MaxLength = 50
TabIndex = 0
Top = 450
Width = 2835
End
Begin CommandButton Cmd_Suche
BackColor = &H00C0C0C0&
Caption = "&Suche"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 375
Left = 180
TabIndex = 1
Top = 1080
Width = 1365
End
Begin Line Line1
X1 = 180
X2 = 3000
Y1 = 960
Y2 = 960
End
Begin Label Label1
AutoSize = -1 'True
Caption = "Suchbegriff:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 240
Left = 180
TabIndex = 3
Top = 180
Width = 1020
End
End
Option Explicit
Option Compare Text
Sub Cmd_Abbruch_Click ()
Unload Me
End Sub
Sub Cmd_Suche_Click ()
GM_Searchtext$ = (Txt_Stichwort.Text)
If Trim$(GM_Searchtext$) = "" Then Exit Sub
If Me.Caption = GCM_STICHWORTSUCHE Then
screen.MousePointer = 11 ' Sanduhr
GM_Searchtitle$ = "Stichwortsuche - " & GM_Searchtext$
Dim FrmSti As New F_Stichtext
On Error Resume Next
FrmSti.Show
If Err = 364 Then ' Keine EintrΣge gefunden
Me.SetFocus
screen.MousePointer = 0 ' Default
Exit Sub
End If
screen.MousePointer = 0 ' Default
Unload Me
Else
screen.MousePointer = 11 ' Sanduhr
GM_Searchtitle$ = "Titeltextsuche - " & GM_Searchtext$
Dim FrmNew As New F_Titletext
On Error Resume Next
FrmNew.Show
If Err = 364 Then ' Keine EintrΣge gefunden
Me.SetFocus
screen.MousePointer = 0 ' Default
Exit Sub
End If
screen.MousePointer = 0 ' Default
Unload Me
End If
'Txt_Stichwort.SetFocus
End Sub
Sub Form_Load ()
Me.Move (screen.Width - Me.Width) / 2, (screen.Height - Me.Height) / 3
End Sub
Sub Form_Resize ()
Show3d Me
End Sub
Sub Txt_Stichwort_GotFocus ()
Txt_Stichwort.SelStart = 0
Txt_Stichwort.SelLength = Len(Txt_Stichwort.Text)
End Sub
Sub Txt_Stichwort_KeyPress (KeyAscii As Integer)
If KeyAscii = 13 Then
KeyAscii = 0
Cmd_Suche = True
End If
End Sub