<IRCodeTemplates>
   <Template>
      <Name>button properties table</Name>
      <Type>wrap</Type>
      <Top>-- Button object properties table.
tblBtnProps = {};
tblBtnProps.ButtonFile = "";
tblBtnProps.Text = "";
tblBtnProps.FontName = "Verdana";
tblBtnProps.FontSize = 15;
tblBtnProps.FontWeight = FW_BOLD;
tblBtnProps.FontItalic = false;
tblBtnProps.FontStrikeout = false;
tblBtnProps.FontScript = ANSI_CHARSET;
tblBtnProps.FontAntiAlias = true;
tblBtnProps.FontUnderline = false;
tblBtnProps.XOffset = 0;
tblBtnProps.YOffset = 0;
tblBtnProps.LeftMargin = 0;
tblBtnProps.RightMargin = 0;
tblBtnProps.Style = BTNSTYLE_STANDARD;
tblBtnProps.ToggleState = BTN_TOGGLE_UP;
tblBtnProps.Cursor = CURSOR_HAND;
tblBtnProps.TooltipText = "";
tblBtnProps.Y = 0;
tblBtnProps.X = 0;
tblBtnProps.Height = 54;
tblBtnProps.Width = 198;
tblBtnProps.Enabled = true;
tblBtnProps.Visible = true;
tblBtnProps.ResizeLeft = false;
tblBtnProps.ResizeRight = false;
tblBtnProps.ResizeTop = false;
tblBtnProps.ResizeBottom = false;
tblBtnProps.HighlightSound = SND_STANDARD;
tblBtnProps.HighlightSoundFile = "";
tblBtnProps.ClickSound = SND_STANDARD;
tblBtnProps.ClickSoundFile = "";
tblBtnProps.ColorNormal = Math.HexColorToNumber("FFFFFF");
tblBtnProps.ColorHighlight = Math.HexColorToNumber("FFFFFF");
tblBtnProps.ColorDown = Math.HexColorToNumber("FFFFFF");
tblBtnProps.ColorDisabled = Math.HexColorToNumber("FFFFFF");</Top>
      <Bottom>tblBtnProps.Alignment = ALIGN_CENTER;</Bottom>
   </Template>
   <Template>
      <Name>checkbox properties table</Name>
      <Type>wrap</Type>
      <Top>-- CheckBox object properties table.
tblCheckBoxProps = {};
tblCheckBoxProps.Checked = true;
tblCheckBoxProps.Text = "CheckBox 1";
tblCheckBoxProps.FontName = "Verdana";
tblCheckBoxProps.FontSize = 10;
tblCheckBoxProps.FontWeight = FW_BOLD;
tblCheckBoxProps.FontItalic = false;
tblCheckBoxProps.FontStrikeout = false;
tblCheckBoxProps.FontScript = ANSI_CHARSET;
tblCheckBoxProps.FontAntiAlias = true;
tblCheckBoxProps.FontUnderline = false;
tblCheckBoxProps.TextAlignment = ALIGN_LEFT;
tblCheckBoxProps.ButtonAlignment = BTN_ALIGN_LEFT;
tblCheckBoxProps.ReadOrder = READ_STANDARD;
tblCheckBoxProps.Cursor = CURSOR_ARROW;
tblCheckBoxProps.TooltipText = "";
tblCheckBoxProps.Y = 0;
tblCheckBoxProps.X = 0;
tblCheckBoxProps.Height = 15;
tblCheckBoxProps.Width = 200;
tblCheckBoxProps.Enabled = true;
tblCheckBoxProps.Visible = true;
tblCheckBoxProps.ResizeLeft = false;
tblCheckBoxProps.ResizeRight = false;
tblCheckBoxProps.ResizeTop = false;
tblCheckBoxProps.ResizeBottom = false;
tblCheckBoxProps.HighlightSound = SND_NONE;
tblCheckBoxProps.HighlightSoundFile = "";
tblCheckBoxProps.ClickSound = SND_NONE;
tblCheckBoxProps.ClickSoundFile = "";
tblCheckBoxProps.ColorNormal = Math.HexColorToNumber("000000");
tblCheckBoxProps.ColorHighlight = Math.HexColorToNumber("000000");
tblCheckBoxProps.ColorDown = Math.HexColorToNumber("000000");</Top>
<Bottom>tblCheckBoxProps.ColorDisabled = Math.HexColorToNumber("C0C0C0");</Bottom>
   </Template>
   <Template>
      <Name>combobox properties table</Name>
      <Type>wrap</Type>
      <Top>-- ComboBox object properties table.
