home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Tool Box
/
SIMS_2.iso
/
code
/
cdspy
/
f_stich.frm
< prev
next >
Wrap
Text File
|
1995-02-27
|
4KB
|
139 lines
VERSION 2.00
Begin Form F_Stichtext
ClientHeight = 4590
ClientLeft = 3180
ClientTop = 1605
ClientWidth = 3405
Height = 4995
Left = 3120
LinkTopic = "Form2"
MDIChild = -1 'True
ScaleHeight = 4590
ScaleWidth = 3405
Tag = "Titletext"
Top = 1260
Visible = 0 'False
Width = 3525
Begin Outline Outline
Height = 3615
Left = 90
PictureClosed = F_STICH.FRX:0000
PictureLeaf = F_STICH.FRX:00E2
PictureMinus = F_STICH.FRX:01C4
PictureOpen = F_STICH.FRX:02A6
PicturePlus = F_STICH.FRX:0388
TabIndex = 0
Tag = "Outline"
Top = 360
Width = 3075
End
Begin Label LblFound
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 255
Left = 90
TabIndex = 2
Top = 60
Width = 2775
End
Begin Shape ShpStatusbar
Height = 255
Left = 120
Top = 4080
Width = 3255
End
Begin Label LblStatusbar
AutoSize = -1 'True
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Left = 120
TabIndex = 1
Top = 4080
Width = 45
End
End
Option Explicit
Option Compare Text
Dim GL_ListIndex%
Dim GL_AktElement As TM_AktElement
Sub Form_Activate ()
GM_AktElement = GL_AktElement
PM_RefreshForms
End Sub
Sub Form_Load ()
Dim cnt&, Res&, ListIndex%
Me.MousePointer = 11 'Sanduhr
Show3d Me
If Not FM_StichwortSuche(GM_Searchtext$, Me.Outline) Then
Me.MousePointer = 0 ' Default
screen.MousePointer = 0 ' Default
MsgBox "Das Wort " & GM_Searchtext$ & " kommt nicht vor!", 48, "Stichwortsuche"
Unload Me
Exit Sub
End If
Me.Caption = GM_SearchTitle$
Outline.ListIndex = 0
Outline_Click
Me.MousePointer = 0 ' Default
End Sub
Sub Form_Resize ()
If F_CheckFormSize(Me, 3000, 3000) = True Then
P_ResizeObjectToForm Me, Outline, 100
Outline.Top = 300
Outline.Height = FM_Max(Me.ScaleHeight - 600, 200)
ShpStatusbar.Move 100, Me.ScaleHeight - 250, Me.ScaleWidth - 200, 200
LblStatusbar.Move 200, Me.ScaleHeight - 250
If Outline.ListCount = 1 Then
LblFound = "1 Eintrag gefunden"
Else
LblFound = Outline.ListCount & " EintrΣge gefunden"
End If
LblFound.Left = Outline.Left
Show3d Me
End If
End Sub
Sub Outline_Click ()
Dim Res&
Dim pos%
If Outline.ListIndex < 0 Then Exit Sub
Me.MousePointer = 11
PM_ReadCDInfo Me.Outline, GL_AktElement
GM_AktElement = GL_AktElement
PM_RefreshForms
GL_ListIndex% = Outline.ListIndex
Me.LblStatusbar = GM_DB.Verzeichnis$
Show3d Me
Me.MousePointer = 0
End Sub
Sub Outline_DblClick ()
Set G_Control = Outline
PopupMenu MDICDSpy!MnuSetup
End Sub
Sub Outline_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button And 2 Then
Set G_Control = Outline
PopupMenu MDICDSpy!MnuSetup
End If
End Sub
Sub Outline_PictureClick (ListIndex As Integer)
Outline.ListIndex = ListIndex
Outline_Click
End Sub