LinesForm.frm 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. Private Sub MyPen_Click()
  17. lines.Nodes_DrawLines
  18. End Sub
  19. '// 左键右键Ctrl三键控制
  20. Private Sub PenDrawLines_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
  21. If Button = 2 Then
  22. lines.Draw_Multiple_Lines cdrAlignVCenter
  23. ElseIf Shift = fmCtrlMask Then
  24. lines.Draw_Multiple_Lines cdrAlignHCenter
  25. Else
  26. lines.Draw_Multiple_Lines 0
  27. End If
  28. End Sub
  29. '''//// 傻瓜火车排列 ////'''
  30. Private Sub TOP_ALIGN_BT_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
  31. If Button = 2 Then
  32. Tools.Simple_Train_Arrangement 3#
  33. ElseIf Shift = fmCtrlMask Then
  34. Tools.Simple_Train_Arrangement 0#
  35. Else
  36. Tools.Simple_Train_Arrangement Set_Space_Width
  37. End If
  38. End Sub
  39. '''//// 傻瓜阶梯排列 ////'''
  40. Private Sub LEFT_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_Ladder_Arrangement 3#
  43. ElseIf Shift = fmCtrlMask Then
  44. Tools.Simple_Ladder_Arrangement 0#
  45. Else
  46. Tools.Simple_Ladder_Arrangement Set_Space_Width
  47. End If
  48. End Sub
  49. Private Sub MakeBox_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
  50. On Error GoTo ErrorHandler
  51. API.BeginOpt
  52. Dim size As Variant
  53. size = input_box_lwh
  54. l = size(0): w = size(1): h = size(2): b = size(3)
  55. If b = 0 Then b = 15
  56. If Button = 2 Then
  57. box.Simple_box_five l, w, h, b
  58. ElseIf Shift = fmCtrlMask Then
  59. box.Simple_box_four l, w, h, b
  60. Else
  61. box.Simple_box_three l, w, h, b
  62. End If
  63. ErrorHandler:
  64. API.EndOpt
  65. End Sub
  66. Private Sub Cmd_3D_Click()
  67. box.Simple_3Deffect
  68. End Sub