home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 July & August
/
Pcwk78b98.iso
/
Smart30
/
ENGLISH
/
PRODUCTS
/
LOTUS018.DSK
/
CNTRFRAM.SMM
< prev
next >
Wrap
INI File
|
1992-06-30
|
9KB
|
638 lines
[ver]
4
[sty]
_macro.sty
[files]
[charset]
82
ANSI (Windows, IBM CP 1252)
[revisions]
0
[prn]
HP LaserJet III
[port]
LPT2:
[lang]
1
[desc]
Center frame horizontally on page
Lotus Technical Support
Advanced
FrameModType
noautorun
709942410
19
705189788
720
3
0
0
0
0
0
[fopts]
0
1
0
0
[lnopts]
2
Body Text
1
[docopts]
5
2
[GramStyle]
[ParaNum]
1
[tag]
Outline2
5
[fnt]
Arial
240
0
16384
[algn]
1
1
216
0
0
[spc]
33
273
1
0
0
1
100
[brk]
4
[line]
8
0
1
0
1
1
1
10
10
1
[spec]
0
2
0
1
1
0
0
0
0
[nfmt]
272
1
3
.
,
$
Outline2
0
0
[lay]
Standard
513
[rght]
15840
12240
1
1440
1440
1
1440
1440
0
1
0
1
0
2
1
1440
10800
12
1
720
1
1440
1
2160
1
2880
1
3600
1
4320
1
5040
1
5760
1
6480
1
7200
1
7920
1
8640
[hrght]
[lyfrm]
1
11200
0
0
12240
1440
0
1
3
1 0 0 0 0 0 0
0
0
1
[frmlay]
1440
12240
1
1440
72
1
792
1440
0
1
0
1
1
0
1
1440
10800
1
3
9360
[txt]
<+B><:f240,2Times New Roman,>Centre<:f><:f240,2Times New Roman,> Frame<:f>
<+B>Moves frame to centre of page
>
[frght]
[lyfrm]
1
13248
0
14400
12240
15840
0
1
3
1 0 0 0 0 0 0
0
0
2
[frmlay]
15840
12240
1
1440
792
1
14472
1440
0
1
0
1
1
0
1
1440
10800
2
2
4680
3
9360
[txt]
@@1992 Lotus Development Corporation Pete Housley
>
[elay]
[l1]
0
[pg]
3
44 0 34 0 0 1 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
88 0 40 0 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
91 0 10 1025 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
[edoc]
@Function@<:#293,9360>'declares and defines
@Outline2@<:#284,9360>define GetFocus()
@Outline2@<:#284,9360> DllCall("user,GetFocus,H")
@Outline2@<:#284,9360>define SetFocus()
@Outline2@<:#284,9360> DllCall("user,SetFocus,HH",%1)
@Outline2@<:#284,9360>define EnableWindow()
@Outline2@<:#284,9360> DllCall("user,EnableWindow,HHH", %1, %2)
@Function@<:#293,9360>Function CenterFrame()
@Outline2@<:#284,9360>DefStr Length, Wide, Units, Paper, WinDir, INI, in, Fwide, FHigh, Top, Left, LMargin
@Outline2@<:#284,9360>DefStr TMargin, RMargin, BMargin, Funits, FType, FRound, FMacName
@Outline2@<:#284,9360>WinDir=GetWindowsDirectory$()
@Outline2@<:#284,9360>INI=strcat$(Windir, "AMIPRO2.INI")
@Outline2@<:#284,9360>in=getprofilestring$("CenterFrame", "Default", INI)
@Outline2@<:#284,9360>if in=""
@Outline2@<:#284,9360> writeprofilestring("CenterFrame", "Default", "0", INI)
@Outline2@<:#284,9360> in=0
@Outline2@<:#284,9360>endif
@Outline2@<:#284,9360>recheck:
@Outline2@<:#284,9360>If IsFrameSelected()=0
@Outline2@<:#284,9360> usercontrol("Please select a frame, then click resume.")
@Outline2@<:#284,9360> goto recheck
@Outline2@<:#284,9360> endif
@Outline2@<:#284,9360>If IsFrameSelected()<<<;>0
@Outline2@<:#284,9360> fillitem=20 + in
@Outline2@<:#284,9360> FillEdit(fillitem, 1)
@Outline2@<:#284,9360> rmac=GetRunningMacroFile$()
@Outline2@<:#284,9360> SetDlgCallBack(0, "{rmac}!SetButton")
@Outline2@<:#284,9360> setdlgcallback(30, "{rmac}!FLayout")
@Outline2@<:#284,9360> box=DialogBox(".", "Options")
@Outline2@<:#284,9360> if box=0
@Outline2@<:#284,9360> Exit Function
@Outline2@<:#284,9360> EndIf
@Outline2@<:#284,9360> Cnt=GetLayoutParmCnt(ModLayoutRightPage)
@Outline2@<:#284,9360> DIM Info(Cnt)
@Outline2@<:#284,9360> GetLayoutParameters(ModLayoutRightPage, &Info)
@Outline2@<:#284,9360> LeftMargin=Info(1)
@Outline2@<:#284,9360> RightMargin=Info(3)
@Outline2@<:#284,9360> TopMargin=Info(2)
@Outline2@<:#284,9360> BottomMargin=Info(4)
@Outline2@<:#284,9360> GetLayoutPageSize(&Length, &Wide, &Units, &Paper)
@Outline2@<:#568,9360> GetCurFrameBorders(&FWide, &FHigh, &Top, &Left, &LMargin, &TMargin, &RMargin, &BMargin, &Funits)
@Outline2@<:#284,9360> if GetDialogField$(21)=1
@Outline2@<:#284,9360> LReduce=TopMargin + BottomMargin
@Outline2@<:#284,9360> WReduce=LeftMargin + RightMargin
@Outline2@<:#284,9360> l=fHigh
@Outline2@<:#284,9360> w=fWide
@Outline2@<:#284,9360> x=(((Length-LReduce) /2)-(fHigh/2))+TopMargin
@Outline2@<:#284,9360> y=(((Wide-Wreduce) /2)-(fWide/2))+LeftMargin
@Outline2@<:#284,9360> writeprofilestring("CenterFrame", "Default", "1", INI)
@Outline2@<:#284,9360> Elseif GetDialogField$(20)=1
@Outline2@<:#284,9360> x=((Length) /2)-(fHigh/2)
@Outline2@<:#284,9360> y=((Wide) /2)-(fwide/2)
@Outline2@<:#284,9360> writeprofilestring("CenterFrame", "Default", "0", INI)
@Outline2@<:#284,9360> EndIf
@Outline2@<:#284,9360> if getmode() <<<;> 1
@Outline2@<:#284,9360> layoutmode()
@Outline2@<:#284,9360> endif
@Outline2@<:#284,9360> GetCurFrameType(&FType, &FRound, &FMacName)
@Outline2@<:#284,9360> if ftype <;> 524288
@Outline2@<:#284,9360> ftype=128
@Outline2@<:#284,9360> endif
@Outline2@<:#284,9360> FrameModInit( )
@Outline2@<:#284,9360> FrameModType(Ftype, Fround, FMacName)
@Outline2@<:#568,9360> FrameModBorders(fWide, FHigh, <:f240,BArial,255,0,0>top<:f>, y, LMargin, TMargin, RMargin, BMargin,1 )
@Outline2@<:#284,9360> FrameModFinish( )
@Outline2@<:#284,9360>Endif
@Outline2@<:#284,9360>End Function
@Function@<:#293,9360>Function SetButton(Hdlg)
@Outline2@<:#284,9360>WinDir=GetWindowsDirectory$()
@Outline2@<:#284,9360>INI=strcat$(Windir, "AMIPRO2.INI")
@Outline2@<:#284,9360>in=getprofilestring$("CenterFrame", "Default", INI)
@Outline2@<:#284,9360>fillitem= 20 + in
@Outline2@<:#284,9360>setfocus(getdlgitem(hdlg, fillitem))
@Outline2@<:#284,9360>end function
@Function@<:#293,9360>Function FLayout(hdlg)
@Outline2@<:#284,9360>focus=getfocus()
@Outline2@<:#284,9360>enablewindow(hdlg, 0)
@Outline2@<:#284,9360>FrameLayout
@Outline2@<:#284,9360>enablewindow(hdlg, 1)
@Outline2@<:#284,9360>setfocus(focus)
@Outline2@<:#284,9360>end function
@Function@<:#293,9360>DIALOG Options
@Outline2@<:#284,9360>-2134376448 6 126 29 140 55 "" "" "Centre Frame Horizontally"
@Outline2@<:#284,9360>FONT 8 "Helv"
@Outline2@<:#284,9360>4 3 82 38 24 1342308359 "button" "Centre frame within:" 0
@Outline2@<:#284,9360>9 13 66 12 21 1342242825 "button" "&Margins" 0
@Outline2@<:#284,9360>9 25 65 12 20 1342242825 "button" "&Page" 0
@Outline2@<:#284,9360>96 3 40 14 1 1342373889 "button" "OK" 0
@Outline2@<:#284,9360>96 20 40 14 2 1342373888 "button" "Cancel" 0
@Outline2@<:#284,9360>96 37 40 14 30 1342373888 "button" "&Layout..." 0
@Outline2@<:#284,9360>END DIALOG
>
[Embedded]
00007084
>
[macsum] 4
CenterFrame 0 0 35 7
SetButton 1370 1 5 67
FLayout 1567 1 2 74
Options 1743 0 -1 81
[macse]
14 CenterFrame
0 1288
13
8 5
0 16 "{5}" "AMIPRO2.INI"
13
8 6
0 286 "CenterFrame" "Default" "{6}"
13
8 7
6 7
7 ""
18 0
11 00000195
0 287 "CenterFrame" "Default" "0" "{6}"
5 0
8 7
0 800
13
5 0
18 0
11 00000292
0 7 "Please select a frame, then click resume."
10 00000195
0 800
13
5 0
18 1
11 00001358
5 20
6 7
3 0
8 20
0 31 "{20}" 1
0 802
13
8 21
0 41 0 "{21}!SetButton"
0 41 30 "{21}!FLayout"
0 26 "." "Options"
13
8 22
6 22
5 0
18 0
11 00000502
6 0
15
9
0 1285 363
13
8 23
6 23
21 24 [X]
0 1286 363 &24
5 1
22 24
8 25
5 3
22 24
8 26
5 2
22 24
8 27
5 4
22 24
8 28
0 1282 &1 &2 &3 &4
0 795 &8 &9 &10 &11 &12 &13 &14 &15 &16
0 27 21
13
5 1
18 0
11 00000975
6 27
6 28
3 0
8 29
6 25
6 26
3 0
8 30
6 9
8 31
6 8
8 32
6 1
6 29
3 1
5 2
4 1
6 9
5 2
4 1
3 1
6 27
3 0
8 33
6 2
6 30
3 1
5 2
4 1
6 8
5 2
4 1
3 1
6 25
3 0
8 34
0 287 "CenterFrame" "Default" "1" "{6}"
10 00001135
0 27 20
13
5 1
18 0
11 00001135
6 1
5 2
4 1
6 9
5 2
4 1
3 1
8 33
6 2
5 2
4 1
6 8
5 2
4 1
3 1
8 34
0 287 "CenterFrame" "Default" "0" "{6}"
0 29
13
5 1
18 1
11 00001178
2 210 1
0 794 &17 &18 &19
6 17
5 524288
18 3
11 00001245
5 128
8 17
2 421 1
2 417 1 "{17}" "{18}" "{19}"
2 418 1 "{8}" "{9}" "{10}" "{34}" "{12}" "{13}" "{14}" "{15}" 1
2 420 1
6 0
15
9
14 SetButton
0 1288
13
8 2
0 16 "{2}" "AMIPRO2.INI"
13
8 3
0 286 "CenterFrame" "Default" "{3}"
13
8 4
5 20
6 4
3 0
8 5
0 44 "{0}" "{5}"
13
0 284 "user,SetFocus,HH" [X]
6 1
15
9
14 FLayout
0 284 "user,GetFocus,H"
13
8 2
0 284 "user,EnableWindow,HHH" "{0}" 0
24 402
0 284 "user,EnableWindow,HHH" "{0}" 1
0 284 "user,SetFocus,HH" "{2}"
6 1
15
9
DIALOG Options
-2134376448 6 126 29 140 55 "" "" "Centre Frame Horizontally"
FONT 8 "Helv"
4 3 82 38 24 1342308359 "button" "Centre frame within:" 0
9 13 66 12 21 1342242825 "button" "&Margins" 0
9 25 65 12 20 1342242825 "button" "&Page" 0
96 3 40 14 1 1342373889 "button" "OK" 0
96 20 40 14 2 1342373888 "button" "Cancel" 0
96 37 40 14 30 1342373888 "button" "&Layout..." 0
00007109