• 【NX二次开发】Block UI 字符串


    属性说明:

        BlockID     String 控件ID
        Enable     Logical 是否可操作
        Group     Logical 是否分组
        Label     Utfstring 标题
        Show     Logical 是否可见
    其他            
        AllowInternationalTextInput  Logical 允许国际文本
        IsPassword  Logical 密码输入方式
        Localize     Logical 是否本地化
        RetainValue Logical 是否保存值
        附件        
            Bottom Attachment 底部
            Left Attachment
            Right Attachment
            Top Attachment 顶部
    特定于块            
        BalloonTooltipImage String 标题气泡提示图片
        BalloonTooltipImages Strings 选项气泡提示图片
        BalloonTooltipLayout Enum 气泡提示类型
        BalloonTooltipText Utfstring 标题气泡提示文本
        BalloonTooltipTexts Utfstrings 选项气泡提示文本
        Bitmaps Strings 选项位图
        MaxTextLength Integer 文本长度
        PresentationStyle Enum 控件类型
        ReadOnlyString Logical 文字是否可更改
        Tooltip Utfstring 气泡文本标题
        Value String 控件值
        Width Enum 控件宽度
         

    获得控件值并转换为string类型

    1 NXString NXstrstring0 = "";
    2 NXstrstring0 = this->string0->Value();
    3 char crstring01[133] = "";
    4 strcpy_s(crstring01, 133, NXstrstring0.GetLocaleText());
    5 string strNum = crstring01;

    设置控件值

    1 string strString0_Value = "WPFXY";
    2 this->string0->GetProperties()->SetString("WideValue", strString0_Value);

    设置控件可见

    1 this->string0->GetProperties()->SetLogical("Show", true);
  • 相关阅读:
    windows 乱码之 gbk 与 cp936
    jdcli 在命令行反编译jar包
    建议博客园向独立博客提供发布到首页的服务
    IsByRef在什么情况下为true?
    Hibernate里自定义UserType时取不到值的问题
    解决安装Visual Studio 2010 SP1时被NDP40KB2468871.exe补丁卡死以及mscorsvw.exe进程CPU占用率高的问题
    FROM WAS7/JDK5 TO WAS6/JDK4
    C++山寨C#中的DataTable
    程序员的自我修养读书笔记
    Web开发之路
  • 原文地址:https://www.cnblogs.com/KMould/p/13345578.html
Copyright © 2020-2023  润新知