tblComboProps = {};
tblComboProps.FontName = "Arial";
tblComboProps.FontSize = 12;
tblComboProps.FontItalic = false;
tblComboProps.FontStrikeout = false;
tblComboProps.FontAntiAlias = true;
tblComboProps.FontWeight = FW_NORMAL;
tblComboProps.FontUnderline = false;
tblComboProps.FontScript = ANSI_CHARSET;
tblComboProps.TextColor = Math.HexColorToNumber("000000");
tblComboProps.ComboStyle = DROPDOWN_LIST;
tblComboProps.ReadOrder = READ_STANDARD;
tblComboProps.LinesToDisplay = 4;
tblComboProps.Sort = false;
tblComboProps.BackgroundColor = Math.HexColorToNumber("FFFFFF");
tblComboProps.Enabled = true;
tblComboProps.Visible = true;
tblComboProps.ResizeLeft = false;
tblComboProps.ResizeRight = false;
tblComboProps.ResizeTop = false;
tblComboProps.ResizeBottom = false;
tblComboProps.Width = 200;
tblComboProps.Height = 26;
tblComboProps.Y = 0;
tblComboProps.X = 0;</Top>
      <Bottom>tblComboProps.TooltipText = "";</Bottom>
   </Template>
   <Template>
      <Name>comment (single line)</Name>
      <Type>insert</Type>
      <Top>-- Your comment here</Top>
      <Bottom/>
   </Template>
   <Template>
      <Name>comment (multi line)</Name>
      <Type>insert</Type>
      <Top>--[[
Your
multiline
comment
here
]]
      </Top>
      <Bottom/>
   </Template>
   <Template>
      <Name>concatenate strings</Name>
      <Type>insert</Type>
      <Top>-- Set string_name to "First Last"
string_name = "First ".."Last";</Top>
      <Bottom/>
   </Template>
<Template>
	<Name>dialog properties table</Name>
	<Type>wrap</Type>
	<Top>-- Dialog properties table.
tblDialogProps = {};
tblDialogProps.DialogTitle = "MyDialog";
tblDialogProps.Movable = true;
tblDialogProps.AlwaysOnTop = false;
tblDialogProps.Width = 480;
tblDialogProps.Height = 300;
tblDialogProps.DialogStyle = DIALOG_STYLE_STANDARD;
tblDialogProps.CustomMask = "";
tblDialogProps.FitCustomMaskToWindow = true;
tblDialogProps.Resizable = false;
tblDialogProps.MinWidth = 480;
tblDialogProps.MinHeight = 300;
tblDialogProps.UseCustomIcon = false;
tblDialogProps.CustomIcon = "";
tblDialogProps.BackgroundType = BG_SOLID;
tblDialogProps.BackgroundColor = 0;
tblDialogProps.GradientColorTop = 0;
tblDialogProps.ImageFilename = "";
tblDialogProps.ImageStretchMode = BG_IMG_FITPAGE;</Top>
<Bottom/>
</Template>
   <Template>
      <Name>flash properties table</Name>
      <Type>wrap</Type>
      <Top>-- Flash object properties table.
tblFlashProps = {};
tblFlashProps.FlashFile = "";
tblFlashProps.Width = 150;
tblFlashProps.Height = 150;
tblFlashProps.X = 0;
tblFlashProps.Y = 0;
tblFlashProps.Quality = QUALITY_AUTO_HIGH;
tblFlashProps.OverrideBackground = false;
tblFlashProps.ScalingMode = SHOW_ALL;
tblFlashProps.DeviceFont = false;
tblFlashProps.Loop = true;
tblFlashProps.AutoStart = true;
tblFlashProps.BGOverrideColor  = Math.HexColorToNumber("FFFFFF");
tblFlashProps.Menu = MENU_FULL;
tblFlashProps.Visible = true;
tblFlashProps.Enabled = true;
tblFlashProps.ResizeLeft = false;
tblFlashProps.ResizeRight = false;
tblFlashProps.ResizeTop = false;
tblFlashProps.ResizeBottom = false;
tblFlashProps.TooltipText = "";</Top>
      <Bottom>tblFlashProps.Alignment = ALIGN_DEFAULT;</Bottom>
   </Template>
   <Template>
      <Name>for loop</Name>
      <Type>wrap</Type>
      <Top>-- A for loop that counts from 1 to 10
