home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 14 / 14.iso / s / s005 / 52.ddi / SMM.LIB / FLG.SMM < prev    next >
Encoding:
INI File  |  1993-10-28  |  10.5 KB  |  1,039 lines

  1. [ver]
  2.     4
  3. [sty]
  4.     _default.sty
  5. [charset]
  6.     82
  7.     ANSI (Windows, IBM CP 1252)
  8. [PanoseFontTable]
  9.     4
  10.     5
  11.     Arial
  12.     2818
  13.     1030
  14.     514
  15.     514
  16.     1026
  17.     Helvetica
  18.     2818
  19.     1029
  20.     514
  21.     514
  22.     1026
  23.     Helv
  24.     2818
  25.     1029
  26.     514
  27.     770
  28.     1026
  29.     Times New Roman
  30.     514
  31.     774
  32.     1029
  33.     517
  34.     1027
  35. [revisions]
  36.     0
  37. [recfile]
  38.     
  39.     *
  40.     1
  41.     1
  42.     3
  43.     8
  44.     0
  45.     0
  46. [lang]
  47.     1
  48. [desc]
  49.     Launch Freelance for OS/2
  50.     
  51.     
  52.     
  53.     
  54.     751844703
  55.     6
  56.     750620291
  57.     150
  58.     0
  59.     0
  60.     0
  61.     0
  62.     0
  63.     
  64.     
  65.     
  66.     
  67.     
  68.     
  69.     1
  70. [prn]
  71.     QMS-PS 810
  72. [port]
  73.     NW:\\SPEEDY\QMS
  74. [fopts]
  75.     0
  76.     1
  77.     0
  78.     0
  79. [lnopts]
  80.     2
  81.     Body Text
  82.     1
  83. [docopts]
  84.     5
  85.     2
  86. [GramStyle]
  87.     
  88. [tag]
  89.     Function
  90.     1
  91.     [fnt]
  92.         Helvetica
  93.         240
  94.         0
  95.         49153
  96.     [algn]
  97.         1
  98.         1
  99.         0
  100.         0
  101.         0
  102.     [spc]
  103.         33
  104.         0
  105.         1
  106.         0
  107.         0
  108.         1
  109.         100
  110.     [brk]
  111.         68
  112.     [line]
  113.         8
  114.         0
  115.         1
  116.         0
  117.         0
  118.         1
  119.         1
  120.         144
  121.         144
  122.         1
  123.     [spec]
  124.         0
  125.         1
  126.         
  127.         0
  128.         1
  129.         1
  130.         0
  131.         0
  132.         0
  133.         0
  134.     [nfmt]
  135.         272
  136.         1
  137.         3
  138.         .
  139.         ,
  140.         $
  141.     Body Text
  142.     0
  143.     0
  144. [tag]
  145.     Outline2
  146.     1
  147.     [fnt]
  148.         Times New Roman
  149.         200
  150.         0
  151.         49152
  152.     [algn]
  153.         1
  154.         1
  155.         216
  156.         0
  157.         0
  158.     [spc]
  159.         33
  160.         0
  161.         1
  162.         0
  163.         0
  164.         1
  165.         100
  166.     [brk]
  167.         4
  168.     [line]
  169.         8
  170.         0
  171.         1
  172.         0
  173.         0
  174.         1
  175.         1
  176.         144
  177.         144
  178.         1
  179.     [spec]
  180.         0
  181.         2
  182.         
  183.         0
  184.         1
  185.         1
  186.         0
  187.         16
  188.         0
  189.         0
  190.     [nfmt]
  191.         272
  192.         1
  193.         3
  194.         .
  195.         ,
  196.         $
  197.     Outline2
  198.     0
  199.     0
  200. [tag]
  201.     Outline3
  202.     1
  203.     [fnt]
  204.         Times New Roman
  205.         200
  206.         0
  207.         49152
  208.     [algn]
  209.         1
  210.         1
  211.         0
  212.         720
  213.         0
  214.     [spc]
  215.         33
  216.         0
  217.         1
  218.         72
  219.         72
  220.         1
  221.         100
  222.     [brk]
  223.         4
  224.     [line]
  225.         8
  226.         0
  227.         1
  228.         0
  229.         0
  230.         1
  231.         1
  232.         144
  233.         144
  234.         1
  235.     [spec]
  236.         0
  237.         3
  238.         
  239.         0
  240.         1
  241.         1
  242.         0
  243.         0
  244.         0
  245.         0
  246.     [nfmt]
  247.         272
  248.         1
  249.         2
  250.         .
  251.         ,
  252.         $
  253.     Outline3
  254.     0
  255.     0
  256. [tag]
  257.     Outline4
  258.     1
  259.     [fnt]
  260.         Times New Roman
  261.         200
  262.         0
  263.         49152
  264.     [algn]
  265.         1
  266.         1
  267.         0
  268.         0
  269.         0
  270.     [spc]
  271.         33
  272.         0
  273.         1
  274.         72
  275.         72
  276.         1
  277.         100
  278.     [brk]
  279.         4
  280.     [line]
  281.         8
  282.         0
  283.         1
  284.         0
  285.         0
  286.         1
  287.         1
  288.         144
  289.         144
  290.         1
  291.     [spec]
  292.         0
  293.         4
  294.         
  295.         0
  296.         1
  297.         1
  298.         0
  299.         0
  300.         0
  301.         0
  302.     [nfmt]
  303.         272
  304.         1
  305.         2
  306.         .
  307.         ,
  308.         $
  309.     Outline3
  310.     0
  311.     0
  312. [tag]
  313.     Outline1
  314.     1
  315.     [fnt]
  316.         Times New Roman
  317.         240
  318.         0
  319.         49153
  320.     [algn]
  321.         1
  322.         1
  323.         0
  324.         0
  325.         0
  326.     [spc]
  327.         33
  328.         0
  329.         1
  330.         72
  331.         0
  332.         1
  333.         100
  334.     [brk]
  335.         16
  336.     [line]
  337.         8
  338.         0
  339.         1
  340.         0
  341.         0
  342.         1
  343.         1
  344.         144
  345.         144
  346.         1
  347.     [spec]
  348.         0
  349.         1
  350.         
  351.         0
  352.         1
  353.         1
  354.         0
  355.         0
  356.         0
  357.         0
  358.     [nfmt]
  359.         272
  360.         1
  361.         2
  362.         .
  363.         ,
  364.         $
  365.     Outline1
  366.     0
  367.     0
  368. [tag]
  369.     Title
  370.     8
  371.     [fnt]
  372.         Helvetica
  373.         280
  374.         0
  375.         49153
  376.     [algn]
  377.         1
  378.         1
  379.         0
  380.         0
  381.         0
  382.     [spc]
  383.         33
  384.         0
  385.         1
  386.         144
  387.         72
  388.         1
  389.         100
  390.     [brk]
  391.         16
  392.     [line]
  393.         8
  394.         0
  395.         1
  396.         0
  397.         0
  398.         1
  399.         1
  400.         144
  401.         144
  402.         1
  403.     [spec]
  404.         0
  405.         1
  406.         
  407.         0
  408.         1
  409.         1
  410.         0
  411.         0
  412.         0
  413.         0
  414.     [nfmt]
  415.         272
  416.         1
  417.         2
  418.         .
  419.         ,
  420.         $
  421.     Title
  422.     0
  423.     0
  424. [tag]
  425.     Body Text
  426.     2
  427.     [fnt]
  428.         Times New Roman
  429.         240
  430.         0
  431.         49152
  432.     [algn]
  433.         1
  434.         1
  435.         0
  436.         0
  437.         0
  438.     [spc]
  439.         33
  440.         0
  441.         1
  442.         0
  443.         0
  444.         1
  445.         100
  446.     [brk]
  447.         4
  448.     [line]
  449.         8
  450.         0
  451.         1
  452.         0
  453.         0
  454.         1
  455.         1
  456.         144
  457.         144
  458.         1
  459.     [spec]
  460.         0
  461.         0
  462.         
  463.         0
  464.         1
  465.         1
  466.         0
  467.         0
  468.         0
  469.         0
  470.     [nfmt]
  471.         280
  472.         1
  473.         2
  474.         .
  475.         ,
  476.         $
  477.     Body Text
  478.     0
  479.     0
  480. [lay]
  481.     Standard
  482.     513
  483.     [rght]
  484.         15840
  485.         12240
  486.         1
  487.         1440
  488.         1440
  489.         1
  490.         1440
  491.         1440
  492.         0
  493.         1
  494.         0
  495.         1
  496.         0
  497.         2
  498.         1
  499.         1440
  500.         10800
  501.         12
  502.         1
  503.         720
  504.         1
  505.         1440
  506.         1
  507.         2160
  508.         1
  509.         2880
  510.         1
  511.         3600
  512.         1
  513.         4320
  514.         1
  515.         5040
  516.         1
  517.         5760
  518.         1
  519.         6480
  520.         1
  521.         7200
  522.         1
  523.         7920
  524.         1
  525.         8640
  526.     [frght]
  527.     [lyfrm]
  528.         0
  529.         13184
  530.         0
  531.         14400
  532.         12240
  533.         15840
  534.         0
  535.         1
  536.         1
  537.         0 0 0 0 0 0 0
  538.         0
  539.         16777215
  540.         0
  541.     [frmlay]
  542.         15840
  543.         12240
  544.         1
  545.         1440
  546.         792
  547.         1
  548.         14472
  549.         1440
  550.         0
  551.         1
  552.         0
  553.         0
  554.         0
  555.         0
  556.         1
  557.         1440
  558.         10800
  559.         2
  560.         2
  561.         4680
  562.         3
  563.         9360
  564.     [txt]
  565. <:s>
  566.  
  567. >
  568.     [hrght]
  569.     [lyfrm]
  570.         0
  571.         11136
  572.         0
  573.         0
  574.         12240
  575.         1440
  576.         0
  577.         1
  578.         1
  579.         0 0 0 0 0 0 0
  580.         0
  581.         16777215
  582.         0
  583.     [frmlay]
  584.         1440
  585.         12240
  586.         1
  587.         1440
  588.         72
  589.         1
  590.         792
  591.         1440
  592.         0
  593.         1
  594.         0
  595.         0
  596.         0
  597.         0
  598.         1
  599.         1440
  600.         10800
  601.         2
  602.         2
  603.         4680
  604.         3
  605.         9360
  606.     [txt]
  607. <:s>
  608.  
  609. >
  610. [elay]
  611. [lay]
  612.     1
  613.     513
  614.     [rght]
  615.         15840
  616.         12240
  617.         1
  618.         1440
  619.         1440
  620.         1
  621.         1440
  622.         1440
  623.         0
  624.         0
  625.         0
  626.         1
  627.         0
  628.         2
  629.         1
  630.         1440
  631.         10800
  632.         12
  633.         1
  634.         720
  635.         1
  636.         1440
  637.         1
  638.         2160
  639.         1
  640.         2880
  641.         1
  642.         3600
  643.         1
  644.         4320
  645.         1
  646.         5040
  647.         1
  648.         5760
  649.         1
  650.         6480
  651.         1
  652.         7200
  653.         1
  654.         7920
  655.         1
  656.         8640
  657.     [hrght]
  658.     [lyfrm]
  659.         0
  660.         11136
  661.         0
  662.         0
  663.         12240
  664.         1440
  665.         0
  666.         1
  667.         1
  668.         0 0 0 0 0 0 0
  669.         0
  670.         16777215
  671.         0
  672.     [frmlay]
  673.         1440
  674.         12240
  675.         1
  676.         1440
  677.         72
  678.         1
  679.         792
  680.         1440
  681.         0
  682.         0
  683.         16777215
  684.         0
  685.         0
  686.         0
  687.         1
  688.         1440
  689.         10800
  690.         1
  691.         3
  692.         9360
  693.     [txt]
  694. <:s><:#P30670848,P943718>
  695.  
  696. >
  697.     [frght]
  698.     [lyfrm]
  699.         0
  700.         13184
  701.         0
  702.         14400
  703.         12240
  704.         15840
  705.         0
  706.         1
  707.         1
  708.         0 0 0 0 0 0 0
  709.         0
  710.         16777215
  711.         0
  712.     [frmlay]
  713.         15840
  714.         12240
  715.         1
  716.         1440
  717.         792
  718.         1
  719.         14472
  720.         1440
  721.         0
  722.         0
  723.         16777215
  724.         0
  725.         0
  726.         0
  727.         1
  728.         1440
  729.         10800
  730.         2
  731.         2
  732.         4680
  733.         3
  734.         9360
  735.     [txt]
  736. <:s><:#P30670848,P943718>
  737.  
  738. >
  739. [elay]
  740. [l1]
  741.     1
  742. [edoc]
  743. @Function@<:s><:#P30670848,P912261><:X3,0;Include "amixlate.sam!flg">' Flg Defines
  744.  
  745. @Outline2@<:s>Define        AppName    "Freelance for OS/2"
  746.  
  747. @Outline2@<:s>Define        NotFound    "Ami Pro cannot find Freelance for OS/2. If you have Freelance currently installed, please enter the path below."    
  748.  
  749. @Outline2@<:s>Define        EnterPath    "Enter the path for Freelance for OS/2:"
  750.  
  751. @Outline2@<:s>Define        Caption    "Launch Freelance"
  752.  
  753. @Outline2@<:s>Define        Path        "C:\Flg\FLG.EXE"<:X~3,0;Include "amixlate.sam!flg">
  754.  
  755. @Outline2@<:s><:#P30670848,P786432>define            deffile        "WORK\PRES.PRS"
  756.  
  757. @Outline2@<:s><:#P30670848,P786432>define            PLAT_SLASH    "\"
  758.  
  759. @Outline2@<:s><:#P30670848,P786432>declare GetPathFromName(filename)
  760.  
  761. @Outline2@<:s><:#P30670848,P786432>
  762.  
  763. @Outline2@<:s><:#P30670848,P786432>
  764.  
  765. @Function@<:s><:#P30670848,P912261>Function FLG()
  766.  
  767. @Outline2@<:s><:#P30670848,P786432>if AppIsRunning(AppName)
  768.  
  769. @Outline2@<:s><:#P30670848,P786432>    ActivateApp(AppName)
  770.  
  771. @Outline2@<:s><:#P30670848,P786432>    EXIT FUNCTION
  772.  
  773. @Outline2@<:s><:#P30670848,P786432>ENDIF
  774.  
  775. @Outline2@<:s><:#P30670848,P786432>appPath=GetProfileString$("LotusApplications","FLG")
  776.  
  777. @Outline2@<:s><:#P30670848,P786432>if apppath != ""
  778.  
  779. @Outline2@<:s><:#P30670848,P786432>    defpath=GetPathFromName(apppath)
  780.  
  781. @Outline2@<:s><:#P30670848,P786432>    defname=strcat$(defpath, deffile)
  782.  
  783. @Outline2@<:s><:#P30670848,P786432>    launchResult=Exec(appPath,defname)
  784.  
  785. @Outline2@<:s><:#P30670848,P786432>endif
  786.  
  787. @Outline2@<:s><:#P30670848,P786432>Mac = GetRunningMacroFile$()
  788.  
  789. @Outline2@<:s><:#P30670848,P786432>While launchResult<<33
  790.  
  791. @Outline2@<:s><:#P30670848,P786432>    ' Prefill the box with info for this application
  792.  
  793. @Outline2@<:s><:#P30670848,P786432>    FillEdit(1001, NotFound)
  794.  
  795. @Outline2@<:s><:#P30670848,P786432>    FillEdit(1004, EnterPath)
  796.  
  797. @Outline2@<:s><:#P30670848,P786432>    FillEdit(8000, Path)
  798.  
  799. @Outline2@<:s><:#P30670848,P786432>    ' Create an init routine to set the caption on the dialog box
  800.  
  801. @Outline2@<:s><:#P30670848,P786432>    SetDlgCallBack(0, "{Mac}!InitDlg")
  802.  
  803. @Outline2@<:s><:#P30670848,P786432>    Box=DialogBox("Launch.dlg","Missouri")
  804.  
  805. @Outline2@<:s><:#P30670848,P786432>    if Box<<<;>1
  806.  
  807. @Outline2@<:s><:#P30670848,P786432>        EXIT FUNCTION
  808.  
  809. @Outline2@<:s><:#P30670848,P786432>    endif
  810.  
  811. @Outline2@<:s><:#P30670848,P786432>    appPath=GetDialogField$(8000)
  812.  
  813. @Outline2@<:s><:#P30670848,P786432>    WriteProfileString("LotusApplications","FLG",appPath)
  814.  
  815. @Outline2@<:s><:#P30670848,P786432>    defpath=GetPathFromName(apppath)
  816.  
  817. @Outline2@<:s><:#P30670848,P786432>    defname=strcat$(defpath, deffile)
  818.  
  819. @Outline2@<:s><:#P30670848,P786432>    launchResult=Exec(appPath,defname)
  820.  
  821. @Outline2@<:s><:#P30670848,P786432>WEND
  822.  
  823. @Outline2@<:s><:#P30670848,P786432>end function
  824.  
  825. @Outline2@<:s><:#P30670848,P786432>
  826.  
  827. @Outline2@<:s><:#P30670848,P786432>
  828.  
  829. @Function@<:s><:#P30670848,P912261>Function InitDlg(Hdlg)
  830.  
  831. @Outline2@<:s><:#P30670848,P786432>' This routine is executed before the box is actually displayed - it is in memory
  832.  
  833. @Outline2@<:s><:#P30670848,P786432>' Since all of the macros to launch applications share a dialog box, we need to set the caption
  834.  
  835. @Outline2@<:s><:#P30670848,P786432>DlgSetCaption(Hdlg, Caption)
  836.  
  837. @Outline2@<:s><:#P30670848,P786432>End Function
  838.  
  839. <:s><:#P30670848,P943718>
  840.  
  841. <:s><:#P30670848,P943718>
  842.  
  843. @Function@<:s><:#P30670848,P912261>function GetPathFromName(filename)
  844.  
  845. @Outline2@<:s><:#P30670848,P786432>defstr char;
  846.  
  847. @Outline2@<:s><:#P30670848,P786432>Length = len(FileName)
  848.  
  849. @Outline2@<:s><:#P30670848,P786432>WHILE PLAT_SLASH != Assign(&Char, MID$(FileName, Length, 1))
  850.  
  851. @Outline2@<:s><:#P30670848,P786432>    Length = Length - 1
  852.  
  853. @Outline2@<:s><:#P30670848,P786432>WEND
  854.  
  855. @Outline2@<:s><:#P30670848,P786432>InFileName = Right$(FileName, (len(FileName) - Length))
  856.  
  857. @Outline2@<:s><:#P30670848,P786432>InDir = Left$(FileName, Length - 1) 
  858.  
  859. @Outline2@<:s><:#P30670848,P786432>if right$(indir, 1) <<<;> PLAT_SLASH
  860.  
  861. @Outline2@<:s><:#P30670848,P786432>    indir = strcat$(indir, PLAT_SLASH)
  862.  
  863. @Outline2@<:s><:#P30670848,P786432>endif
  864.  
  865. @Outline2@<:s><:#P30670848,P786432>return indir
  866.  
  867. @Outline2@<:s><:#P30670848,P786432>end function
  868.  
  869. @Function@<:s><:#P30670848,P786432>
  870. >
  871.  
  872. [Embedded]
  873. 00009069
  874. >
  875. [macsum4] 3 28
  876. FLG 0 0 7 11
  877. InitDlg 1031 1 1 43
  878. GetPathFromName 1123 1 5 50
  879. [macse]
  880. 14 FLG
  881. 29 0 FLG
  882. 17 1
  883. 0 1032 "Freelance for OS/2"
  884. 13
  885. 11 00000115
  886. 17 2
  887. 0 38 "Freelance for OS/2"
  888. 6 0
  889. 15
  890. 9
  891. 17 5
  892. 29 1 appPath
  893. 0 286 "LotusApplications" "FLG"
  894. 13
  895. 8 1
  896. 17 6
  897. 6 1
  898. 7 ""
  899. 18 1
  900. 11 00000377
  901. 17 7
  902. 29 2 defpath
  903. 16 GetPathFromName "{1}"
  904. 13
  905. 8 2
  906. 17 8
  907. 29 3 defname
  908. 0 16 "{2}" "WORK\PRES.PRS"
  909. 13
  910. 8 3
  911. 17 9
  912. 29 4 launchResult
  913. 0 22 "{1}" "{3}"
  914. 13
  915. 8 4
  916. 17 11
  917. 29 5 Mac
  918. 0 802
  919. 13
  920. 8 5
  921. 17 12
  922. 6 4
  923. 5 33
  924. 18 5
  925. 11 00001012
  926. 17 14
  927. 0 31 1001 "Ami Pro cannot find Freelance for OS/2. If you have Freelance currently installed, please enter the path below."
  928. 17 15
  929. 0 31 1004 "Enter the path for Freelance for OS/2:"
  930. 17 16
  931. 0 31 8000 "C:\Flg\FLG.EXE"
  932. 17 18
  933. 0 41 0 "{5}!InitDlg"
  934. 17 19
  935. 29 6 Box
  936. 0 26 "Launch.dlg" "Missouri"
  937. 13
  938. 8 6
  939. 17 20
  940. 6 6
  941. 5 1
  942. 18 1
  943. 11 00000806
  944. 6 0
  945. 15
  946. 9
  947. 17 23
  948. 0 27 8000
  949. 13
  950. 8 1
  951. 17 24
  952. 0 287 "LotusApplications" "FLG" "{1}"
  953. 17 25
  954. 16 GetPathFromName "{1}"
  955. 13
  956. 8 2
  957. 17 26
  958. 0 16 "{2}" "WORK\PRES.PRS"
  959. 13
  960. 8 3
  961. 17 27
  962. 0 22 "{1}" "{3}"
  963. 13
  964. 8 4
  965. 10 00000410
  966. 6 0
  967. 15
  968. 17 29
  969. 9
  970. 14 InitDlg
  971. 29 0 Hdlg
  972. 29 1 InitDlg
  973. 17 3
  974. 0 75 "{0}" "Launch Freelance"
  975. 6 1
  976. 15
  977. 17 4
  978. 9
  979. 14 GetPathFromName
  980. 29 0 filename
  981. 29 1 GetPathFromName
  982. 17 1
  983. 29 2 char
  984. 17 2
  985. 29 3 Length
  986. 0 14 "{0}"
  987. 13
  988. 8 3
  989. 17 3
  990. 7 "\"
  991. 0 15 "{0}" "{3}" 1
  992. 13
  993. 0 805 &2 [X]
  994. 13
  995. 18 1
  996. 11 00000227
  997. 17 4
  998. 6 3
  999. 5 1
  1000. 3 1
  1001. 8 3
  1002. 10 00000114
  1003. 17 6
  1004. 29 4 InFileName
  1005. 0 14 "{0}"
  1006. 13
  1007. 6 3
  1008. 3 1
  1009. 0 807 "{0}" [X]
  1010. 13
  1011. 8 4
  1012. 17 7
  1013. 29 5 InDir
  1014. 6 3
  1015. 5 1
  1016. 3 1
  1017. 0 806 "{0}" [X]
  1018. 13
  1019. 8 5
  1020. 17 8
  1021. 0 807 "{5}" 1
  1022. 13
  1023. 7 "\"
  1024. 18 1
  1025. 11 00000443
  1026. 17 9
  1027. 0 16 "{5}" "\"
  1028. 13
  1029. 8 5
  1030. 17 11
  1031. 6 5
  1032. 15
  1033. 9
  1034. 6 1
  1035. 15
  1036. 17 12
  1037. 9
  1038. 00009094
  1039.