【NX二次开发】Block UI 双精度

属性说明

常规         类型 描述
    BlockID     String 控件ID
    Enable     Logical 是否可操作
    Group     Logical 是否分组
    Label     Utfstring 标题
    Show     Logical 是否可见
其他            
    Localize     Logical 是否本地化
    RetainValue Logical 是否保存值
    附件        
        Bottom Attachment 底部
        Left Attachment
        Right Attachment
        Top Attachment 顶部
特定于块            
    BalloonTooltipImage String 标题气泡提示图片
    BalloonTooltipLayout Enum 标题气泡提示类型
    BalloonTooltipText Utfstring 标题气泡提示文本
    Bitmap String 控件位图
    MaximumValue Double 最大值
    MaxInclusive Logical 包含最大值
    MinimumValue Double 最小值
    MinInclusive Logical 包含最小值
    PresentationStyle Enum 风格
    ReadOnlyValue Logical 是否只读
    TitleVisibility Logical 标题是否可见
    Value Integer 控件值
     

 

获取控件值

double douInputDiMian=this->double02->GetProperties()->GetDouble("Value");

设置控件可见

this->double0->GetProperties()->SetLogical("Show", true);

 设置控件值

this->double0->GetProperties()->SetDouble("Value", 2.0);

 

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