home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 November
/
pcwk_11_98a.iso
/
Wtestowe
/
SOFTSRC
/
vtrial15.exe
/
DATA.1
/
NewLayer.frm
< prev
next >
Wrap
Text File
|
1997-03-20
|
3KB
|
105 lines
VERSION 4.00
Begin VB.Form NewNameForm
BorderStyle = 1 'Fixed Single
Caption = "New Layer"
ClientHeight = 1680
ClientLeft = 1560
ClientTop = 5190
ClientWidth = 4575
Height = 2085
Left = 1500
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1680
ScaleWidth = 4575
Top = 4845
Width = 4695
Begin VB.CommandButton CancelCmd
Caption = "Cancel"
Height = 375
Left = 2640
TabIndex = 3
Top = 1200
Width = 1455
End
Begin VB.CommandButton OKCmd
Caption = "Accept"
Default = -1 'True
Height = 375
Left = 480
TabIndex = 2
Top = 1200
Width = 1455
End
Begin VB.TextBox NewLayerName
Height = 375
Left = 600
TabIndex = 0
Text = "NewLayerName"
Top = 600
Width = 3375
End
Begin VB.Label Label1
Alignment = 2 'Center
Caption = "Enter Name for New Layer:"
Height = 255
Left = 120
TabIndex = 1
Top = 240
Width = 4335
End
End
Attribute VB_Name = "NewNameForm"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Private Sub CancelCmd_Click()
'
' quit without saving new layer name
'
Unload NewNameForm
End Sub
Private Sub Form_Load()
'
' get a new name form
'
WindowOnTop hWnd
NewNameForm.Left = (Screen.Width - NewNameForm.Width) / 2
NewNameForm.Top = (Screen.Height - NewNameForm.Height) / 2
Select Case gblMode
Case 1 ' new layer name
NewNameForm.Caption = "New Layer"
Label1.Caption = "Enter Name for New Layer"
Case 2
NewNameForm.Caption = "New Text Style"
Label1.Caption = "Enter name for New Text Style"
End Select
NewLayerName.Text = ""
End Sub
Private Sub OKCmd_Click()
'
' ok, take the entry as a new layer
'
Select Case gblMode
Case 1 ' new layer name
If (Len(NewLayerName.Text) > 0) Then
MainForm.LayerList.AddItem NewLayerName.Text
End If
Case 2 ' new text style name
If (Len(NewLayerName.Text) > 0) Then
MainForm.TextStyleList.AddItem NewLayerName.Text
End If
End Select
Unload NewNameForm
End Sub