User Control - Hello World Runtime Render File

Official Content
This documentation is valid for:
Note: If you want to create a user control, as of GeneXus 16, it is strongly recommended to create a User Control object, although what is explained in this article is still valid.

This document specifies how the User Control called Hello World must be displayed at runtime (js).

function HelloWorld()
{
 this.ContainerName;
 this.Width;
 this.Height;
 this.FontFace;
 this.FontColor;
 this.FontSize;

 this.show = function(data)
 {
  ///UserCodeRegionStart: show (do not remove this comment.)
  var buffer= '<font face="' + this.FontFace + '" color="' +  this.FontColor + '" size="' + this.FontSize + '">Hello World!!!</font>';   
  //document.getElementById(this.ContainerName).innerHTML = buffer.toString();   
  this.setHtml(buffer);   
  ///UserCodeRegionEnd: (do not remove this comment.)
 }
}