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);
  • 相关阅读:
    字符编码乱码处理
    字典,元组,集合的使用
    三级菜单 ,求1
    运算符 if和while的使用
    if条件判断和while循环
    基本数据类型的结构和使用方法
    计算机基础部分
    计算机基础
    数据库之表查询,单表、多表,子查询
    google map API 学习
  • 原文地址:https://www.cnblogs.com/KMould/p/13345889.html
Copyright © 2011-2022 走看看