123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- VERSION 5.00
- Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} LinesForm
- Caption = "LinesForm"
- ClientHeight = 1620
- ClientLeft = 45
- ClientTop = 390
- ClientWidth = 4680
- OleObjectBlob = "LinesForm.frx":0000
- StartUpPosition = 1
- End
- Attribute VB_Name = "LinesForm"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- <<<<<<< HEAD
- Private Const TOOLNAME As String = "LYVBA"
- Private Const SECTION As String = "LinesForm"
- Private Sub UserForm_Initialize()
- With Me
- .StartUpPosition = 0
- .Left = Val(GetSetting(TOOLNAME, SECTION, "form_left", 900))
- .Top = Val(GetSetting(TOOLNAME, SECTION, "form_top", 200))
- End With
- End Sub
- Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
- saveFormPos True
- End Sub
- Sub saveFormPos(bDoSave As Boolean)
- If bDoSave Then
- SaveSetting TOOLNAME, SECTION, "form_left", Me.Left
- SaveSetting TOOLNAME, SECTION, "form_top", Me.Top
- End If
- End Sub
- =======
- >>>>>>> 06150b8661ccde06bd8f1e2522c77ce48be72b83
- Private Sub MyPen_Click()
- On Error GoTo ErrorHandler
- API.BeginOpt
- lines.Nodes_DrawLines
- ErrorHandler:
- API.EndOpt
- End Sub
- <<<<<<< HEAD
- Private Sub PenDrawLines_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal y As Single)
- =======
- Private Sub PenDrawLines_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
- >>>>>>> 06150b8661ccde06bd8f1e2522c77ce48be72b83
- On Error GoTo ErrorHandler
- API.BeginOpt
- If Button = 2 Then
- lines.Draw_Multiple_Lines cdrAlignVCenter
-
- ElseIf Shift = fmCtrlMask Then
- lines.Draw_Multiple_Lines cdrAlignHCenter
- Else
- lines.Draw_Multiple_Lines 0
- End If
- ErrorHandler:
- API.EndOpt
- End Sub
- Private Sub TOP_ALIGN_BT_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal y As Single)
- If Button = 2 Then
- Tools.Simple_Train_Arrangement 3#
- ElseIf Shift = fmCtrlMask Then
- Tools.Simple_Train_Arrangement 0#
- Else
- Tools.Simple_Train_Arrangement Set_Space_Width
- End If
- End Sub
- Private Sub LEFT_ALIGN_BT_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal y As Single)
- If Button = 2 Then
- Tools.Simple_Ladder_Arrangement 3#
- ElseIf Shift = fmCtrlMask Then
- Tools.Simple_Ladder_Arrangement 0#
- Else
- Tools.Simple_Ladder_Arrangement Set_Space_Width
- End If
- End Sub
- Private Sub MakeBox_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal y As Single)
- On Error GoTo ErrorHandler
- API.BeginOpt
-
- Dim size As Variant
- size = input_box_lwh
- l = size(0): w = size(1): h = size(2): b = size(3)
- If b = 0 Then b = 15
-
- If Button = 2 Then
- box.Simple_box_five l, w, h, b
- ElseIf Shift = fmCtrlMask Then
- box.Simple_box_four l, w, h, b
- Else
- box.Simple_box_three l, w, h, b
- End If
-
- ErrorHandler:
- API.EndOpt
- End Sub
- Private Sub Cmd_3D_Click()
- box.Simple_3Deffect
- End Sub
- Private Sub Rotate_Shapes_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal y As Single)
- If Button = 2 Then
- Shapes_Rotate -90
- ElseIf Shift = fmCtrlMask Then
- Shapes_Rotate 90
- Else
- Shapes_Rotate -45
- End If
- End Sub
- Private Sub Move_Left_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal y As Single)
- If Button = 2 Then
- move_shapes 100, 0
- ElseIf Shift = fmCtrlMask Then
- move_shapes -100, 0
- Else
- Duplicate_shapes -100, 0
- End If
- End Sub
- Private Sub Move_Up_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal y As Single)
- If Button = 2 Then
- move_shapes 0, -100
- ElseIf Shift = fmCtrlMask Then
- move_shapes 0, 100
- Else
- Duplicate_shapes 0, 100
- End If
- End Sub
- Private Sub Average_Distance_BT_Click()
- Average_Distance
- End Sub
- Private Sub chkAutoDistribute_Click()
- AutoDistribute_Key = chkAutoDistribute.Value
- End Sub
|