Acad.TransientCursorType 函数
Acad.TransientCursorType 函数文件Autodesk.AutoCAD.js
语法JavaScript的
function Acad.TransientCursorType = {
"kNone": "None",
"kArrow": "Arrow",
"kIbeam": "Ibeam",
"kWait": "Wait",
"kCross": "Cross",
"kUpArrow": "UpArrow",
"kSizeNWSE": "SizeNWSE",
"kSizeNESW": "SizeNESW",
"kSizeWE": "SizeWE",
"kSizeNS": "SizeNS",
"kSizeAll": "SizeAll",
"kNo": "No",
"kHand": "Hand",
"kAppStarting": "AppStarting",
"kHelp": "Help"
};
群ACAD 命名空间
描述此枚举列出了可用的瞬态游标类型。它们是操作系统游标。
例function getTransientCursor(type)
{
var cur_cursor = ' ';
if (type != Acad.TransientCursorType.kNone)
cur_cursor = ' cursor="' + type + '"';
return cur_cursor;
}
function getCircleDrawable(color, lineweight, linetype, filled, center, radius, normal, ctype)
{
return '<?xml version="1.0" encoding="utf-8"?> <drawable xmlns="http://www.autodesk.com/AutoCAD/drawstream.xsd" xmlns:t="http://www.autodesk.com/AutoCAD/transient.xsd" t:onmouseover ="onmouseover"' + getTransientCursor(ctype) + '>\
<graphics color="' + color + '" id="id1" lineweight="' + lineweight + '" linetype="' + linetype + '" filled="' + filled + '">\
<circle center ="' + center + '" radius ="' + radius + '" normal="' + normal + '"/>\</graphics></drawable>';
}
链接ACAD 命名空间
|