摘要:
当下主流Qt进行C++GUI开发很多,但是网上比较新的资料较少,并且Qt官网上面的搜索相应时间也很慢。参考了很多网上的资料结合自己的实践写一篇关于在VS2010环境中部署配置QT的博文。概述:主要配置步骤:1.进行VS2010安装配置2.进行QT库安装3.进行VS2010QT插件安装4.测试安装结果...
阅读全文
posted @ 2014-07-07 07:39
swtool
阅读(8512)
推荐(0)
摘要:
前面《使用Qt.1》里面说了Vs和Qt之间的安装配置,下面要将一下Qt自己的IDE工具——QtCreator。概述:1.准备2.安装3.配置4.测试运行具体:1.准备:软件:QtCreator:qt-creator-windows-opensource-2.6.0.exe(下载地址:http://q...
阅读全文
posted @ 2014-07-06 22:55
swtool
阅读(709)
推荐(0)
摘要:
2014-01-20 14:25form的autosize=true,formborderstyle=fixedsingletablelayoutpanel及其里面的容器的dock=fill,autosize=truelabel中的文字比较贴着窗体边缘时可以通过padding属性来调整因定宽度则可以...
阅读全文
posted @ 2014-07-06 09:04
swtool
阅读(599)
推荐(0)
摘要:
Acad::ErrorStatus CEntityUtil::Rotate(AcDbObjectId entId,const AcGePoint2d &ptBase,double rotation){ //几何变换矩陈 AcGeMatrix3d xform; //向量 AcG...
阅读全文
posted @ 2014-07-03 22:11
swtool
阅读(856)
推荐(0)
摘要:
AcDbObjectId CPolylineUtil::Add(const AcGePoint2dArray &points,double width/* =0 */){ //点数量 int numVertices=points.length(); //定义多段线 AcDbP...
阅读全文
posted @ 2014-07-03 22:10
swtool
阅读(691)
推荐(0)
摘要:
static void swtArxProject5plcopy(void) { // Add your code for command swtArxProject5.plcopy here //定义对象名和点 ads_name ename;ads_...
阅读全文
posted @ 2014-06-29 23:04
swtool
阅读(958)
推荐(0)
摘要:
AcDbObjectId PostToModelSpace(AcDbEntity *pEnt){ //定义块表 AcDbBlockTable *pBlk; acdbHostApplicationServices()->workingDatabase()->getSymbolTabl...
阅读全文
posted @ 2014-06-29 23:02
swtool
阅读(326)
推荐(0)
摘要:
http://zhidao.baidu.com/link?url=qSPTMAXyvV02Gd5HHOwQgshdu6zJ_Js3hBFkBiIZ5FNY4bOq8prmnro9kKpxkNhgV6ktuMl3Ocb4uYMBZxqz7q
阅读全文
posted @ 2014-06-29 20:44
swtool
阅读(446)
推荐(0)
摘要:
static void swtArxProject5readdwg(void) { // Add your code for command swtArxProject5.readdwg here //打开测试文件test.dwg AcDbDa...
阅读全文
posted @ 2014-06-29 14:03
swtool
阅读(1767)
推荐(0)
摘要:
static void swtArxProject5createLine(void) { // Add your code for command swtArxProject5.createLine here //创建新的CAD数据库 AcDb...
阅读全文
posted @ 2014-06-29 14:01
swtool
阅读(773)
推荐(0)
摘要:
初学ARX的人可能会遇到此问题,ObjectARX 2010必须在VS2008SP1中安装,默认安装完后是没有中文包的,所以显示的工具条是空的,且只有第1个按钮可以用,如果你的问题是这样的,那么你就不会像我一样走弯路了,请到下面的地址中去找中文包附件下载后复制到下面的地址中:链接: http://p...
阅读全文
posted @ 2014-06-29 13:53
swtool
阅读(845)
推荐(0)
摘要:
public void deleteDimension() { //定义数据库 Database db = HostApplicationServices.WorkingDatabase; //获取当前文...
阅读全文
posted @ 2014-06-26 14:16
swtool
阅读(1210)
推荐(0)
posted @ 2014-06-22 08:37
swtool
阅读(319)
推荐(0)
摘要:
1.新建一数据表,里面有字段id,将id设为为主键代码如下:create table tb(id int,constraint pkid primary key (id)) create table tb(id int primary key )2.新建一数据表,里面有字段id,将id设为主键且自动...
阅读全文
posted @ 2014-06-18 16:06
swtool
阅读(4181)
推荐(0)
摘要:
//即时显示文字 doc.TransactionManager.EnableGraphicsFlush(true); //此处写入TEXT //即时显示文字 ...
阅读全文
posted @ 2014-06-10 11:51
swtool
阅读(257)
推荐(0)
摘要:
cad.net添加和删除图层过滤器 using Autodesk.AutoCAD.ApplicationServices;using Autodesk.AutoCAD.DatabaseServices;using Autodesk.AutoCAD.EditorInput;using Autodesk...
阅读全文
posted @ 2014-06-05 19:18
swtool
阅读(396)
推荐(0)
摘要:
/// /// 从句柄转换成ObjectId /// Version : 2010.03.29 Sieben /// /// 句柄,可以是Handle,string,int,long数据类型 /// 成功返回句柄所对应的ObjectId,否则返回Object...
阅读全文
posted @ 2014-06-05 18:31
swtool
阅读(1059)
推荐(1)
摘要:
#region 写行号事件 //在DataGridView控件上选择RowPostPaint事件 private void dgvJointList_RowPostPaint(object sender, DataGridViewRowPostPaintE...
阅读全文
posted @ 2014-06-05 16:03
swtool
阅读(3692)
推荐(0)
摘要:
checkbox,button,imagebutton使用dataGridView1_CellContentClick private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArg...
阅读全文
posted @ 2014-06-03 22:16
swtool
阅读(3468)
推荐(0)
摘要:
由于CMLContentSearchPreviews方法是AutoCAD2014中才加入的,所以只能应用于2014及以后版本,可惜啊!using System.IO;using Autodesk.AutoCAD.ApplicationServices;using Autodesk.AutoCAD.D...
阅读全文
posted @ 2014-06-02 22:03
swtool
阅读(1321)
推荐(0)
摘要:
private void btnOpenFileDialog_Click(object sender, EventArgs e) { OpenFileDialog oFD = new OpenFileDialog(); oFD.Title =...
阅读全文
posted @ 2014-05-31 17:45
swtool
阅读(1278)
推荐(0)
摘要:
//点击一下即可对DataGridView中内嵌控件进行编辑,不需要二次点击 dgv.EditMode =DataGridViewEditMode.EditOnEnter; //DataGridView无默认行 ...
阅读全文
posted @ 2014-05-18 00:48
swtool
阅读(816)
推荐(0)
摘要:
以下是参考代码 //datagridview内嵌控件值修改事件 private void dgv_CurrentCellDirtyStateChanged(object sender, EventArgs e) { if (dgv.Is...
阅读全文
posted @ 2014-05-18 00:41
swtool
阅读(4342)
推荐(0)
摘要:
通常在主窗体上点击某处控件想弹出一个子窗体,在子窗体中做了一些操作,然后要在主窗体中调用子窗体中控件中的值,其实很简单,就是需要做到两点:1.在主窗体的Form Class级new子窗体frmDDL frmddl = new frmDDL();frmButton frmbtn = new frmBu...
阅读全文
posted @ 2014-05-18 00:35
swtool
阅读(296)
推荐(0)
摘要:
代码SELECT A.*FROM( SELECT ROW_NUMBER() OVER(PARTITION BY Host ORDER BY Host,count(EntranceURL) DESC) AS ROW, Host, EntranceURL as PageURL ...
阅读全文
posted @ 2014-05-16 13:15
swtool
阅读(400)
推荐(0)
摘要:
复制:private void button1_Click(object sender, System.EventArgs e) { // Takes the selected text from a text box and puts it on the clipboard. if(textB...
阅读全文
posted @ 2014-05-16 10:30
swtool
阅读(255)
推荐(0)
摘要:
我在datagridview中添加了DataGridViewComboboxColumn列发现点击DataGridViewComboboxCell时,要点击两下才弹出下拉框解决方法:将DataGridView属性 EditMode 为 EditOnEnter即可!
阅读全文
posted @ 2014-05-15 22:11
swtool
阅读(1982)
推荐(0)
摘要:
第1篇基础语法第1章 C#入门基础(教学视频:40分钟) 21.1 C#概述 21.1.1 C#的发展 21.1.2 .NET框架 21.1.3 C#开发工具 31.2 搭建Visual Studio 2010开发环境 31.2.1 安装Microsoft Visual Studio 2010 31...
阅读全文
posted @ 2014-05-11 21:06
swtool
阅读(599)
推荐(0)
摘要:
string ccc = db.OriginalFileName; //对应dwt文件的路径string ddd = db.Filename; //.bak文件对应的路径string eee = doc.Name; //当前dwg文...
阅读全文
posted @ 2014-05-09 15:08
swtool
阅读(457)
推荐(0)
摘要:
优先级类别运算符1基本(x) x.y f(x) a[x] x++ x――new typeof sizeof checked unchecked2单目+ - ! ~ ++x ――x (T)x3乘法与除法* / %4加法与减法+ -5移位运算>6关系运算 =7条件等= = ! =8位逻辑与&9位逻辑异或...
阅读全文
posted @ 2014-05-02 22:52
swtool
阅读(224)
推荐(0)
摘要:
//a button click call back event... private void getEntity_Click(object sender, EventArgs e) { Document doc = Autodes...
阅读全文
posted @ 2014-04-25 16:20
swtool
阅读(545)
推荐(0)
摘要:
[0-9]+ 表示一个或多个【数字】\.+ 表示数字后紧接一个【.】,由于【.】是正则中的关键字,所以需要转义一下+表示后面紧跟一个或多个【空格】\n 表示替换成换行符
阅读全文
posted @ 2014-04-25 14:41
swtool
阅读(1149)
推荐(0)
摘要:
将这一句中加入openerased的选项,这样对于已经删除的块就不会去遍历了。AttributeReference attRef = (AttributeReference)trans.GetObject(attId, OpenMode.ForRead,true); /// ...
阅读全文
posted @ 2014-04-19 19:00
swtool
阅读(1360)
推荐(0)
摘要:
1.正则表达式基本语法两个特殊的符号'^'和'$'。他们的作用是分别指出一个字符串的开始和结束。例子如下:"^The":表示所有以"The"开始的字符串("There","The cat"等);"of despair$":表示所以以"of despair"结尾的字符串;"^abc$":表示开始和结尾...
阅读全文
posted @ 2014-04-18 12:49
swtool
阅读(230)
推荐(0)
摘要:
"^\d+$" //非负整数(正整数 + 0) "^[0-9]*[1-9][0-9]*$" //正整数 "^((-\d+)|(0+))$" //非正整数(负整数 + 0) "^-[0-9]*[1-9][0-9]*$" //负整数 "^-?\d+$" //整数 "^\d+(\.\d+)?$" //非负...
阅读全文
posted @ 2014-04-18 12:30
swtool
阅读(250)
推荐(0)
摘要:
一、CACHEMAXFILES (系统变量)设置为产品保存的图形缓存文件的最大数量。 类型: 整数 保存位置: 注册表 初始值: 256 有效范围为从 0 到 65535 个文件。 当图形缓存文件的数量达到最大时,将自动删除缓存中最早的文件。将此变量设定为 0(零)可完全禁用缓存,并删除任何不在打开...
阅读全文
posted @ 2014-04-16 21:22
swtool
阅读(465)
推荐(0)
摘要:
http://jingyan.baidu.com/article/ce436649f812593773afd3df.html
阅读全文
posted @ 2014-04-11 10:27
swtool
阅读(464)
推荐(0)
摘要:
using Autodesk.AutoCAD.ApplicationServices; using Autodesk.AutoCAD.DatabaseServices; using Autodesk.AutoCAD.EditorInput; using Autodesk.AutoCAD.Runtime; using Autodesk.AutoCAD.Geometry; using Autodesk.AutoCAD.GraphicsInterface; using Autodesk.AutoCAD.Colors; //__________________...
阅读全文
posted @ 2014-04-08 22:00
swtool
阅读(1940)
推荐(1)
摘要:
ImageList ImgList = new ImageList(); //高度设置 ImgList.ImageSize = new Size(1, lv_1.Font.Height + 2); //在Details显示模式下,小图标才会起作用 lv_1.SmallImageList = ImgList;
阅读全文
posted @ 2014-04-07 12:05
swtool
阅读(244)
推荐(0)
摘要:
#region Contains重载函数 /// /// 判断块说明中是否包含指定词组 /// /// 父字符串 /// 指定关键词的集合 /// 是否包含全部才返回true /// 返回bool类型 public static bool Contains(this string str, List strs,bool containAll) { if (!containAll) foreach (...
阅读全文
posted @ 2014-04-06 14:35
swtool
阅读(217)
推荐(0)