home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 November / Pcwk1197.iso / LOTUS / Eng-ins / WORDPRO / 005.LSS < prev    next >
Text File  |  1996-09-04  |  3KB  |  86 lines

  1. %if GEMINI
  2. %elseif IBM_OS2
  3. %end if
  4. %if GEMINI
  5. Use "LTAPMN11"
  6. %elseif IBM_OS2
  7. Use "LTAPMO11"
  8. %end if
  9.  
  10. Sub Initialize
  11.    ClientMainWinClass = WORDPRO_MAINWINCLASS
  12.    ClientID = AN_AMIPRO
  13.    ClientModName = WORDPRO_PERSMODNAME
  14.    ClientLotusAppID = "WORDPRO"
  15.    ShowMeModName = "005"
  16.    AnimVersionNum =  2.3 
  17.    NumFramesThisAnim =  4 
  18.    AnimationType = "QuickDemo"
  19.    SampleFile = "la1n71??.lwp"
  20.    AnimName = GetString( "0050000", IResult% )
  21. End Sub
  22.  
  23. Public Sub ShowMe (theNextStep As Integer)
  24.  
  25. GetCursorPos TempPos
  26. CursorPosForStep(theNextStep) = TempPos
  27.  
  28. Select Case theNextStep
  29.  
  30. Case  1 
  31.    StepsText = GetString( "0051001", IResult% )
  32.    X = DoWhereIs (DIVISION_TABS_M,"Body",0,0,0,0,ClientID)
  33.    If ObjInfo.winHdl = 0 Then
  34.         Y = RunScriptCommand (".ActiveDocWindow.WinViewPrefs.IsViewSectionTabs = True", AN_AMIPRO, DeskwHdl.val )
  35.         Delay 250
  36.         X = DoWhereIs (DIVISION_TABS_M,"Body",0,0,0,0,ClientID)
  37.    End If
  38.    ShowTextBubble StepsText,  .5,  .5, SouthEast
  39.    HideTextBubble
  40.    MoveToObj Center
  41.    DoMouse WM_LBUTTONDOWN%, 0
  42.    DoMouse WM_LBUTTONUP%, 0
  43.    DoMouse WM_LBUTTONDBLCLK%, 0
  44.    DoMouse WM_LBUTTONUP%, 0
  45.    Exit Sub
  46.  
  47. Case  2 
  48.    X = DoWhereIs (DIVISION_TABS_M,"Body",0,0,0,0,ClientID)
  49.    If ObjInfo.winHdl = 0 Then
  50.         Y = RunScriptCommand (".ActiveDocWindow.WinViewPrefs.IsViewSectionTabs = True", AN_AMIPRO, DeskwHdl.val )
  51.         Delay 250
  52.         X = DoWhereIs (DIVISION_TABS_M,"Body",0,0,0,0,ClientID)
  53.    End If
  54.    MoveToObjRel  25 , 175 
  55.    Exit Sub
  56.  
  57. Case  3 
  58.    StepsText = GetString( "0051002", IResult% )
  59.    X = DoWhereIs (DIVISION_TABS_M,"Body",0,0,0,0,ClientID)
  60.    If ObjInfo.winHdl = 0 Then
  61.         Y = RunScriptCommand (".ActiveDocWindow.WinViewPrefs.IsViewSectionTabs = True", AN_AMIPRO, DeskwHdl.val )
  62.         Delay 250
  63.         X = DoWhereIs (DIVISION_TABS_M,"Body",0,0,0,0,ClientID)
  64.    End If
  65.    ShowTextBubble StepsText,  .5,  .5, SouthEast
  66.    HideTextBubble
  67.    SendTextKeys  GetString( "0052003", IResult% ), 50
  68.    Exit Sub
  69.  
  70. Case  4 
  71.    StepsText = GetString( "0051003", IResult% )
  72.    X = DoWhereIs (DIVISION_TABS_M,"Body",0,0,0,0,ClientID)
  73.    If ObjInfo.winHdl = 0 Then
  74.         Y = RunScriptCommand (".ActiveDocWindow.WinViewPrefs.IsViewSectionTabs = True", AN_AMIPRO, DeskwHdl.val )
  75.         Delay 250
  76.         X = DoWhereIs (DIVISION_TABS_M,"Body",0,0,0,0,ClientID)
  77.    End If
  78.    ShowTextBubble StepsText,  .75,  2.5, SouthEast
  79.    HideTextBubble
  80.    MoveToObjRel  75 , 250 
  81.    DoMouse WM_LBUTTONDOWN%, 0
  82.    DoMouse WM_LBUTTONUP%, 0
  83.    Exit Sub
  84. End Select
  85. End Sub
  86.