123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686 |
- VERSION 5.00
- Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} Toolbar
- Caption = "Toolbar"
- ClientHeight = 4230
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 6840
- OleObjectBlob = "Toolbar.frx":0000
- End
- Attribute VB_Name = "Toolbar"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Const Github_Version = 1
- #If VBA7 Then
- Private Declare PtrSafe Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
- Private Declare PtrSafe Function DrawMenuBar Lib "user32" (ByVal hwnd As Long) As Long
- Private Declare PtrSafe Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
- Private Declare PtrSafe Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
- Private Declare PtrSafe Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
- Private Declare PtrSafe Function GetSystemMetrics Lib "user32" (ByVal nIndex As Long) As Long
- Private Declare PtrSafe Function SetLayeredWindowAttributes Lib "user32" (ByVal hwnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long
-
- #Else
- Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
- Private Declare Function DrawMenuBar Lib "user32" (ByVal hWnd As Long) As Long
- Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long) As Long
- Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
- Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
- Private Declare Function GetSystemMetrics Lib "user32" (ByVal nIndex As Long) As Long
- Private Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hWnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long
- #End If
- Private Const GWL_STYLE As Long = (-16)
- Private Const GWL_EXSTYLE = (-20)
- Private Const WS_CAPTION As Long = &HC00000
- Private Const WS_EX_DLGMODALFRAME = &H1&
- Private Const WS_EX_LAYERED = &H80000
- Private Const LWA_COLORKEY = &H1
- Private Const LWA_ALPHA = &H2
- Public UIL_Key As Boolean
- Public pic1, pic2
- Private Sub MakeUserFormTransparent(frm As Object, Optional Color As Variant)
-
- Dim formhandle As Long
- Dim bytOpacity As Byte
-
- formhandle = FindWindow(vbNullString, Me.Caption)
- If IsMissing(Color) Then Color = vbWhite
- bytOpacity = 100
-
- SetWindowLong formhandle, GWL_EXSTYLE, GetWindowLong(formhandle, GWL_EXSTYLE) Or WS_EX_LAYERED
-
-
-
- Me.BackColor = Color
- SetLayeredWindowAttributes formhandle, Color, bytOpacity, LWA_COLORKEY
- End Sub
- Private Sub Change_UI_Close_Voice_Click()
- SaveSetting "LYVBA", "Settings", "SpeakHelp", "0"
- MsgBox "请给我支持!" & vbNewLine & "您的支持,我才能有动力添加更多功能." & vbNewLine & "蘭雅CorelVBA工具 永久免费开源" & vbNewLine & "主题图片文件名ToolBar.jpg 安装包中有多套皮肤选用"
- End Sub
- Private Sub UserForm_Initialize()
- Dim IStyle As Long
- Dim hwnd As Long
-
- hwnd = FindWindow("ThunderDFrame", Me.Caption)
- IStyle = GetWindowLong(hwnd, GWL_STYLE)
- IStyle = IStyle And Not WS_CAPTION
- SetWindowLong hwnd, GWL_STYLE, IStyle
- DrawMenuBar hwnd
- IStyle = GetWindowLong(hwnd, GWL_EXSTYLE) And Not WS_EX_DLGMODALFRAME
- SetWindowLong hwnd, GWL_EXSTYLE, IStyle
-
- With Me
- .StartUpPosition = 0
- .Left = Val(GetSetting("LYVBA", "Settings", "Left", "400"))
- .Top = Val(GetSetting("LYVBA", "Settings", "Top", "55"))
- .Height = 30
- .width = 336
- End With
- OutlineKey = True
- OptKey = True
-
- Bleed.text = API.GetSet("Bleed")
- Line_len.text = API.GetSet("Line_len")
- Outline_Width.text = GetSetting("LYVBA", "Settings", "Outline_Width", "0.2")
-
- UIFile = Path & "GMS\LYVBA\" & HDPI.GetHDPIPercentage & "\ToolBar.jpg"
- If API.ExistsFile_UseFso(UIFile) Then
- UI.Picture = LoadPicture(UIFile)
- Set pic1 = LoadPicture(UIFile)
- End If
- UIL = Path & "GMS\LYVBA\ToolBar1.jpg"
- If API.ExistsFile_UseFso(UIL) Then
- Set pic2 = LoadPicture(UIL)
- UIL_Key = True
- End If
-
- #If VBA7 Then
- MakeUserFormTransparent Me, RGB(26, 22, 35)
- #Else
-
- #End If
- End Sub
- Private Sub UI_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
- UI.Visible = False
- If Y > 1 And Y < 16 And UIL_Key Then
- UI.Picture = pic2
- ElseIf Y > 16 And UIL_Key Then
- UI.Picture = pic1
- End If
- UI.Visible = True
-
- End Sub
- Private Sub UserForm_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
- If Button Then
- mx = x: my = Y
- End If
-
- With Me
- .Height = 30
- End With
- End Sub
- Private Sub UserForm_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
- If Button Then
- Me.Left = Me.Left - mx + x
- Me.Top = Me.Top - my + Y
- End If
- End Sub
- Private Sub LOGO_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
- If Abs(x - 14) < 14 And Abs(Y - 14) < 14 And Button = 2 Then
- Me.width = 336
- OPEN_UI_BIG.Left = 322
- UI.Visible = True
- LOGO.Visible = False
- TOP_ALIGN_BT.Visible = False
- LEFT_ALIGN_BT.Visible = False
- Exit Sub
- ElseIf Shift = fmCtrlMask Then
- mx = x: my = Y
- Else
- Unload Me
- End If
- End Sub
- Private Sub LOGO_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
- If Button Then
- Me.Left = Me.Left - mx + x
- Me.Top = Me.Top - my + Y
- End If
- End Sub
- Private Sub UI_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
- Dim c As New Color
-
- Dim pos_x As Variant, pos_y As Variant
- pos_y = Array(14)
- pos_x = Array(14, 41, 67, 94, 121, 148, 174, 201, 228, 254, 281, 308, 334, 361, 388, 415, 441, 468, 495)
-
- If Shift = 2 Then
- If Abs(x - pos_x(0)) < 14 And Abs(Y - pos_y(0)) < 14 Then
-
- Tools.guideangle CorelDRAW.ActiveSelectionRange, 3
-
- ElseIf Abs(x - pos_x(1)) < 14 And Abs(Y - pos_y(0)) < 14 Then
-
- AdobeThumbnail_Click
-
- ElseIf Abs(x - pos_x(2)) < 14 And Abs(Y - pos_y(0)) < 14 Then
-
- Tools.Split_Segment
-
- ElseIf Abs(x - pos_x(3)) < 14 And Abs(Y - pos_y(0)) < 14 Then
-
- Tools.Take_Apart_Character
-
- ElseIf Abs(x - pos_x(4)) < 14 And Abs(Y - pos_y(0)) < 14 Then
-
-
- ElseIf Abs(x - pos_x(5)) < 14 And Abs(Y - pos_y(0)) < 14 Then
-
-
- ElseIf Abs(x - pos_x(6)) < 14 And Abs(Y - pos_y(0)) < 14 Then
-
- autogroup("group", 1).CreateSelection
-
- ElseIf Abs(x - pos_x(8)) < 14 And Abs(Y - pos_y(0)) < 14 Then
-
- Me.Height = 30 + 45
-
- ElseIf Abs(x - pos_x(9)) < 14 And Abs(Y - pos_y(0)) < 14 Then
-
-
- End If
- Exit Sub
- End If
-
- If Button = 2 Then
- If Abs(x - pos_x(0)) < 14 And Abs(Y - pos_y(0)) < 14 Then
-
- Me.width = 30: Me.Height = 30
- UI.Visible = False: LOGO.Visible = True
- ElseIf Abs(x - pos_x(1)) < 14 And Abs(Y - pos_y(0)) < 14 Then
-
- Tools.Align_Page_Center
- ElseIf Abs(x - pos_x(2)) < 14 And Abs(Y - pos_y(0)) < 14 Then
-
- If Github_Version = 1 Then
-
- CutLines.SelectLine_to_Cropline
- Else
-
- Tools.Mark_Range_Box
- End If
- ElseIf Abs(x - pos_x(3)) < 14 And Abs(Y - pos_y(0)) < 14 Then
-
- Tools.Size_to_Integer
-
-
- ElseIf Abs(x - pos_x(4)) < 14 And Abs(Y - pos_y(0)) < 14 Then
-
- ElseIf Abs(x - pos_x(5)) < 14 And Abs(Y - pos_y(0)) < 14 Then
-
- AutoColorMark.Auto_ColorMark_K
- ElseIf Abs(x - pos_x(6)) < 14 And Abs(Y - pos_y(0)) < 14 Then
-
- SmartGroup.Smart_Group API.Create_Tolerance
-
- ElseIf Abs(x - pos_x(7)) < 14 And Abs(Y - pos_y(0)) < 14 Then
-
- frmSelectSame.show 0
- ElseIf Abs(x - pos_x(8)) < 14 And Abs(Y - pos_y(0)) < 14 Then
-
- Me.Height = 30 + 45
-
- ElseIf Abs(x - pos_x(9)) < 14 And Abs(Y - pos_y(0)) < 14 Then
-
- Application.FrameWork.Automation.InvokeItem "bf3bd8fe-ca26-4fe0-91b0-3b5c99786fb6"
- ElseIf Abs(x - pos_x(10)) < 14 And Abs(Y - pos_y(0)) < 14 Then
-
- TOP_ALIGN_BT.Visible = True
- LEFT_ALIGN_BT.Visible = True
- ElseIf Abs(x - pos_x(11)) < 14 And Abs(Y - pos_y(0)) < 14 Then
-
- Me.Height = 30
-
- End If
- Exit Sub
- End If
-
-
- If Abs(x - pos_x(0)) < 14 And Abs(Y - pos_y(0)) < 14 Then
-
- CutLines.Batch_CutLines
-
- ElseIf Abs(x - pos_x(1)) < 14 And Abs(Y - pos_y(0)) < 14 Then
-
- ClipbRectangle.Build_Rectangle
-
- ElseIf Abs(x - pos_x(2)) < 14 And Abs(Y - pos_y(0)) < 14 Then
- If Github_Version = 1 Then
- Woodman.show 0
- Else
-
- CutLines.SelectLine_to_Cropline
- End If
- ElseIf Abs(x - pos_x(3)) < 14 And Abs(Y - pos_y(0)) < 14 Then
-
- Arrange.Arrange
-
- ElseIf Abs(x - pos_x(4)) < 14 And Abs(Y - pos_y(0)) < 14 Then
-
- CutLines.Draw_Lines
-
- ElseIf Abs(x - pos_x(5)) < 14 And Abs(Y - pos_y(0)) < 14 Then
-
- AutoColorMark.Auto_ColorMark
-
- ElseIf Abs(x - pos_x(6)) < 14 And Abs(Y - pos_y(0)) < 14 Then
-
- SmartGroup.Smart_Group
-
- ElseIf Abs(x - pos_x(7)) < 14 And Abs(Y - pos_y(0)) < 14 Then
- CQL_FIND_UI.show 0
-
- ElseIf Abs(x - pos_x(8)) < 14 And Abs(Y - pos_y(0)) < 14 Then
- Replace_UI.show 0
-
- ElseIf Abs(x - pos_x(9)) < 14 And Abs(Y - pos_y(0)) < 14 Then
-
- Tools.TextShape_ConvertToCurves 0
-
- ElseIf Abs(x - pos_x(10)) < 14 And Abs(Y - pos_y(0)) < 14 Then
-
- Me.Height = 30 + 45
-
- Speak_Msg "左右键有不同功能"
-
- ElseIf Abs(x - pos_x(11)) < 14 And Abs(Y - pos_y(0)) < 14 Then
- If Me.Height > 30 Then
- Me.Height = 30
- Else
-
- Me.width = 30
- Me.Height = 30
- OPEN_UI_BIG.Left = 31
- UI.Visible = False
- LOGO.Visible = True
-
-
- SaveSetting "LYVBA", "Settings", "Left", Me.Left
- SaveSetting "LYVBA", "Settings", "Top", Me.Top
-
- Speak_Msg "左键缩小 右键收缩"
- End If
- End If
- End Sub
- Private Sub X_EXIT_Click()
- Unload Me
- End Sub
- Private Sub Cdr_Nodes_BT_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
- If Button = 2 Then
- TSP.Nodes_To_TSP
- ElseIf Shift = fmCtrlMask Then
- TSP.CDR_TO_TSP
- Else
-
- End If
- End Sub
- Private Sub Cdr_Nodes_BT_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
- TSP_L1.ForeColor = RGB(0, 150, 255)
- End Sub
- Private Sub START_TSP_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
- TSP_L2.ForeColor = RGB(0, 150, 255)
- End Sub
- Private Sub PATH_TO_TSP_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
- TSP_L3.ForeColor = RGB(0, 150, 255)
- End Sub
- Private Sub TSP2DRAW_LINE_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
- TSP_L4.ForeColor = RGB(0, 150, 255)
- End Sub
- Private Sub TSP2DRAW_LINE_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
- If Button = 2 Then
- TSP.TSP_TO_DRAW_LINE
- ElseIf Shift = fmCtrlMask Then
- TSP.TSP_TO_DRAW_LINES
- Else
-
- End If
- End Sub
- Private Sub START_TSP_Click()
- TSP.START_TSP
- End Sub
- Private Sub PATH_TO_TSP_Click()
- TSP.MAKE_TSP
- End Sub
- Private Sub BITMAP_BUILD_Click()
- Tools.Python_BITMAP
- End Sub
- Private Sub BITMAP_BUILD2_Click()
- Tools.Python_BITMAP2
- End Sub
- Private Sub BITMAP_MAKE_DOTS_Click()
- TSP.BITMAP_MAKE_DOTS
- End Sub
- Private Sub Organize_Size_Click()
- Tools.Python_Organize_Size
- End Sub
- Private Sub Get_Number_Click()
- Tools.Python_Get_Barcode_Number
- End Sub
- Private Sub Make_QRCode_Click()
- Tools.Python_Make_QRCode
- Tools.QRCode_replace
- End Sub
- Private Sub QR2Vector_Click()
- Tools.QRCode_to_Vector
- End Sub
- Private Sub OPEN_UI_BIG_Click()
- Unload Me
- MsgBox "请给我支持!" & vbNewLine & "您的支持,我才能有动力添加更多功能." & vbNewLine & "蘭雅CorelVBA工具 永久免费开源" _
- & vbNewLine & "源码网址:" & vbNewLine & "https://github.com/hongwenjun/corelvba"
- End Sub
- Private Sub Settings_Click()
- If 0 < Val(Bleed.text) * Val(Line_len.text) < 100 Then
- SaveSetting "LYVBA", "Settings", "Bleed", Bleed.text
- SaveSetting "LYVBA", "Settings", "Line_len", Line_len.text
- SaveSetting "LYVBA", "Settings", "Outline_Width", Outline_Width.text
- End If
-
- SaveSetting "LYVBA", "Settings", "Left", Me.Left
- SaveSetting "LYVBA", "Settings", "Top", Me.Top
-
- Me.Height = 30
- End Sub
- Private Sub Tools_Icon_Click()
-
- i = GMSManager.RunMacro("CorelDRAW_VBA", "学习CorelVBA.start")
- End Sub
- Private Sub Split_Segment_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
- If Button = 2 Then
- MsgBox "鼠标右键,功能待定"
- Exit Sub
- End If
-
- If Button Then
- Tools.Split_Segment
- End If
- End Sub
- Private Sub Split_Segment_Copy_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
- If Button = 2 Then
- MsgBox "左键拆分线段,Ctrl合并线段"
- ElseIf Shift = fmCtrlMask Then
- Tools.Split_Segment
- Else
- ActiveSelection.CustomCommand "ConvertTo", "JoinCurves"
- Application.Refresh
- End If
-
- Speak_Msg "拆分线段,Ctrl合并线段"
- End Sub
- Private Sub Adobe_Illustrator_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
- Dim value As Integer
- If Button = 2 Then
- value = GMSManager.RunMacro("AIClipboard", "CopyPaste.PasteAIFormat")
- Exit Sub
- End If
-
- If Button Then
- value = GMSManager.RunMacro("AIClipboard", "CopyPaste.CopyAIFormat")
- MsgBox "CorelDRAW 与 Adobe_Illustrator 剪贴板转换" & vbNewLine & "鼠标左键复制,鼠标右键粘贴"
- End If
- End Sub
- Private Sub Mark_CreateRectangle_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
- If Button = 2 Then
- Tools.Mark_CreateRectangle True
- ElseIf Shift = fmCtrlMask Then
- Tools.Mark_CreateRectangle False
- Else
- Create_Tolerance
- End If
- Speak_Msg "标记画框 右键支持容差"
- End Sub
- Private Sub Batch_Combine_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
- If Button = 2 Then
- Tools.Batch_Combine
- ElseIf Shift = fmCtrlMask Then
- Tools.Take_Apart_Character
- Else
- Create_Tolerance
- End If
- End Sub
- Private Sub Single_Line_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
- If Button = 2 Then
- Tools.Single_Line_Vertical
- ElseIf Shift = fmCtrlMask Then
- Tools.Single_Line
- Else
- Tools.Single_Line_LastNode
- End If
- 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 UniteOne_BT_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
- If Button = 2 Then
- Tools.Batch_Align_Page_Center
- ElseIf Shift = fmCtrlMask Then
- UniteOne.show 0
- Else
-
- End If
- End Sub
- Private Sub AdobeThumbnail_Click()
- Dim h As Long, r As Long
- mypath = Path & "GMS\LYVBA\"
- App = mypath & "GuiAdobeThumbnail.exe"
-
- h = FindWindow(vbNullString, "CorelVBA 青年节 By 蘭雅sRGB")
- i = ShellExecute(h, "", App, "", mypath, 1)
- End Sub
- Private Sub Quick_Color_Select_Click()
- Tools.quickColorSelect
- End Sub
- Private Sub Cut_Cake_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
- If Button = 2 Then
- Tools.divideVertically
- ElseIf Shift = fmCtrlMask Then
- Tools.divideHorizontally
- Else
-
- End If
- End Sub
- Private Sub Safe_Guideangle_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
- If Button = 2 Then
- Tools.guideangle ActiveSelectionRange, 0#
- ElseIf Shift = fmCtrlMask Then
- Tools.guideangle ActiveSelectionRange, 3
- Else
- Tools.guideangle ActiveSelectionRange, -Set_Space_Width
- End If
- End Sub
- Private Sub btn_makesizes_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
- If Button = 2 Then
- Make_SIZE.show 0
- ElseIf Shift = fmCtrlMask Then
- #If VBA7 Then
- Woodman.show 0
- #Else
- Make_SIZE.show 0
- #End If
- Else
- Tools.Simple_Label_Numbers
- End If
- End Sub
- Private Sub Photo_Form_Click()
- PhotoForm.show 0
- End Sub
- Private Sub btn_corners_off_Click()
- Tools.corner_off
- End Sub
- Private Sub SortCount_Click()
- Tools.Count_byArea 30
- End Sub
- Private Sub LevelRuler_Click()
- Tools.Angle_to_Horizon
- End Sub
- Private Sub MirrorLine_Click()
- Tools.Mirror_ByGuide
- End Sub
- Private Sub AutoRotate_Click()
- Tools.Auto_Rotation_Angle
- End Sub
- Private Sub SwapShape_Click()
- Tools.Exchange_Object
- End Sub
- Private Sub Open_Calc_Click()
- Launcher.START_Calc
- End Sub
- Private Sub Open_Notepad_Click()
- Launcher.START_Notepad
- End Sub
- Private Sub ImageReader_Click()
- Launcher.START_Barcode_ImageReader
- End Sub
- Private Sub Video_Camera_Click()
- Launcher.START_Bandicam
- End Sub
- Private Sub myfonts_Click()
- Launcher.START_whatthefont
- End Sub
- Private Sub VectorMagic_Click()
- Launcher.START_Vector_Magic
- End Sub
- Private Sub waifu2x_Click()
- Launcher.START_waifu2x
- End Sub
|