home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
POWERdrive for you 1998 April
/
PFY0498.BIN
/
demos
/
lssuite
/
lotus069.dsk
/
005.LSS
< prev
next >
Wrap
Text File
|
1997-11-04
|
6KB
|
244 lines
'Copyright 1995-96, Lotus Development Corporation. All rights reserved.
' Keyboard independence added 11/03/97 Daniel K. Sullivan Lotus Dublin
%if GEMINI
Use "LTAPPN11"
%elseif IBM_OS2
Use "LTAPPO11"
%end if
%if GEMINI
Use "LTAPSN11"
%elseif IBM_OS2
Use "LTAPSO11"
%end if
Declare Public Function Pathslash (theString As String) As String
Sub Initialize
ClientMainWinClass = SMARTCENTER_MAINWINCLASS
ClientID = AN_SMARTCEN
ClientModName = SMARTCENTER_PERSMODNAME
ClientLotusAppID = "SMARTCENTER"
ShowMeModName = "005"
AnimVersionNum = 2.32
NumFramesThisAnim = 27
AnimationType = "QuickDemo"
SampleFile = ""
AnimName = GetString( "0050000", IResult% )
End Sub
Public Sub ShowMe (theNextStep As Integer)
GetCursorPos TempPos
CursorPosForStep(theNextStep) = TempPos
Select Case theNextStep
Case 1
StepsText = GetString( "0051001", IResult% )
StartAppFromSC AN_APPROACH, ""
Exit Sub
Case 2
Delay 2000
X = DoWhereIs (DIALOG_CONTROL_P,"",2,0,0,0,ClientID)
MoveToObj Center
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 3
StepsText = GetString( "0051002", IResult% )
SetBubblePosforMenus
ShowTextBubble StepsText, .5, .5, NorthEast
HideTextBubble
ChooseMenuItem File_Open_p
Exit Sub
Case 4
StepsText = GetString( "0051003", IResult% )
X = DoWhereIs (DIALOG_CONTROL_P,"",1136,0,0,0,ClientID)
ShowTextBubble StepsText, .25, .25, NorthEast
HideTextBubble
MoveToObj Center
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 5
Delay 2000
SendCtrlKeys "{END}", 100
Exit Sub
Case 6
SendCtrlKeys "{ENTER}", 100
Exit Sub
Case 7
StepsText = GetString( "0051004", IResult% )
Delay 500
X = DoWhereIs (DIALOG_CONTROL_P,"",1152,0,0,0,ClientID)
ShowTextBubble StepsText, .15, .25, NorthEast
HideTextBubble
MoveToObjRel 15 , 25
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 8
Delay 500
theLocalFileName$ = "sc4??.123"
X = GetLocalSampleFileName (theLocalFileName$)
Dim Daniel As String
Dim DanielK As String
Daniel = ReadClientRegistry ( "Approach", "Path" )
DanielK = PathSlash (Daniel)
SendCtrlKeys DanielK + lcase(theLocalFileName$), 50
Exit Sub
Case 9
StepsText = GetString( "0051005", IResult% )
X = DoWhereIs (DIALOG_CONTROL_P,"",1,0,0,0,ClientID)
ShowTextBubble StepsText, .5, .5, NorthEast
HideTextBubble
MoveToObj Center
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 10
StepsText = GetString( "0051006", IResult% )
Delay 500
X = DoWhereIs (DIALOG_CONTROL_P,"",101,0,0,0,ClientID)
ShowTextBubble StepsText, .9, .1, NorthEast
HideTextBubble
MoveToObjRel 30 , 30
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 11
SendCtrlKeys "{DOWN 2}", 100
Exit Sub
Case 12
X = DoWhereIs (DIALOG_CONTROL_P,"",1,0,0,0,ClientID)
MoveToObj Center
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 13
StepsText = GetString( "0051007", IResult% )
X = DoWhereIs (DIALOG_CONTROL_P,"",1152,0,0,0,ClientID)
ShowTextBubble StepsText, .02, .02, NorthWest
HideTextBubble
Exit Sub
Case 14
If Dir$( gClientPath + "SC4EN.DBF") <> "" Then Kill gClientPath + "SC4EN.DBF"
Exit Sub
Case 15
If Dir$( gClientPath + "SC4EN.ADX") <> "" Then Kill gClientPath + "SC4EN.ADX"
Exit Sub
Case 16
If Dir$( gClientPath + "SC4EN.APR") <> "" Then Kill gClientPath + "SC4EN.APR"
Exit Sub
Case 17
X = DoWhereIs (DIALOG_CONTROL_P,"",1,0,0,0,ClientID)
MoveToObj Center
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 18
Delay 4000
Exit Sub
Case 19
X = DoWhereIs (VIEWTAB_OBJ_P,"Arbeitsblatt 1",0,0,0,0,ClientID)
MoveToObj Center
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 20
Delay 2000
Exit Sub
Case 21
StepsText = GetString( "0051008", IResult% )
SetBubblePosforMenus
ShowTextBubble StepsText, .5, .5, NorthEast
HideTextBubble
ChooseMenuItem File_Save_Approach_File_p
Exit Sub
Case 22
X = DoWhereIs (DIALOG_CONTROL_P,"",1,0,0,0,ClientID)
MoveToObj Center
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 23
SendCtrlKeys "^{F4}", 100
Exit Sub
Case 24
SendCtrlKeys "{ESC}", 100
Exit Sub
Case 25
If Dir$( gClientPath + "SC4EN.DBF") <> "" Then Kill gClientPath + "SC4EN.DBF"
Exit Sub
Case 26
If Dir$( gClientPath + "SC4EN.ADX") <> "" Then Kill gClientPath + "SC4EN.ADX"
Exit Sub
Case 27
If Dir$( gClientPath + "SC4EN.APR") <> "" Then Kill gClientPath + "SC4EN.APR"
Exit Sub
End Select
End Sub
'*====================================================================
'* This function alters the "\" in the registry path such that it is
'* language keyboard independent
'*
'*
'*====================================================================
Public Function Pathslash (theString As String) As String
On Error GoTo Pathslash_Error
Dim retString As String
Dim XX As String
Dim ii As Integer
For ii = 1 To Len(theString)
XX = Mid$(theString, ii, 1)
If XX = "\" Then
retString = retString + "^%"+chr$(63)
Else
retString = retString + XX
End If
Next
Pathslash = retString
'Error processing...
Exit Function
Pathslash_Error:
Print "Pathslash_Error: " + Error$ + " in line " + Str$(ERL)
End Function