1
1

ContainerForm.frm 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. VERSION 5.00
  2. Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} ContainerForm
  3. Caption = "Everything Object as Select github.com/hongwenjun"
  4. ClientHeight = 3015
  5. ClientLeft = 45
  6. ClientTop = 390
  7. ClientWidth = 5730
  8. OleObjectBlob = "ContainerForm.frx":0000
  9. StartUpPosition = 1 'CenterOwner
  10. End
  11. Attribute VB_Name = "ContainerForm"
  12. Attribute VB_GlobalNameSpace = False
  13. Attribute VB_Creatable = False
  14. Attribute VB_PredeclaredId = True
  15. Attribute VB_Exposed = False
  16. Private Sub UserForm_Initialize()
  17. LNG_CODE = API.GetLngCode
  18. Set_BoxName.Caption = i18n("Define as", LNG_CODE) & vbCrLf & i18n("Select", LNG_CODE)
  19. LabelTOL.Caption = i18n("TOL:", LNG_CODE) & GlobalUserData("Tolerance", 1)
  20. Me.Caption = i18n("Everything Object as Select", LNG_CODE) & " github.com/hongwenjun"
  21. Init_Translations Me, LNG_CODE
  22. txtInfo.text = i18n("Usage", LNG_CODE) & ": A->Left B->Right C->Ctrl"
  23. End Sub
  24. Private Sub Set_BoxName_Click()
  25. Container.SetBoxName
  26. Create_Tolerance
  27. LabelTOL.Caption = i18n("TOL:", LNG_CODE) & GlobalUserData("Tolerance", 1)
  28. End Sub
  29. Private Sub RemoveShapes_OutsideBox_Click()
  30. If GlobalUserData.Exists("Tolerance", 1) Then text = GlobalUserData("Tolerance", 1)
  31. Container.Remove_OutsideBox Val(text)
  32. End Sub
  33. Private Sub SelectOnMargin_Click()
  34. Container.Select_SideBox cdrOnMarginOfShape
  35. End Sub
  36. Private Sub AreaSelect_Click()
  37. Container.Select_SideBox cdrOnMarginOfShape + cdrInsideShape
  38. End Sub
  39. Private Sub SelectOutsideBox_Click()
  40. Container.Select_SideBox cdrOutsideShape
  41. End Sub
  42. Private Sub SelectInsideBox_Click()
  43. Container.Select_SideBox cdrInsideShape
  44. End Sub
  45. Private Sub OneKeyToPowerClip_Click()
  46. Container.OneKey_ToPowerClip
  47. End Sub
  48. Private Sub BatchToPowerClip_Click()
  49. Container.Batch_ToPowerClip
  50. End Sub
  51. Private Sub Select_byBlendGroup_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
  52. If GlobalUserData.Exists("Tolerance", 1) Then text = GlobalUserData("Tolerance", 1)
  53. If Button = 2 Then
  54. Container.Select_by_BlendGroup Val(text)
  55. ContainerForm.Caption = i18n("If you like this feature, please visit.", LNG_CODE) & " github.com/hongwenjun"
  56. Exit Sub
  57. ElseIf Shift = fmCtrlMask Then
  58. Container.Select_Quick_BlendGroup Val(text)
  59. LabelTOL.Caption = i18n("Right Click is Better", LNG_CODE)
  60. Else
  61. ' Ctrl + ЪѓБъ
  62. End If
  63. End Sub
  64. Private Sub MADD_MouseUp(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
  65. If Button = 2 Then
  66. Store_Instruction 2, "add"
  67. ElseIf Shift = fmCtrlMask Then
  68. Store_Instruction 1, "add"
  69. Else
  70. Store_Instruction 3, "add"
  71. End If
  72. txtInfo.text = StoreCount
  73. End Sub
  74. Private Sub MSUB_MouseUp(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
  75. If Button = 2 Then
  76. Store_Instruction 2, "sub"
  77. ElseIf Shift = fmCtrlMask Then
  78. Store_Instruction 1, "sub"
  79. Else
  80. Store_Instruction 3, "sub"
  81. End If
  82. txtInfo.text = StoreCount
  83. End Sub
  84. Private Sub MRLW_MouseUp(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
  85. If Button = 2 Then
  86. Store_Instruction 2, "lw"
  87. ElseIf Shift = fmCtrlMask Then
  88. Store_Instruction 1, "lw"
  89. Else
  90. Store_Instruction 3, "lw"
  91. End If
  92. txtInfo.text = StoreCount
  93. End Sub
  94. Private Sub MZERO_MouseUp(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
  95. If Button = 2 Then
  96. Store_Instruction 2, "zero"
  97. ElseIf Shift = fmCtrlMask Then
  98. Store_Instruction 1, "zero"
  99. Else
  100. Store_Instruction 3, "zero"
  101. End If
  102. txtInfo.text = StoreCount
  103. End Sub