zoukankan      html  css  js  c++  java
  • 移动控件前端设置

    1、可见性设置
    this.View.GetControl("FButton").SetCustomPropertyValue("visible", true);
    2、锁定性设置
    this.View.GetControl("FDate").SetCustomPropertyValue("disabled", true);
    3、按钮、标签背景色设置
    this.View.GetControl("FButton").SetCustomPropertyValue("backcolor", "115,208,241");
    4、按钮、标签字体颜色设置
    this.View.GetControl("FButton").SetCustomPropertyValue("forecolor", "255,255,255");
    5、按钮、标签文本值设置
    this.View.GetControl("FLable").SetCustomPropertyValue("value", "我是标签");
    6、高度、宽度设置
    this.View.GetControl("FDocEntity").SetCustomPropertyValue("height", 100);
    this.View.GetControl("FDocEntity").SetCustomPropertyValue("width", 320);
    7、设置页签控件的当前选中页签
    this.View.GetControl("FTab").SetCustomPropertyValue("selectedIndex", 2);
    8、设置控件背景图片
    this.View.GetControl("FButton").SetCustomPropertyValue("backgroundurl", "img.png");

    9、图片控件设置图片
    this.View.GetControl("FImage").SetCustomPropertyValue("imageKey", "img.png");

    注:图片默认路径是website/images/mobile/目录下,如果不是在这个目录下,这要设置相对路径:

    如果是website/images/mobile/myimg/img.png,则.SetCustomPropertyValue("imageKey", "myimg/img.png");

    如果是website/tempfilePath/xxx.png,则.SetCustomPropertyValue("imageKey", "../tempfilePath/xxx.png");

    作者:符勇

    来源:金蝶云社区

    原文链接:https://vip.kingdee.com/article/26091

    著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

  • 相关阅读:
    KLSudoku的数独题目生成方法和难度控制说明
    对XChain和ForcingChain的实现解说
    开源数独游戏软件KLSudoku发布第一个Release版本
    每个 Vim 用户都应该阅读的文章
    自己常用的几个gvim的vimrc设置
    KLSudoku数独游戏软件1.1预览版发布
    KLSudoku数独游戏软件1.1正式版发布
    字符串
    .NET面试大全
    IIS是如何处理ASP.NET请求的
  • 原文地址:https://www.cnblogs.com/zouhuaxin/p/15662144.html
Copyright © 2011-2022 走看看