LinesForm.frm 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. VERSION 5.00
  2. Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} LinesForm
  3. Caption = "LinesForm"
  4. ClientHeight = 855
  5. ClientLeft = 45
  6. ClientTop = 390
  7. ClientWidth = 4725
  8. OleObjectBlob = "LinesForm.frx":0000
  9. StartUpPosition = 1 '所有者中心
  10. End
  11. Attribute VB_Name = "LinesForm"
  12. Attribute VB_GlobalNameSpace = False
  13. Attribute VB_Creatable = False
  14. Attribute VB_PredeclaredId = True
  15. Attribute VB_Exposed = False
  16. '// This is free and unencumbered software released into the public domain.
  17. '// For more information, please refer to https://github.com/hongwenjun
  18. Private Sub MyPen_Click()
  19. On Error GoTo ErrorHandler
  20. API.BeginOpt
  21. lines.Nodes_DrawLines
  22. ErrorHandler:
  23. API.EndOpt
  24. End Sub
  25. '// 左键右键Ctrl三键控制
  26. Private Sub PenDrawLines_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
  27. On Error GoTo ErrorHandler
  28. API.BeginOpt
  29. If Button = 2 Then
  30. lines.Draw_Multiple_Lines cdrAlignVCenter
  31. ElseIf Shift = fmCtrlMask Then
  32. lines.Draw_Multiple_Lines cdrAlignHCenter
  33. Else
  34. lines.Draw_Multiple_Lines 0
  35. End If
  36. ErrorHandler:
  37. API.EndOpt
  38. End Sub
  39. '''//// 傻瓜火车排列 ////'''
  40. Private Sub TOP_ALIGN_BT_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
  41. If Button = 2 Then
  42. Tools.Simple_Train_Arrangement 3#
  43. ElseIf Shift = fmCtrlMask Then
  44. Tools.Simple_Train_Arrangement 0#
  45. Else
  46. Tools.Simple_Train_Arrangement Set_Space_Width
  47. End If
  48. End Sub
  49. '''//// 傻瓜阶梯排列 ////'''
  50. Private Sub LEFT_ALIGN_BT_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
  51. If Button = 2 Then
  52. Tools.Simple_Ladder_Arrangement 3#
  53. ElseIf Shift = fmCtrlMask Then
  54. Tools.Simple_Ladder_Arrangement 0#
  55. Else
  56. Tools.Simple_Ladder_Arrangement Set_Space_Width
  57. End If
  58. End Sub
  59. Private Sub MakeBox_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
  60. On Error GoTo ErrorHandler
  61. API.BeginOpt
  62. Dim size As Variant
  63. size = input_box_lwh
  64. l = size(0): w = size(1): h = size(2): b = size(3)
  65. If b = 0 Then b = 15
  66. If Button = 2 Then
  67. box.Simple_box_five l, w, h, b
  68. ElseIf Shift = fmCtrlMask Then
  69. box.Simple_box_four l, w, h, b
  70. Else
  71. box.Simple_box_three l, w, h, b
  72. End If
  73. ErrorHandler:
  74. API.EndOpt
  75. End Sub
  76. Private Sub Cmd_3D_Click()
  77. box.Simple_3Deffect
  78. End Sub