min = 1;  -- The number to start at
max = 10;  -- The number to stop at 
for count = min, max do
	-- Do something here</Top>
      <Bottom>end</Bottom>
   </Template>
   <Template>
      <Name>for loop (with step)</Name>
      <Type>wrap</Type>
      <Top>-- A for loop that counts from 1 to 10 in 2's
min = 0;  -- The number to start at
max = 10;  -- The number to stop at
step = 2;  -- The number to count by (in this case 0, 2, 4, ...)
for count = min, max, step do
	-- Do something here</Top>
      <Bottom>end</Bottom>
   </Template>
   <Template>
      <Name>function</Name>
      <Type>wrap</Type>
      <Top>-- A function that accepts two values and returns one value
function YourFunction(Arg1, Arg2)
	-- Put function script here
	local value1 = Arg1; -- Access Arg1
	local value2 = Arg2; -- Access Arg2
	local result_value = Arg1 .. Arg2;  -- Concatenate Arg1 and Arg2
	return result_value;  -- Return result_value</Top>
      <Bottom>end</Bottom>
   </Template>
   <Template>
      <Name>global variable assignment (boolean)</Name>
      <Type>insert</Type>
      <Top>-- Create a global variable and assign a boolean value to it
the_sky_is_blue = true;</Top>
      <Bottom/>
   </Template>
   <Template>
      <Name>global variable assignment (number)</Name>
      <Type>insert</Type>
      <Top>-- Create a global variable and assign a numeric value to it
pi = 3.1415;</Top>
      <Bottom/>
   </Template>
   <Template>
      <Name>global variable assignment (string)</Name>
      <Type>insert</Type>
      <Top>-- Create a global variable and assign a string to it
your_variable = "Hello World";</Top>
      <Bottom/>
   </Template>
   <Template>
      <Name>grid properties table</Name>
      <Type>wrap</Type>
      <Top>-- Grid object properties table.
tblGridProps = {};
tblGridProps.Rows = 10;
tblGridProps.Columns = 10;
tblGridProps.FixedRows = 1;
tblGridProps.FixedColumns = 1;
tblGridProps.Editable = true;
tblGridProps.Selectable = true;
tblGridProps.CellDragAndDrop = false;
tblGridProps.ResizableRows = true;
tblGridProps.ResizableColumns = true;
tblGridProps.GridLines = GVL_BOTH;
tblGridProps.FontName = "Arial";
tblGridProps.FontSize = 10;
tblGridProps.FontUnderline = false;
tblGridProps.FontScript = ANSI_CHARSET;
tblGridProps.FontAntiAlias = true;
tblGridProps.FontWeight = FW_NORMAL;
tblGridProps.FontItalic = false;
tblGridProps.FontStrikeout = false;
tblGridProps.TextColor = Math.HexColorToNumber("000000");
tblGridProps.TextBackgroundColor = Math.HexColorToNumber("FFFFFF");
tblGridProps.FixedTextColor = Math.HexColorToNumber("000000");
tblGridProps.FixedBackgroundColor = Math.HexColorToNumber("ECE9D8");
tblGridProps.GridLineColor = Math.HexColorToNumber("C0C0C0");
tblGridProps.GridBackgroundColor = Math.HexColorToNumber("ACA899");
tblGridProps.TitleTipBackgroundColor = Math.HexColorToNumber("FFFFE1");
tblGridProps.TitleTipTextColor = Math.HexColorToNumber("000000");
tblGridProps.TooltipText = "";
tblGridProps.ResizeLeft = false;
tblGridProps.ResizeRight = false;
tblGridProps.ResizeTop = false;
tblGridProps.ResizeBottom = false;
tblGridProps.Width = 250;
tblGridProps.Height = 250;
tblGridProps.Y = 0;
tblGridProps.X = 0;
tblGridProps.Enabled = true;</Top>
      <Bottom>tblGridProps.Visible = true;</Bottom>
   </Template>
   <Template>
      <Name>hotspot properties table</Name>
      <Type>wrap</Type>
      <Top>-- Hotspot object properties table.
