• 运行时动态的创建form的方法


    static void CreateMethodOnRunTime(Args _args)

    {

         #AOT

         ;

         //路径故意复杂一些,主要是让你体会怎么调用不同的控件。

         infolog.findNode(#FormsPath + "//fm_ModifySourceCodeOnrunTime//Designs//Design//[Group:Group]//"+

            "[Tab:Tab]//[TabPage:TabPage1]//StringEdit:StringEdit//Methods").AOTadd("LookUP");

         infolog.findNode(#FormsPath + "//fm_ModifySourceCodeOnrunTime//Designs//Design//[Group:Group]//"+

            "[Tab:Tab]//[TabPage:TabPage1]//StringEdit:StringEdit//Methods//LookUP").AOTsetSource(

                    @"public void lookup()

                    {

                    this.performTypeLookup(typeid('itemid'));}",false);

        infolog.findNode(#FormsPath + "//fm_ModifySourceCodeOnrunTime").AOTsave();

        infolog.findNode(#FormsPath + "//fm_ModifySourceCodeOnrunTime").AOTcompile();

    }

  • 相关阅读:
    欧拉公式求四面体的体积
    欧拉公式求四面体的体积
    I
    I
    闭包传递(floyed)
    闭包传递(floyed)
    Python hypot() 函数
    Python cos() 函数
    Python atan2() 函数
    Python atan() 函数
  • 原文地址:https://www.cnblogs.com/Fandyx/p/2761519.html
Copyright © 2020-2023  润新知