VERSION 5.00 Begin VB.Form FormLineaHorizontal AutoRedraw = -1 'True BorderStyle = 1 'Fixed Single Caption = "Nueva Restriccion Horizontal" ClientHeight = 3030 ClientLeft = 45 ClientTop = 435 ClientWidth = 3975 LinkTopic = "Form1" MaxButton = 0 'False MinButton = 0 'False ScaleHeight = 3030 ScaleWidth = 3975 StartUpPosition = 1 'CenterOwner Begin VB.CommandButton Command2 Caption = "Cancelar" Height = 375 Left = 2280 TabIndex = 3 Top = 2040 Width = 1215 End Begin VB.CommandButton Command1 Caption = "Aceptar" Height = 375 Left = 2280 TabIndex = 2 Top = 1440 Width = 1215 End Begin VB.Frame Frame1 Caption = "Configuración" Height = 855 Left = 2160 TabIndex = 1 Top = 240 Width = 1575 Begin VB.TextBox Text1 Height = 285 Left = 840 TabIndex = 5 Text = "5" Top = 420 Width = 375 End Begin VB.Label Label1 AutoSize = -1 'True Caption = "Y (m.) :" Height = 195 Left = 120 TabIndex = 4 Top = 480 Width = 495 End End Begin VB.PictureBox Picture1 Height = 2415 Left = 120 Picture = "FormLineaHorizontal.frx":0000 ScaleHeight = 2355 ScaleWidth = 1755 TabIndex = 0 Top = 240 Width = 1815 End Begin VB.Label Editando Caption = "NO" Height = 255 Left = 3000 TabIndex = 7 Top = 2640 Visible = 0 'False Width = 495 End Begin VB.Label Label2 Caption = "Editando :" Height = 255 Left = 2040 TabIndex = 6 Top = 2640 Visible = 0 'False Width = 735 End End Attribute VB_Name = "FormLineaHorizontal" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Option Explicit Private Sub Command1_Click() If (CSng(Text1.Text) < 0) Then MsgBox "Atención. La altura no puede ser negativa", vbExclamation, "MitLoop" Else If (Editando = "NO") Then 'Principal.objetoactual = Principal.objetoactual + 1 Module1.añadeLinea Else Me.Hide End If End If End Sub Private Sub Command2_Click() Module1.HaCancelado = True Unload Me End Sub Private Sub Form_Load() If (Principal.idioma = "Español") Then Me.Caption = "Nueva Restricción Horizontal" Frame1.Caption = "Configuración" Command1.Caption = "Aceptar" Command2.Caption = "Cancelar" Else Me.Caption = "New Horizontal Constraint" Frame1.Caption = "Configuration" Command1.Caption = "OK" Command2.Caption = "Cancel" End If End Sub