zoukankan      html  css  js  c++  java
  • 【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 Integer 最大值
        MinimumValue Integer 最小值
        PresentationStyle Enum 风格
        ReadOnlyValue Logical 是否只读
        TitleVisibility Logical 标题是否可见
        Value Integer 控件值
         

    其它风格有不同的属性还需要再添加

    取控件值

    int iNOInput=this->integer0->GetProperties()->GetInteger("Value");

    设置控件值

    this->integer0->GetProperties()->SetInteger("Value",999999);

    设置输入的最小值限制

    this->integer01->GetProperties()->SetInteger("MinimumValue", 1);

    设置输入的最大值限制

    this->integer01->GetProperties()->SetInteger("MaximumValue", 256);

    设置控件不可见

    this->integer0->GetProperties()->SetLogical("Show",false);
  • 相关阅读:
    重学数据库
    小炒肉
    地三鲜
    mac安装使用visualbox不能启动
    idea Services dashboard
    C# 使用Linq问题
    IDEA 修改页面不重启
    idea提交代码失败
    Idea git 强制同步fork的项目,会覆盖本地上传的文件吗?
    了解swagger遇到的问题
  • 原文地址:https://www.cnblogs.com/KMould/p/13345889.html
Copyright © 2011-2022 走看看