DisplayBox.InitBox

Availability

Flash Player 7.

Usage

DisplayBox.InitBox()

Parameters

None.

Returns

True if successful, or false if the box had already been initiated.

Description

Function; Draws the box based upon how you defined the columns in the paramters tab and also if you used the DisplayBox.newColumn() function.

Example

The following will assume you did not add any columns using the parameters tab in the GUI. This will construct a DisplayBox with 3 columns, all will automatically size itself to display all 3 columns and up to 6 rows before showing the scrollbars. We will set the Email Address column to enable HTML text, this way we can make the email address a clickable link and initiate a mailto.

//construct columns

myDisplayBox.newColumn("WholeName",250,false,false,false,true,"Contacts Name");
myDisplayBox.newColumn("Phone",150,false,false,false,true,"Contacts Name");
myDisplayBox.newColumn("Email",175,true,false,false,true,"Email Address "); //We set isHTML to true so we can easily do mailto's to this contact
myDisplayBox.autoResize=true;
myDisplayBox.DisplayRows=6;
myDisplayBox.RowHeight=20;
myDisplayBox.InitBox();
myDisplayBox.addListItem();
myDisplayBox.setItemValue("WholeName","Telsim, Inc.");
myDisplayBox.setItemValue("Phone","1-813-908-1660");
myDisplayBox.setItemValue("Email","<a href='mailto:tfreriks@telsim.com'><u><b>tfreriks@telsim.com</b></u></font>");

Author

Telsim, Inc.