找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 966|回复: 9

[分享]:制作AUTOCAD状态栏按钮工具

[复制链接]
发表于 2004-2-19 17:38:42 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
制作AUTOCAD状态栏按钮工具
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
发表于 2004-2-19 21:13:06 | 显示全部楼层

Re: [分享]:制作AUTOCAD状态栏按钮工具

最初由 hqd9639 发布
[B]制作AUTOCAD状态栏按钮工具 [/B]


能不能给一个演示或图例?
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2004-2-20 13:31:43 | 显示全部楼层
状态栏曾被拖丢,而找不到,后来重新装系统,怎么回师?
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

已领礼包: 23个

财富等级: 恭喜发财

发表于 2004-2-20 14:46:46 | 显示全部楼层
这是给开发人员用的,请版主转到开发版吧
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2005-3-22 15:45:25 | 显示全部楼层
下载了但不知如何使用?
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2005-3-22 23:03:51 | 显示全部楼层
是啊,怎么使用啊?
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2005-3-23 08:37:47 | 显示全部楼层
AcadStatButton 4.04 for AutoCAD R14-R2004   2003-10-1
Copyright 2003 ManuSoft
http://www.manusoft.com


AcadStatButton is freeware. You are granted a license to use
this library for any purpose and redistribute it in any
manner so long as the copyright notice is clearly visible.
When distributed as source code this notice must also be
included and clearly visible.

WARNING: USE AT YOUR OWN RISK!


+++ Revision notes

Version 4.04 corrects a problem with the version number in
the internal implementation of the ActiveX interface. This
bug prevented the ActiveX interface from working via Visual
Lisp. A Visual Lisp sample is now included.

Version 4.03 corrects a bug which could result in a crash
in AutoCAD after the status bar button code was unloaded
during midsession.

Version 4.0 adds support for AutoCAD 2004. The ActiveX
interface was not changed, and remains at 3.0.

Version 3.0 adds support for fixed/floating button position
and adds a new drag-n-drop repositioning capability. The
ActiveX interface version has been changed to 3.0.

Version 2.11 includes a corrected ActiveX DLL which reflects
the ActiveX interface changes made in version 2.1 and fixes
a bug with the button 'Position' property.

Version 2.1 removed the 'const' attribute from the following
functions:
AcadStatusBarButton::WindowProc()
AcadStatusBarButton::OnClicked()
This may necessitate changes in custom classes derived from
older versions of AcadStatusBarButton.


+++ Purpose

This library is designed to make it easy for application
developers to add custom status bar buttons to the AutoCAD
status bar. The library is designed to allow buttons from
different applications to peacefully coexist even if the
applications know nothing about each other.

An ActiveX interface for this library is provided in a
separate DLL (AxSupport/AxAcadStatusBarButton.dll) in order
to make it possible to utilize status bar buttons from Lisp
and VBA as well as ObjectARX.


+++ Usage (ActiveX)

Register the ActiveX interface for this library by running
AxReg.bat (unregister by running AxUnReg.bat). Once the
ActiveX interface is registered, you can create a button
by calling CreateObject with the following ProgID:
AxAcadStatusBarButtonLib.Button

Note that in VBA you must first 'Reference' the library
in your project before it can be used. A simple VBA project
(SBBTest.dvb) is included as a sample. SBBTest.dvb consists
of two classes (StatusBarCommandButton.cls and
PushlikeStatusBarButton.cls) along with a VBA module
(SBBTest.bas) that implements a simple test macro named
AddButtons. To display the two sample buttons, use the
VBALOAD command to load SBBTest.dvb, then use VBARUN to
run the AddButtons macro.


+++ Usage (C++)

To create a button for your application, simply include the
AcadStatButton.h header file in your source file, then define
a new class derived from AcadStatusBarButton and override the
OnClicked() member function. Additional virtual functions may
be overridden in the derived class to further customize the
behavior or handling of your button. The AcadStatButton.lib
library contains the implementation of AcadStatButton, and
you must include this library when linking.

Additional documentation is included in comments in the
header file. Note that you may create more than one button:
the library will automatically arrange the buttons along the  
status bar from right to left by button window Z-Order.

Example:

class TestButton : public AcadStatusBarButton
{
private:
  HBITMAP m_hbmpImage;
protected:
  virtual void OnClicked();
public:
  TestButton( HBITMAP hbmpImage )
    : m_hbmpImage( hbmpImage ),
      AcadStatusBarButton( (HBITMAP)hbmpImage )
    {}
  ~TestButton()
    { ::DeleteObject( m_hbmpImage ); }
};

void TestButton::OnClicked()
{
  DoSomething();
}


+++ No technical support provided

This software is provided as a free service to the AutoCAD
community. While feedback is always welcome, ManuSoft will not
be able to answer technical questions or solve problems caused
by use of this library.

Other feedback may be directed to ManuSoft via email to:
acadsbb@manusoft.com
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2005-8-11 22:38:45 | 显示全部楼层
我也在研究这个问题啊
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2005-8-14 10:52:15 | 显示全部楼层
先来个说明
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2005-8-15 23:32:06 | 显示全部楼层
怎么用的
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|申请友链|Archiver|手机版|小黑屋|辽公网安备|晓东CAD家园 ( 辽ICP备15016793号 )

GMT+8, 2024-9-22 20:31 , Processed in 0.430333 second(s), 51 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表