home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
pcmagazi
/
1991
/
12
/
superscr.wfw
< prev
Wrap
Text File
|
1991-05-30
|
751b
|
21 lines
Sub MAIN
FormatDefineStyles StyleName$()
REM Define a new style based on the current style.
Dim dlg As FormatDefineStylesChar
REM Set the variable "dlg" as the current character style.
GetCurValues dlg
REM Store the current values of "dlg" in DialogRecord.
If SuperScript() Then
REM If SuperScript is on, then...
FormatCharacter .Points = dlg.Points, .Position = 0
REM Format the current selected text to be set as defined
REM in "dlg".
Else
REM Otherwise...
FormatCharacter .Points = Val(dlg.Points) - 2, .Position = "2pt"
REM Format the currently selected text to be two points smaller
REM than as defined in "dlg" and positioned 2 points above the
REM current baseline.
End If
End Sub