以下程式是自動加工具欄,可是每次加出來的工具欄都是在屏幕中間,怎麼樣才可以改變
它的位置(就象保存,打印工具欄)
Public Sub osmod() On Error Resume Next Dim cumegr As AcadMenuGroup Set cumegr = ThisDrawing.Application.MenuGroups.Item(0) Dim too As AcadToolbar Set too = cumegr.Toolbars.Add("Osmode") Dim nebutton As AcadToolbarItem Dim buttonmacro As String buttonmacro = Chr(3) + Chr(3) + Chr(95) + "sd" + Chr(32) Set nebutton = too.AddToolbarButton("", "開鎖點", "開嗎", buttonmacro) End Sub
|