我正在做关于用户控制的“Hello World”教程,但没有成功。
在第一次尝试中,我做了用户控制,如教程页面http://wiki.genexus.com/commwiki/servlet/hwiki?Hello+World+User+Control中所示
但它不起作用,所以我在教程的最后下载了可供下载的完成的用户控件。
使用下载用户控件,我创建了这个 Web 面板
与这个事件
但我有一个空的结果
这里缺少什么?这里有什么调试技巧吗?
我正在使用 GeneXus 最新版本,GeneXus X Evolution 3(试用版)。
编辑: 用户控制代码:
function HelloWorld($)
{
this.Width;
this.Height;
this.FontFace;
this.FontColor;
this.FontSize;
this.show = function()
{
///UserCodeRegionStart:[show] (do not remove this comment.)
var buffer= '<a id="hworld1" href="#" style="color:rgb(' + this.FontColor.R + ',' + this.FontColor.G + ',' + this.FontColor.B + ')' + '; font-family:' + this.FontFace+ ';font-size:' + this.FontSize + 'pt;">Hello World!!!</a>';
this.setHtml(buffer);
document.getElementById("hworld1").onclick = this.HelloWorldClicked;
///UserCodeRegionEnd: (do not remove this comment.)
}
///UserCodeRegionStart:[User Functions] (do not remove this comment.)
///UserCodeRegionEnd: (do not remove this comment.):
}