tblHotSpotProps = {};
tblHotSpotProps.Width = 200;
tblHotSpotProps.Height = 100;
tblHotSpotProps.Y = 0;
tblHotSpotProps.X = 0;
tblHotSpotProps.Enabled = true;
tblHotSpotProps.Cursor = CURSOR_HAND;
tblHotSpotProps.ResizeLeft = false;
tblHotSpotProps.ResizeRight = false;
tblHotSpotProps.ResizeTop = false;
tblHotSpotProps.ResizeBottom = false;
tblHotSpotProps.TooltipText = "";
tblHotSpotProps.ClickSound = SND_NONE;
tblHotSpotProps.ClickSoundFile = "";
tblHotSpotProps.HighlightSound = SND_NONE;</Top>
      <Bottom>tblHotSpotProps.HighlightSoundFile = "";</Bottom>
   </Template>
   <Template>
      <Name>if..else statement</Name>
      <Type>wrap</Type>
      <Top>-- An if ... else statement that compares two numbers
x = 10;
y = 20;
if (x &gt; y) then
	-- Do something here</Top>
      <Bottom>else
	-- Do something else here
end</Bottom>
   </Template>
   <Template>
      <Name>if statement</Name>
      <Type>wrap</Type>
      <Top>-- An if statement that compares two numbers
x = 10;
y = 20;
if (x &gt; y) then
	-- Do something here</Top>
      <Bottom>end</Bottom>
   </Template>
   <Template>
      <Name>if statement (inequality)</Name>
      <Type>wrap</Type>
      <Top>-- An if statement that compares two numbers for inequality
x = 10;
y = 20;
if (x ~= y) then
	-- Do something here, they are not equal</Top>
      <Bottom>end</Bottom>
   </Template>
   <Template>
      <Name>image properties table</Name>
      <Type>wrap</Type>
      <Top>-- Image object properties table.
tblImageProps = {};
tblImageProps.ImageFile = "";
tblImageProps.Height = 150;
tblImageProps.Width = 150;
tblImageProps.Y = 0;
tblImageProps.X = 0;
tblImageProps.UseTransColor = false;
tblImageProps.TransparentColor = Math.HexColorToNumber("FFFFFF");
tblImageProps.Opacity = 100;
tblImageProps.Tolerance = 10;
tblImageProps.HitTest = HITTEST_STANDARD;
tblImageProps.Cursor = CURSOR_ARROW;
tblImageProps.TooltipText = "";
tblImageProps.Visible = true;
tblImageProps.Enabled = true;
tblImageProps.ResizeLeft = false;
tblImageProps.ResizeRight = false;
tblImageProps.ResizeTop = false;
tblImageProps.ResizeBottom = false;
tblImageProps.ClickSound = SND_NONE;
tblImageProps.ClickSoundFile = "";
tblImageProps.HighlightSound = SND_NONE;</Top>
      <Bottom>tblImageProps.HighlightSoundFile = "";</Bottom>
   </Template>
   <Template>
      <Name>input properties table</Name>
      <Type>wrap</Type>
      <Top>-- Input object properties table.
tblInputProps = {};
tblInputProps.Text = "";
tblInputProps.FontName = "Arial";
tblInputProps.FontSize = 12;
tblInputProps.FontScript = ANSI_CHARSET;
tblInputProps.FontItalic = false;
tblInputProps.FontStrikeout = false;
tblInputProps.FontColor = Math.HexColorToNumber("000000");
tblInputProps.FontAntiAlias = true;
tblInputProps.FontWeight = FW_NORMAL;
tblInputProps.FontUnderline = false;
tblInputProps.HScrollbar = false;
tblInputProps.VScrollbar = true;
tblInputProps.InputStyle = INPUT_STANDARD;
tblInputProps.ReadOrder = READ_STANDARD;
tblInputProps.Border = BORDER_SUNKEN;
tblInputProps.ReadOnly = false;
tblInputProps.BackgroundColor = Math.HexColorToNumber("FFFFFF");
tblInputProps.Multiline = false;
tblInputProps.MaskText = "";
tblInputProps.MaskReturnMode = MASK_FORMATTED;
tblInputProps.Placeholder = " ";
tblInputProps.TooltipText = "";
tblInputProps.ResizeLeft = false;
tblInputProps.ResizeRight = false;
tblInputProps.ResizeTop = false;
tblInputProps.ResizeBottom = false;
tblInputProps.Alignment = ALIGN_LEFT;
tblInputProps.Height = 30;
tblInputProps.Width = 200;
tblInputProps.X = 0;
tblInputProps.Y = 0;
tblInputProps.Visible = true;</Top>
      <Bottom>tblInputProps.Enabled = true;</Bottom>
   </Template>
   <Template>
      <Name>label properties table</Name>
      <Type>wrap</Type>
      <Top>-- Label object properties table.
