C# 请教工具栏式的菜单做法
老大们,请问这种工具栏式的菜单如何制作啊?using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.EditorInput;
using System.Windows.Forms;
using Autodesk.AutoCAD.Interop;
using cadApp = Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.Geometry;
namespace HelloWorld
{
public class Class1
{
public void myHelloWorld()
{
Autodesk.AutoCAD.Interop.AcadApplication acadApp = (AcadApplication)Autodesk.AutoCAD.ApplicationServices.Application.AcadApplication;
UserControl1 us1 = new UserControl1();
Autodesk.AutoCAD.Windows.PaletteSet ps;
ps = new Autodesk.AutoCAD.Windows.PaletteSet("抽屉式的菜单");
ps.Add("抽屉式的菜单1", us1);
ps.KeepFocus = true;
ps.Opacity = 50;
ps.Visible = true;
ps.Dock = Autodesk.AutoCAD.Windows.DockSides.Top;
ps.Size = new System.Drawing.Size(1500, 50);
}
}
}
我用PaletteSet 弄不成功啊,是不是PaletteSet 只能左右停靠?
继续自顶,老大们请出来啊 直接做成 CUI 文件加载 CUI,能让这个菜单自成一行么? 00这种估计比较复杂 雪山飞狐_lzh 发表于 2014-7-8 15:18 static/image/common/back.gif
直接做成 CUI 文件加载
飞狐大哥,怎么直接做成CUI文件啊
页:
[1]