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();

}

相关文章:

  • 2022-02-07
  • 2022-12-23
  • 2021-08-06
  • 2021-09-11
猜你喜欢
  • 2021-05-19
  • 2021-08-19
  • 2022-02-07
  • 2022-03-08
  • 2021-12-29
  • 2022-12-23
相关资源
相似解决方案