tblLabelProps = {};
tblLabelProps.Text = "New Label";
tblLabelProps.FontName = "Arial";
tblLabelProps.FontSize = 16;
tblLabelProps.FontWeight = FW_NORMAL;
tblLabelProps.FontUnderline = false;
tblLabelProps.FontScript = ANSI_CHARSET;
tblLabelProps.FontItalic = false;
tblLabelProps.FontStrikeout = false;
tblLabelProps.FontAntiAlias = true;
tblLabelProps.ColorNormal = Math.HexColorToNumber("000000");
tblLabelProps.ColorDown = Math.HexColorToNumber("000000");
tblLabelProps.ColorHighlight = Math.HexColorToNumber("000000");
tblLabelProps.ColorDisabled = Math.HexColorToNumber("C0C0C0");
tblLabelProps.Cursor = CURSOR_ARROW;
tblLabelProps.Enabled = true;
tblLabelProps.Visible = true;
tblLabelProps.Height = 30;
tblLabelProps.Width = 104;
tblLabelProps.Y = 0;
tblLabelProps.X = 0;
tblLabelProps.TooltipText = "";
tblLabelProps.ResizeLeft = false;
tblLabelProps.ResizeRight = false;
tblLabelProps.ResizeTop = false;
tblLabelProps.ResizeBottom = false;
tblLabelProps.HighlightSound = SND_NONE;
tblLabelProps.HighlightSoundFile = "";
tblLabelProps.ClickSound = SND_NONE;
tblLabelProps.ClickSoundFile = "";
tblLabelProps.Orientation = 0;</Top>
      <Bottom>tblLabelProps.Alignment = ALIGN_LEFT;</Bottom>
   </Template>
   <Template>
      <Name>listbox properties table</Name>
      <Type>wrap</Type>
      <Top>-- ListBox object properties table.
tblListboxProps = {};
tblListboxProps.FontName = "Arial";
tblListboxProps.FontSize = 12;
tblListboxProps.FontUnderline = false;
tblListboxProps.FontScript = ANSI_CHARSET;
tblListboxProps.FontAntiAlias = true;
tblListboxProps.FontWeight = FW_NORMAL;
tblListboxProps.FontItalic = false;
tblListboxProps.FontStrikeout = false;
tblListboxProps.TextColor = Math.HexColorToNumber("000000");
tblListboxProps.ReadOrder = READ_STANDARD;
tblListboxProps.VScrollbar = true;
tblListboxProps.HScrollbar = false;
tblListboxProps.Border = BORDER_SUNKEN;
tblListboxProps.MultipleSelection = false;
tblListboxProps.Sort = false;
tblListboxProps.BackgroundColor = Math.HexColorToNumber("FFFFFF");
tblListboxProps.TooltipText = "";
tblListboxProps.ResizeLeft = false;
tblListboxProps.ResizeRight = false;
tblListboxProps.ResizeTop = false;
tblListboxProps.ResizeBottom = false;
tblListboxProps.Width = 200;
tblListboxProps.Height = 150;
tblListboxProps.Y = 0;
tblListboxProps.X = 0;
tblListboxProps.Enabled = true;</Top>
      <Bottom>tblListboxProps.Visible = true;</Bottom>
   </Template>
   <Template>
      <Name>local variable assignment (boolean)</Name>
      <Type>insert</Type>
      <Top>-- Create a local variable and assign a boolean value to it
local the_sky_is_blue = true;</Top>
      <Bottom/>
   </Template>
   <Template>
      <Name>local variable assignment (number)</Name>
      <Type>insert</Type>
      <Top>-- Create a local variable and assign a numeric value to it
local pi = 3.1415;</Top>
      <Bottom/>
   </Template>
   <Template>
      <Name>local variable assignment (string)</Name>
      <Type>insert</Type>
      <Top>-- Create a local variable and assign a string to it
local your_variable = "Hello World";</Top>
      <Bottom/>
   </Template>
<Template>
	<Name>page properties table</Name>
	<Type> wrap</Type>
	<Top>-- Page properties table.
tblPageProps = {};
tblPageProps.BackgroundType = BG_SOLID;
tblPageProps.SolidColor = 16777215;
tblPageProps.GradientColorTop = 0;
tblPageProps.BackgroundColor = 0;
tblPageProps.ImageFilename = "";
tblPageProps.ImageStretchMode = BG_IMG_FITPAGE;
tblPageProps.Description = "My Page Description";
tblPageProps.Keywords = {"Apple","Orange"};</Top>
<Bottom/>
</Template>
   <Template>
      <Name>paragraph properties table</Name>
      <Type>wrap</Type>
      <Top>-- Paragraph object properties table.
