CAD开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

AutoCAD 2024 开发者帮助

Acad.TransientCursorType 函数

2024-5-31 18:01| 发布者: admin| 查看: 117| 评论: 0|原作者: admin|来自: AutoCAD

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 命名空间


路过

雷人

握手

鲜花

鸡蛋

最新评论

QQ|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1   苏公网安备32011402011833)

GMT+8, 2025-3-28 16:44

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部