Register to post in forums, or Log in to your existing account
 

 Related 
Contents
Label
  HTML in Labels
  ColorTo
  Color
  BevelInner
  BevelOuter
  BevelWidth
  BorderStyle
  Ellipsis
  GradientType
  URLColor
  ShadowColor
  ShadowOffset
  Update
  OnJump
HTML in Labels [[zLabel.HTML]] 
NOTE: This Design document is subject to change at any time.
Only a limited set of HTML can be used in Labels. Mostly this is used to change the font style or colors of the label. Remember than when using HTML tags in a label, you might need to place it within a CDATA section to prevent the XML parser from getting confused by the tag when reading your ZML file into zApp.

Here are the tags allowed for Labels:

<B>text</B>
makes the text bold
<I>text</I>
makes the text italic
<U>text</U>
underlines the text
<S>text</S>
causes the text to be displayed as strikeout.
<A href="URL">test</A>
sets a hyperlink anchor to the give URL.
<FONT face='fontname' size='fontsize' color='textcolor' bgcolor='backgroundcolor'>
sets the font name, size and color. The colors can either be color names or #RRGGBB values.
<P align="alignvalue" bgcolor="colorvalue" bgcolorto="colorvalue">
creates a new paragraph with the given alignment and colors. The colors can be used to set a gradient from one color to another. The possible alignvalues are left, right and center.
<HR>
inserts a horizontal rule
<BODY bgcolor="colorvalue" bgcolorto="colorvalue" dir="v|h" background="imagefile specifier">
sets the body of the text in the label. The colors can be used to create either a vertical or horizontal gradient based upon the "dir" attribute. The background attribute can be used to specify an image to use to tile the background of the text. The background image specifier must be a URL value, such as "file://c:\test.bmp" for a local file.
<IND x="indent">
indent the specified number of pixels
<IMG src="specifier:name" align="specifier" width="width" height="height" alt="specifier:name">
can be used to display an image.
<SUB>text</SUB>
display text as a subscript
<SUP>text</SUP>
display text as a superscript
<BLINK>text</BLINK>
display text as blinking
<UL>list</UL>
create an unordered bullet list
<LI>
create a item in a list
<SHAD>text</SHAD>
display the text with a shadow
<Z>text</Z>
makes the text hidden
<HI>text</HI>
highlights the given text

The symbols & lt; & gt; &amp; & quot; &nbsp; &trade; &euro; &sect; &copy; &para; are all supported.

In addition, since the Label is a data-aware control, when a data source is assigned to the DataSource property you can insert the value of a particular field into the label using the syntax: <#FieldName>
Viewer Comments [0 - Post your comments]

Jump to:  

© 2009 Zugg Software. Hosted by Wolfpaw.net