- 积分
- 0
- 注册时间
- 2013-3-8
- 仿真币
-
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2013-6-20 11:35:25
|
显示全部楼层
来自 山西太原
JingheSu 发表于 2013-6-20 08:59
版内搜索,有例子
版主你好,之前我也找过,也都是常用对话框的例子,有这种例子吗?
我现在是已经做了很多工具和对话框,就是想在点击bat文件打开ABAQUS/CAE时,能显示一个自定义的欢迎界面,在帮助文件中也提到了在初始脚本里添加定义和调用命令就行。但一直没弄成,myStartupDB.py应该和其他对话框文件差别不大吧?找了找安装目录下的欢迎界面是用C++编的。请版主多多指教啊!!
/* -*- mode: c++ -*- */
#ifndef ubi_StartupDB_h
#define ubi_StartupDB_h
//
// Begin local includes
//
#include <afxW_AFXDialog.h>
//Forward Declarations
class FXXPMIcon;
struct FXChore;
class ubi_StartupDB : public AFXDialog
{
FXDECLARE(ubi_StartupDB)
public:
// Constructor and destructor:
ubi_StartupDB();
~ubi_StartupDB();
enum
{
ID_PAINT_THIS = AFXDialog::ID_LAST,
ID_MODEL_BTN,
ID_MODEL_CFD_BTN,
ID_OPEN_BTN,
ID_SCRIPT_BTN,
ID_TUTOR_BTN,
ID_CHORE,
ID_LAST
};
void create();
void showModal(FXWindow *occludedWindow = 0);
// Message handlers
int onChore(FXObject*, FXSelector, void*);
int onCmdButton(FXObject*, FXSelector, void*);
int onButtonEnter(FXObject*, FXSelector, void*);
int onButtonLeave(FXObject*, FXSelector, void*);
private:
// Copy constructor and assignment operator with no definitions:
ubi_StartupDB( const ubi_StartupDB & );
ubi_StartupDB & operator=( const ubi_StartupDB & );
FXIcon *splashImage;
FXButton *modelBtn, *openBtn, *scriptBtn, *tutorBtn;
FXColor backColor, hiliteColor;
FXChore *chore;
};
#endif // #ifdef ubi_StartupDB_h
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|