NX二次开发 BlockUI 基础 06、操作按钮
06、操作按钮
常规
BlockID 控件id
Enable 是否可选/禁用控件
Group 组
Label 标题
Show 是否可见
其它
Localite 是否本地化
附着
Bottom 底
Left 左
Right 右
Top 顶
特定于块
BalloonTooltipImage 动态提示图片(鼠标移动到控件是显示图片)
BalloonTooltipLayout 动态提示布局
BalloonTooltipText 动态提示文本内容
Bitmap 指定图片
HighQualityBitmap 高质量的位图
Tooltip 动态提示文本标题(Bitmap指定图片时,鼠标移动到图片时提示文字)
————————————————————————————————————————
/设置按钮标签值/
this->button0->GetProperties()->SetString(“Label”, “梅雷”);
/获得按钮标签值/
NXOpen::NXString nxstr = this->button0->GetProperties()->GetString(“Label”);
Session *theSession = Session::GetSession();
theSession->ListingWindow()->Open();
theSession->ListingWindow()->WriteLine(nxstr);