tblParaProps = {};
tblParaProps.Text = "The quick brown fox jumps over the lazy dog.";
tblParaProps.FontName = "Arial";
tblParaProps.FontSize = 10;
tblParaProps.FontWeight = FW_NORMAL;
tblParaProps.FontAntiAlias = true;
tblParaProps.FontScript = ANSI_CHARSET;
tblParaProps.FontUnderline = false;
tblParaProps.FontStrikeout = false;
tblParaProps.FontItalic = false;
tblParaProps.Y = 0;
tblParaProps.X = 0;
tblParaProps.Width = 200;
tblParaProps.Height = 100;
tblParaProps.ScrollVertical = SCROLL_AUTO;
tblParaProps.ScrollHorizontal = SCROLL_OFF;
tblParaProps.Alignment = ALIGN_LEFT;
tblParaProps.BGStyle = BG_TRANSPARENT;
tblParaProps.BGColor = Math.HexColorToNumber("FFFFFF");
tblParaProps.BorderStyle = BORDER_NONE;
tblParaProps.BorderColor = Math.HexColorToNumber("000000");
tblParaProps.ScrollStyle = SCROLL_STANDARD;
tblParaProps.SkinFile = "";
tblParaProps.TooltipText = "";
tblParaProps.Enabled = true;
tblParaProps.Visible = true;
tblParaProps.Cursor = CURSOR_ARROW;
tblParaProps.ResizeLeft = false;
tblParaProps.ResizeRight = false;
tblParaProps.ResizeTop = false;
tblParaProps.ResizeBottom = false;
tblParaProps.ColorNormal = Math.HexColorToNumber("000000");
tblParaProps.ColorHighlight = Math.HexColorToNumber("000000");
tblParaProps.ColorDown = Math.HexColorToNumber("000000");
tblParaProps.ColorDisabled = Math.HexColorToNumber("C0C0C0");
tblParaProps.HighlightSound = SND_NONE;
tblParaProps.HighlightSoundFile = "";
tblParaProps.ClickSound = SND_NONE;</Top>
      <Bottom>tblParaProps.ClickSoundFile = "";</Bottom>
   </Template>
   <Template>
      <Name>progress properties table</Name>
      <Type>wrap</Type>
      <Top>-- Progress object properties table.
tblProgressProps = {};
tblProgressProps.Text = "";
tblProgressProps.FontName = "Arial";
tblProgressProps.FontSize = 12;
tblProgressProps.FontScript = ANSI_CHARSET;
tblProgressProps.FontItalic = false;
tblProgressProps.FontStrikeout = false;
tblProgressProps.FontAntiAlias = true;
tblProgressProps.FontWeight = FW_NORMAL;
tblProgressProps.FontUnderline = false;
tblProgressProps.TextColor = Math.HexColorToNumber("000000");
tblProgressProps.BarColor = Math.HexColorToNumber("28D22B");
tblProgressProps.BackgroundColor = Math.HexColorToNumber("FFFFFF");
tblProgressProps.MinRange = 0;
tblProgressProps.Step = 10;
tblProgressProps.MaxRange = 100;
tblProgressProps.Style = STYLE_BARS;
tblProgressProps.XPStyle = false;
tblProgressProps.Orientation = ORIENT_HORIZONTAL;
tblProgressProps.Enabled = true;
tblProgressProps.Visible = true;
tblProgressProps.ResizeLeft = false;
tblProgressProps.ResizeRight = false;
tblProgressProps.ResizeTop = false;
tblProgressProps.ResizeBottom = false;
tblProgressProps.Width = 150;
tblProgressProps.Height = 20;
tblProgressProps.Y = 0;
tblProgressProps.X = 0;</Top>
      <Bottom>tblProgressProps.TooltipText = "";</Bottom>
   </Template>
   <Template>
      <Name>radiobutton properties table</Name>
      <Type>wrap</Type>
      <Top>-- RadioButton object properties table.
