乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 26|回复: 1

如何实现交互对话框(选择一个点)

[复制链接]

8

主题

31

帖子

3

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
63
发表于 2005-8-23 12:43:00 | 显示全部楼层 |阅读模式
我想建立一个对话框,上面有一个按钮,点击后隐藏对话框,从CAD中选取一点,然后显示对话框,和坐标.不知如何实现这个交互过程?请高手指点迷津.
回复

使用道具 举报

26

主题

243

帖子

9

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
347
发表于 2005-8-23 16:46:00 | 显示全部楼层
void AsdkAcUiDialogSample::OnButtonPoint()
{
    // Hide the dialog and give control to the editor
    BeginEditorCommand();
    ads_point pt;
    // Get a point
    if (acedGetPoint(NULL, "\nPick a point: ", pt) == RTNORM) {
        // If the point is good, continue
        CompleteEditorCommand();
        m_strXPt.Format("%g", pt[X]);
        m_strYPt.Format("%g", pt[Y]);
        m_strZPt.Format("%g", pt[Z]);
        DisplayPoint();
    } else {
        // otherwise cancel the command (including the dialog)
        CancelEditorCommand();
    }
}
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-4-30 21:07 , Processed in 2.173033 second(s), 56 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表