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);
  • 相关阅读:
    HDU1312 ZOJ2165 Red and Black
    HDU1312 ZOJ2165 Red and Black
    HDU1181 变形课【DFS】
    codevs1017 乘积最大
    codevs1220 数字三角形
    codevs1169 传纸条
    codevs1219 骑士游历
    codevs1010 过河卒
    codevs1166 矩阵取数游戏
    codevs1154 能量项链
  • 原文地址:https://www.cnblogs.com/KMould/p/13345889.html
Copyright © 2011-2022 走看看