tblRadioBtnProps = {};
tblRadioBtnProps.GroupID = "Group1";
tblRadioBtnProps.Value = "My Value";
tblRadioBtnProps.Checked = true;
tblRadioBtnProps.Text = "Radio Button 1";
tblRadioBtnProps.FontName = "Verdana";
tblRadioBtnProps.FontSize = 10;
tblRadioBtnProps.FontWeight = FW_BOLD;
tblRadioBtnProps.FontItalic = false;
tblRadioBtnProps.FontStrikeout = false;
tblRadioBtnProps.FontScript = ANSI_CHARSET;
tblRadioBtnProps.FontAntiAlias = true;
tblRadioBtnProps.FontUnderline = false;
tblRadioBtnProps.TextAlignment = ALIGN_LEFT;
tblRadioBtnProps.ButtonAlignment = BTN_ALIGN_LEFT;
tblRadioBtnProps.ReadOrder = READ_STANDARD;
tblRadioBtnProps.Cursor = CURSOR_ARROW;
tblRadioBtnProps.TooltipText = "";
tblRadioBtnProps.Y = 0;
tblRadioBtnProps.X = 0;
tblRadioBtnProps.Height = 15;
tblRadioBtnProps.Width = 200;
tblRadioBtnProps.Enabled = true;
tblRadioBtnProps.Visible = true;
tblRadioBtnProps.ResizeLeft = false;
tblRadioBtnProps.ResizeRight = false;
tblRadioBtnProps.ResizeTop = false;
tblRadioBtnProps.ResizeBottom = false;
tblRadioBtnProps.HighlightSound = SND_NONE;
tblRadioBtnProps.HighlightSoundFile = "";
tblRadioBtnProps.ClickSound = SND_NONE;
tblRadioBtnProps.ClickSoundFile = "";
tblRadioBtnProps.ColorNormal = Math.HexColorToNumber("000000");
tblRadioBtnProps.ColorHighlight = Math.HexColorToNumber("000000");
tblRadioBtnProps.ColorDown = Math.HexColorToNumber("000000");</Top>
<Bottom>tblRadioBtnProps.ColorDisabled = Math.HexColorToNumber("C0C0C0");</Bottom>
   </Template>
   <Template>
      <Name>repeat ... until loop</Name>
      <Type>wrap</Type>
      <Top>-- A repeat ... until loop
numLoopCount = 0;
repeat
	-- Do something here
	numLoopCount = numLoopCount + 1;</Top>
      <Bottom>until numLoopCount == 10;</Bottom>
   </Template>
   <Template>
      <Name>richtext properties table</Name>
      <Type>wrap</Type>
      <Top>-- RichText object properties table.
tblRichTextProps = {};
tblRichTextProps.Text = "Sample Text";
tblRichTextProps.RawRTF = "{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 MS Shell Dlg;}}\\viewkind4\\uc1\\pard\\f0\\fs17 Sample Text\\par}";
tblRichTextProps.VScrollbar = true;
tblRichTextProps.HScrollbar = true;
tblRichTextProps.Transparent = true;
tblRichTextProps.BackgroundColor = 16777215;
tblRichTextProps.Border = BORDER_SUNKEN;
tblRichTextProps.ReadOrder = READ_STANDARD;
tblRichTextProps.ReadOnly = true;
tblRichTextProps.AutoDetectURL = false;
tblRichTextProps.ShowContextMenu = true;
tblRichTextProps.Enabled = true;
tblRichTextProps.Visible = true;
tblRichTextProps.X = 0;
tblRichTextProps.Y = 0;
tblRichTextProps.Width = 200;
tblRichTextProps.Height = 120;
tblRichTextProps.ResizeLeft = false;
tblRichTextProps.ResizeRight = false;
tblRichTextProps.ResizeTop = false;
tblRichTextProps.ResizeBottom = false;</Top>
      <Bottom>tblRichTextProps.TooltipText = "";</Bottom>
   </Template>
   <Template>
      <Name>table constructor (associative)</Name>
      <Type>insert</Type>
      <Top>-- An associative table (array)
my_table = {One = "First Element", Two = "Second Element", Three = "Third Element"};</Top>
      <Bottom/>
   </Template>
   <Template>
      <Name>table constructor (numerically indexed)</Name>
      <Type>insert</Type>
      <Top>-- A numerically indexed table (array)
my_table = {"First Element","Second Element","Third Element"};</Top>
      <Bottom/>
   </Template>
   <Template>
      <Name>test for error</Name>
      <Type>wrap</Type>
      <Top>-- Test for error
error = Application.GetLastError();
if (error ~= 0) then
	Dialog.Message("Error", _tblErrorMessages[error], MB_OK, MB_ICONEXCLAMATION);</Top>
      <Bottom>end</Bottom>
   </Template>
   <Template>
      <Name>tree properties table</Name>
      <Type>wrap</Type>
      <Top>-- Tree object properties table.
