home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 November
/
pcwk_11_98B.iso
/
Lotus
/
SPANISH
/
LOTUS027.DSK
/
MODFRAME.TPL
< prev
next >
Wrap
Text File
|
1995-07-19
|
4KB
|
138 lines
Option Public
Print "N·mero de columnas = " .Frame.Layout.NumCols
' Set the layout for this frame to 2 columns
.Frame.Layout.NumCols = 2
' turn painting off
.BeginChange
' set the backcolor for this frame
.Frame.Layout.Background.BackColor.Red = 0
.Frame.Layout.Background.BackColor.Blue = 224
.Frame.Layout.Background.BackColor.Green = 224
.Frame.Layout.Background.BackColor.Override = 0
' set the pattern color for this pattern
.Frame.Layout.Background.Color.Red = 255
.Frame.Layout.Background.Color.Blue = 194
.Frame.Layout.Background.Color.Green = 255
.Frame.Layout.Background.Color.Override = 0
' assign a nice pattern to this frame
.Frame.Layout.Background.Pattern = $LtsFillNeToSwGrad
.EndChange
Sub Script
End Sub
Sub Main
Print "N·mero de columnas= " .Frame.Layout.NumCols
' Set the layout for this frame to 2 columns
.Frame.Layout.NumCols = 2
' turn painting off
.BeginChange
' set the backcolor for this frame
.Frame.Layout.Background.BackColor.Red = 0
.Frame.Layout.Background.BackColor.Blue = 224
.Frame.Layout.Background.BackColor.Green = 224
.Frame.Layout.Background.BackColor.Override = 0
' set the pattern color for this pattern
.Frame.Layout.Background.Color.Red = 255
.Frame.Layout.Background.Color.Blue = 194
.Frame.Layout.Background.Color.Green = 255
.Frame.Layout.Background.Color.Override = 0
' assign a nice pattern to this frame
.Frame.Layout.Background.Pattern = $LtsFillNeToSwGrad
.EndChange
End Sub
Sub FrameMe
.Frame.Layout.NumCols = 2
.BeginChange
.Frame.Layout.Background.BackColor.Red = 0
.Frame.Layout.Background.BackColor.Blue = 224
.Frame.Layout.Background.BackColor.Green = 224
.Frame.Layout.Background.BackColor.Override = 0
.Frame.Layout.Background.Color.Red = 255
.Frame.Layout.Background.Color.Blue = 194
.Frame.Layout.Background.Color.Green = 255
.Frame.Layout.Background.Color.Override = 0
.Frame.Layout.Background.Pattern = $LtsFillNeToSwGrad
.EndChange
End Sub
Sub StyleInfo
' styles are stored in a collection
' the collection is accessible through the foundry at the division level
Dim MyStyles As ParagraphStyleCollection
Set MyStyles = .Division.Foundry.ParagraphStyles
NumberStyles = MyStyles.Count
Forall Style In MyStyles
Print "Nombre: "Style.Name
Print "Descripci≤n: "Style.Description
Print "Fuente - Nombre "Style.Font.FontName
Print "Fuente - Tama±o " Style.Font.Size
Print "Fuente - Negrita"Style.Font.Bold
Print "Fuente - TrueType "Style.Font.FontMetrics.IsTrueType
Print " --------------------------"
End Forall
End Sub
Sub GetAllLayouts()
'Retrieve all of the layouts in this division
Dim AllLayouts As LayoutCollection
Set AllLayouts = .Division.Foundry.Layouts
Forall Layout In AllLayouts
Print "Informaci≤n sobre el formato"
Print "Nombre de clase ",Layout.ClassName
Print "Nombre", Layout.Name
Print "Nombre del editor", Layout.EditorName
Print "------------------------------------------"
End Forall
End Sub
Sub CommOpen()
Dim mydlg As LWPCommonDialog
Set MyDlg = Bind("")
mydlg.Filter = "Texto|*.*|Ami Pro|*.sam"
mydlg.text = "Abrir archivo com·n"
mydlg.FilterIndex = 1
mydlg.type = 2
mydlg.InitDir = "d:\"
'Dim ed As EditBox
'Set ed = mydlg.EditBoxes(1152)
'Dim combo As ComboBox
'Set combo = mydlg.ComboBoxes(1136)
'On Event Changed From ed Call edchg
'On Event Changed From combo Call combochange
'On Event DialogEvent From mydlg Call DlgProc
mydlg.Show(0)
Print mydlg.FileName
End Sub
Sub MyDialogEvent(Source As LWPCustomDialog, Controlid As Integer, Why As Integer)
If (Controlid = 0) And (Why = 7007) Then
Messagebox ThisDialog.GetControlText( 8000 )
End If
End Sub