home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 November
/
Pcwk1197.iso
/
LOTUS
/
Eng-ins
/
SMARTCTR
/
005.LSS
< prev
next >
Wrap
Text File
|
1996-10-24
|
5KB
|
200 lines
'Copyright 1995-96, Lotus Development Corporation. All rights reserved.
%if GEMINI
Use "LTAPPN11"
%elseif IBM_OS2
Use "LTAPPO11"
%end if
%if GEMINI
Use "LTAPSN11"
%elseif IBM_OS2
Use "LTAPSO11"
%end if
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$)
SendTextKeys ReadClientRegistry ( "Approach", "Path" ) + 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,"Worksheet 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