tblTreeProps = {};
tblTreeProps.FontName = "Arial";
tblTreeProps.FontScript = ANSI_CHARSET;
tblTreeProps.FontSize = 9;
tblTreeProps.FontUnderline = false;
tblTreeProps.FontItalic = false;
tblTreeProps.FontStrikeout = false;
tblTreeProps.FontAntiAlias = true;
tblTreeProps.FontWeight = FW_NORMAL;
tblTreeProps.TextColor = Math.HexColorToNumber("000000");
tblTreeProps.EditLabels = false;
tblTreeProps.ReadOrder = READ_STANDARD;
tblTreeProps.HasLines = true;
tblTreeProps.HasButtons = true;
tblTreeProps.LinesAtRoot = true;
tblTreeProps.UseImageList = false;
tblTreeProps.ImageList = "";
tblTreeProps.ImageListTransColor = Math.HexColorToNumber("FFFFFF");
tblTreeProps.AlwaysShowSelection = false;
tblTreeProps.BorderMode = BORDER_SUNKEN;
tblTreeProps.ShowCheckBoxes = false;
tblTreeProps.BackgroundColor = Math.HexColorToNumber("FFFFFF");
tblTreeProps.Enabled = true;
tblTreeProps.Visible = true;
tblTreeProps.ResizeLeft = false;
tblTreeProps.ResizeRight = false;
tblTreeProps.ResizeTop = false;
tblTreeProps.ResizeBottom = false;
tblTreeProps.Width = 150;
tblTreeProps.Height = 150;
tblTreeProps.X = 0;
tblTreeProps.Y = 0;</Top>
      <Bottom>tblTreeProps.TooltipText = "";</Bottom>
   </Template>
   <Template>
      <Name>video properties table</Name>
      <Type>wrap</Type>
      <Top>-- Video object properties table.
tblVideoProps = {};
tblVideoProps.VideoFile = "";
tblVideoProps.FitToObject = true;
tblVideoProps.Width = 320;
tblVideoProps.Height = 265;
tblVideoProps.X = 0;
tblVideoProps.Y = 0;
tblVideoProps.StageColor = Math.HexColorToNumber("000000");
tblVideoProps.Border = false;
tblVideoProps.SkinFile = "";
tblVideoProps.ApplyCustomMask = false;
tblVideoProps.MaskFile = "";
tblVideoProps.CPStyle = CONTROL_PANEL_STANDARD;
tblVideoProps.Slider = true;
tblVideoProps.TextColor = Math.HexColorToNumber("000000");
tblVideoProps.ControlButtons = true;
tblVideoProps.Loop = false;
tblVideoProps.AutoStart = true;
tblVideoProps.ScalingMode = MAINTAIN_ASPECT;
tblVideoProps.CPTime = TIME_ELAPSED;
tblVideoProps.PanelColor = Math.HexColorToNumber("ECE9D8");
tblVideoProps.Cursor = CURSOR_ARROW;
tblVideoProps.ResizeLeft = false;
tblVideoProps.ResizeRight = false;
tblVideoProps.ResizeTop = false;
tblVideoProps.ResizeBottom = false;
tblVideoProps.Enabled = true;
tblVideoProps.Visible = true;
tblVideoProps.HighlightSound = SND_NONE;
tblVideoProps.HighlightSoundFile = "";
tblVideoProps.ClickSound = SND_NONE;</Top>
      <Bottom>tblVideoProps.ClickSoundFile = "";</Bottom>
   </Template>
   <Template>
      <Name>web properties table</Name>
      <Type>wrap</Type>
      <Top>-- Web object properties table.
tblWebProps = {};
tblWebProps.URL = "";
tblWebProps.Width = 300;
tblWebProps.Height = 200;
tblWebProps.Y = 0;
tblWebProps.X = 0;
tblWebProps.ResizeLeft = false;
tblWebProps.ResizeRight = false;
tblWebProps.ResizeTop = false;
tblWebProps.ResizeBottom = false;
tblWebProps.Visible = true;</Top>
      <Bottom>tblWebProps.Enabled = true;</Bottom>
   </Template>
   <Template>
      <Name>while loop</Name>
      <Type>wrap</Type>
      <Top>-- A while loop
testvar = 10;
while (testvar &lt; 100) do
	-- Do something here
	testvar = testvar + 1;</Top>
      <Bottom>end</Bottom>
   </Template>
</IRCodeTemplates>
