【NX二次开发】Block UI 操作按钮

属性说明

常规         类型 描述
    BlockID     String 控件ID
    Enable     Logical 是否可操作
    Group     Logical 是否分组
    Label     Utfstring 标题
    Show     Logical 是否可见
其他            
    Localize     Logical 是否本地化
    附件        
        Bottom Attachment 底部
        Left Attachment
        Right Attachment
        Top Attachment 顶部
特定于块            
    BalloonTooltipImage String 标题气泡提示图片
    BalloonTooltipLayout Enum 气泡提示类型
    BalloonTooltipText Utfstring 标题气泡提示文本
    Bitmaps Strings 控件位图
    HighQualityBitmap Logical 是否使用高质量位图
    Tooltip Utfstring 气泡文本标题
     

 

设置按钮图片

button0->GetProperties()->SetString("Bitmap","undo");

设置按钮名称

button0->GetProperties()->SetString("Label","撤销结果");

设置控件不可见

this->button0->SetShow(false);

 

posted @ 2020-07-20 16:09  王牌飞行员_里海  阅读(375)  评论(0编辑  收藏  举报