AdvancedDataGrid headerrenderer children added dynamically do not display

The AdvancedDataGrid in Flex 3.x does not correctly render children of a custom headerrenderer when the children are added dynamically. This works correctly with the DataGrid.
An AdvancedDataGrid has a custom headerrenderer with one field to display the column header text.
A show button below the grid adds a text input field in the header below the column text in the header.
When the show button is selected, the AdvancedDataGrid header sizes correctly to leave space for the field but does not display the field.
If I drag the column, the text input field displays as I am dragging. See the 3 images below.
I have included the 3 source files. What is the correct way to dynamically add children to an AdvancedDataGrid header?
Thanks.
1. AdvancedDataGrid with only the column header text:
2. After Show is selected, the header is sized for the text field below:
3. Only dragging the column header temporarily shows the text field:
1. TestGrid.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="onInit(event)" width="100%" height="100%">
<mx:Script>
<![CDATA[
     protected function onInit(event:Event):void {
          var cols:Array = grid.columns;
          var colWidth:int = grid.width;
          var col:AdvancedHeaderColumn = new AdvancedHeaderColumn();
          col.wordWrap = true;
          col.show = false;
          var headerRenderer:ClassFactory = new ClassFactory(AdvancedHeaderLabel);
          // Add any custom properties
          headerRenderer.properties = {text: "Column1 header that wraps", dataGridColumn: col};
          col.headerRenderer = headerRenderer;
          col.headerWordWrap = true;
          cols.push(col);
          grid.columns = cols;
          grid.measuredWidth = colWidth;
     protected function showText(event:Event):void {
          var cols:Array = grid.columns;
          for each (var col:AdvancedHeaderColumn in grid.columns) {
               col.show = show.selected;
          grid.columns = cols;
]]>
</mx:Script>
     <mx:AdvancedDataGrid id="grid" height="100%" width="100%" variableRowHeight="true" editable="true" lockedColumnCount="1"/>
     <mx:Button label="Show" id="show" click="showText(event)" selected="false" toggle="true"/>
</mx:Application>
2. AdvancedHeaderLabel.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" verticalScrollPolicy="off">
<mx:Script>
<![CDATA[
     import mx.controls.TextInput;
     import mx.core.UITextField;
     // properties
     public var text:String;
     public var dataGridColumn:AdvancedHeaderColumn;
     // Column header
     public var textField:UITextField;
     // Optional text input field
     public var textInput:TextInput;
     override protected function createChildren():void {
          super.createChildren();
          // Always add the header text
          textField = new UITextField();
          textField.text = text;
          textField.multiline = true;
          textField.wordWrap = true;
          textField.percentWidth = 100;
          addChildAt(textField, 0);
     override protected function commitProperties():void {
          super.commitProperties();
          // Add the text input field?
          if (dataGridColumn && dataGridColumn.show && !textInput) {
               textInput = new TextInput();
               box.addChild(textInput);
     override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
          super.updateDisplayList(unscaledWidth, unscaledHeight);
          // Position and size the textInput field
          if (dataGridColumn.show && textInput) {
               textInput.y = textField.getExplicitOrMeasuredHeight();
               textInput.setActualSize(unscaledWidth, textInput.getExplicitOrMeasuredHeight());
     override protected function measure():void {
          super.measure();
          measuredWidth = textField.getExplicitOrMeasuredWidth();
          measuredHeight = textField.getExplicitOrMeasuredHeight();
          // Make room for the text input field
          if (textInput) {
               measuredHeight += textInput.getExplicitOrMeasuredHeight();
]]>
</mx:Script>
     <mx:VBox height="100%" width="100%" id="box" verticalAlign="bottom"/>
</mx:VBox>
3. AdvancedHeaderColumn.as
package {
     import mx.controls.advancedDataGridClasses.AdvancedDataGridColumn;
     public class AdvancedHeaderColumn extends AdvancedDataGridColumn {
          public var show:Boolean = false;
          public function AdvancedHeaderColumn(columnName:String=null) {
               super(columnName);

Thanks Hackintosh.
It prints as it views, as a corrupt jpeg. I also dug into console and it confirmed there was an error about a corrupt jpg. The most interesting thing is if I open the bad pdf in Photoshop the whole image is there with no signs of corruption. This leads me to believe it's something with how OSx and/or Safari are rendering the jpgs. Another curious sidenote, Safari on Windows works fine but if you save the pdf, move it to a mac and open it, you get the corrupted jpg again.
I think I'm going to try and stop swimming upstream now. At the end of the day I don't care if the images are pngs, tiffs, or eps. I'm going to try feeding a few different formats and see if that doesn't fix the problem.

Similar Messages

  • Dynamic Selection not displayed from tcode ZME5A but from se93 yes

    I have made a copy of standard program RM06BA00 and transaction ZME5A.
    Everything works except Dynamic selection which is not displayed.
    When I run transaction from SE93 Dynamic selections show up.
    Do you know why this happens and how to fix it?

    Hi,
    You problem probably is related with the "container" of this screen. Check if it still in the screen 1000, because this program is a report and if you change some screen parameter, the screen is recreated and elements inserted by user may be lost.
    Also, check the program names link, like:
    CALL SUBSCREEN %_SUBSCREEN_%_SUB%_CONTAINER  INCLUDING 'SAPLSSEL' '2001' .
    Best regards,
    Mengue
    Do not consider this above if the button is not displayed ****
    Edited by: Leandro Mengue on Oct 15, 2010 7:56 PM

  • Dynamic Lov not Displaying

    Hi
    I am having trouble in displaying my dynamic record group. I created a default record group and LOV called RG_TRY and LOV_TRY. I based LOV_TRY on RG_TRY which is a SQL query with one column. I call this LOV by pressing a button. However, I want to change the SQL when the button is pressed. I tried this code in my KEY-LISTVAL but the LOV doesn't display anything. What am I doing wrong? I put message to see if the Recorg group is being created. It is but not displaying the LOV. Please help.
    x number;
    rg_name VARCHAR2(40) := 'RG_TEST';
    rg_id RecordGroup;
    lov_id LOV;
    a_value_chosen BOOLEAN;
    code_col GROUPCOLUMN;
    qry varchar2(4000);
    BEGIN
         rg_id := FIND_GROUP('RG_TEST');
         qry := 'SELECT NAME FROM TEST';
         IF NOT ID_NULL(RG_ID) then
              delete_group(RG_id);
         END IF;
         rg_id := CREATE_GROUP_FROM_QUERY(rg_name, qry);
         x := POPULATE_GROUP(rg_id);
         message(x);
         lov_id := FIND_LOV('LOV_TRY');
         SET_LOV_PROPERTY('LOV_TRY', GROUP_NAME, rg_name);
         message(get_lov_property('LOV_TRY', GROUP_NAME));
    a_value_chosen := Show_Lov('LOV_TRY', 40, 40);
    END;

    Hi,
    Your code works fine in a form I just made.
    declare
       x                                            number;
       rg_name                                      varchar2( 40 ) := 'RG_TEST';
       rg_id                                        recordgroup;
       lov_id                                       lov;
       a_value_chosen                               boolean;
       code_col                                     groupcolumn;
       qry                                          varchar2( 4000 );
    begin
       rg_id := find_group( 'RG_TEST' );
       qry := 'SELECT NAME FROM TEST';
       if not id_null( rg_id )
       then
          delete_group( rg_id );
       end if;
       rg_id := create_group_from_query( rg_name, qry );
       x := populate_group( rg_id );
       message( x );
       lov_id := find_lov( 'LOV_TRY' );
       set_lov_property(
          'LOV_TRY'
        , group_name
        , rg_name );
       message( get_lov_property( 'LOV_TRY', group_name ) );
       a_value_chosen := show_lov(
                           'LOV_TRY'
                         , 40
                         , 40 );
    end;And you get no error messages? And you see all messages appear on the message bar?
    In that case I have no clue.
    Grtx,
    Remco

  • Dynamic text not displaying when publishing for flash 8

    This dynamic text works fine when the movie is published for
    flash 7, but when i export for the flash 8 player it seems to be
    invisible. Is there any obvious reason for this happenning?
    thanks
    jon

    Ok, thanks, looks like you've pointed me in the right
    direction. I havent fixed it yet though. Heres where i am at:
    eval(theTarget+".buttonPrime").tex.embedFonts = false;
    now i can see my text. of course its using a default font.
    var my_fmt:TextFormat = new TextFormat();
    my_fmt.font = "arial14b";
    eval(theTarget+".buttonPrime").tex.embedFonts = true;
    eval(theTarget+".buttonPrime").tex.text = "wasssup?";
    eval(theTarget+".buttonPrime").tex.setTextFormat = my_fmt;
    this isnt working. I have added a font object to the library
    and linked it for actionscript using the monkier "arial14b".
    however my text is quite invisible. i have checcked, 'export in
    first frame' for the font object i even tried it with this
    deselected. i have deselected the embed font option on the text
    feild itself. that doesnt work either (unless i dont try to set the
    text format, so long as i accept a default font, its fine).
    so err, help?
    confused
    jon
    ps further to this is have discovered more about this strange
    behaviour. i can set the text to a different string, provided i do
    not try to embed the font in any way. if i set the font to embed, i
    can have the text display with the correct font, until i change the
    text. then it dissappears. also i cannot seem to affect properties
    like font size by means of my TextFormat object. the textFormat
    object also does not seem to affect the font of the text.
    in short, when exporting for flash 8, i cannot seem to
    successfully embed fonts for dynamic text. the only thigs i have
    gotten to work are: static text (or a dynamic text feild with
    unchanged text) with an embedded font, or dynamic text with a
    default font.

  • Help with Dynamic Code not displaying only ASP Shields???

    Started working with some .asp pages today and it is not showing me the record set in the brackets. Like this {Recordset.Field} Only giving me the little ASP shield. Looks like this. I have search on google and in dreamweave in the pref's thinking something was not turned on. Can any one help this is driving me nuts.
    theDogger

    I have been working with DW since UltraDev days and I have never had this issue. I did a fresh install of Win7 Pro and now I get this instead of the dynamic info in the window. I really do not think that it matters what view you are in. I do not want to se what is generated by the DB I just want to see what is supposed to be re-ferenced by the DB in the WYSIWYG.It should not matter if I am working in the Designer or classic or what I usually work in the Dual Mode
    It is killing me becasue I can't apply style to the shields it won't let me.
    If I run live view I get the proper info. displayed but I should get something like this in the WYSISYG window {rs_innentory.inv-LG-Image} not the damn ASP shield.
    I know that I am missing something simple that a tick box or something....it is driving me crazy!
    theDogger

  • Newly added pdfs will not display after generating primarly layout

    RoboHelp X5. I'm replacing pdf files for a Help project
    that's been in place for over a year. From the user's perspective
    the files are accessed via a link when accessing Help. I removed
    the link (a link to, let's say example.pdf rev A). I recreated the
    link by pointing to the new pdf (example.pdf rev B). All my pdfs
    are on my local drive under C:\Program Files\RoboHelp
    Office\RoboHTML\<project name>. After updating the pdfs and
    subsequently deleting the old pdfs several baggage files showed the
    red X. I deleted these baggage files b/c they represented the old
    files. After generating the primary layout none of the re-created
    links worked. Only the links I didn't touch work. The working links
    are also the only files that have a representation in the baggages
    file folder. I tried adding baggage files but it doesn't work. My
    PC is WXP SP2 w/Office 2007. I uninstalled RoboHelp (I didn't touch
    the registries). Reloaded RoboHelp and noticed that Office 2007
    wasn't listed. So I went to another PC that's never had RoboHelp
    and runs WXP SP2 w/Office 2000. The installation went fine however
    the same problem occurs. Also on either PC I can run the unused
    files report which lists all the files I need (the ones I just
    added). But I don't know how to make an unused file, used.

    thanks. I actually followed those same steps yesterday (for
    adding a baggage file). I was able to get the file to appear in the
    baggage folder but after compiling, when I click on the link,
    nothing happens. Whereas before I'd get the "cannot display
    webpage" error.

  • Dynamic Menu not displaying correctly on iOS devices

    Can't get my dropdown menus to display correctly when viewing on iPhone & iPad. For some reason the submenu will become visable but not let me select anything before disappearing again. Works fine on desktop browsers.

    Just realised the parent element  of the submenu is linking to a page, as soon as I took off the link, it works fine. Is there a way I can get it so that the first click brings up the submenu even if there is a link to another page.

  • Dynamic Table not displaying data

    First off, i have searched high and low, and havent been able to find much help.
    That said, i have been trying to create a simple search/results page in dream weaver, i am using ASP and sql express.  Ive been following the adobe tutorial, and everything works as it says it should, except that when you actually do a search, and hit submit, the results page only shows the dynamic table headings, but no data.
    On the results page, when i create the record set, if i test it, the data shows up correctly.  However on the page itself, nothing shows up.
    Here are some example screen shots:

    Results page:
    <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
    <!--#include file="Connections/netdata.asp" -->
    <%
    Dim rsUserResults__MMColParam
    rsUserResults__MMColParam = "1"
    If (Request.QueryString("frmUserSearch") <> "") Then
      rsUserResults__MMColParam = Request.QueryString("frmUserSearch")
    End If
    %>
    <%
    Dim rsUserResults
    Dim rsUserResults_cmd
    Dim rsUserResults_numRows
    Set rsUserResults_cmd = Server.CreateObject ("ADODB.Command")
    rsUserResults_cmd.ActiveConnection = MM_netdata_STRING
    rsUserResults_cmd.CommandText = "SELECT logonDate FROM dbo.loginInfo WHERE userName = ?"
    rsUserResults_cmd.Prepared = true
    rsUserResults_cmd.Parameters.Append rsUserResults_cmd.CreateParameter("param1", 200, 1, 50, rsUserResults__MMColParam) ' adVarChar
    Set rsUserResults = rsUserResults_cmd.Execute
    rsUserResults_numRows = 0
    %>
    <%
    Dim Repeat1__numRows
    Dim Repeat1__index
    Repeat1__numRows = 10
    Repeat1__index = 0
    rsUserResults_numRows = rsUserResults_numRows + Repeat1__numRows
    %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <table border="1">
      <tr>
        <td>logonDate</td>
        <td>loginTime</td>
        <td>computerName</td>
        <td>userName</td>
      </tr>
      <% While ((Repeat1__numRows <> 0) AND (NOT rsUserResults.EOF)) %>
        <tr>
          <td><%=(rsUserResults.Fields.Item("logonDate").Value)%></td>
          <td><%=(rsUserResults.Fields.Item("loginTime").Value)%></td>
          <td><%=(rsUserResults.Fields.Item("computerName").Value)%></td>
          <td><%=(rsUserResults.Fields.Item("userName").Value)%></td>
        </tr>
        <%
      Repeat1__index=Repeat1__index+1
      Repeat1__numRows=Repeat1__numRows-1
      rsUserResults.MoveNext()
    Wend
    %>
    </table>
    </body>
    </html>
    <%
    rsUserResults.Close()
    Set rsUserResults = Nothing
    %>
    Search page:
    <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <form id="frmUserSearch" name="frmUserSearch" method="get" action="userResults.asp">
      <p>Enter User Name
        <input type="text" name="userName" id="userName" tabindex="1" />
      </p>
      <p>
        <input type="submit" name="userNameSubmit" id="userNameSubmit" value="Submit" />
      </p>
    </form>
    </body>
    </html>

  • Spry Dataset (dynamic table) not displaying images

    Hi - new to Spry but loving it! I just did the tutorial for
    creating
    dynamic
    tables and had no problems outside of trying to get images to
    display in one tableset. in the XML I have
    <thumb><image href="imx/china.jpg"
    /></thumb>
    with thumb being the node name (naturally). the table cell
    displays nothing but all others have text displayed properly. is
    there no way of calling in images?
    Thanks for the help and advice!

    If you really want to embed HTML in XML, then read this
    sample:
    http://labs.adobe.com/technologies/spry/samples/data_region/HTMLFragsInXMLSample.html
    You can also just embed the path in the XML like this:
    <thumb>img/china.jpg</thumb>
    and then reference it in your region markup like this:
    <div spry:region="ds1">
    <img src="{thumb}" alt="{thumb}" />
    </div>

  • Menubar from dynamic xml not displaying

    I can't get a Menubar to display the submenu items. The list
    displays properly without any reference to the "menubar" class so I
    think I must have something off in the area. I have searched the
    examples, api, and forum but I haven't been able to find anything
    to help me fix it. I have worked on this for a couple of hours so I
    am turning to everyone for help. Here is my code.
    <div spry:region="dsSubCat dsRefine dsRefineValue"
    class="SpryHiddenRegion">
    <ul id="MenuBar1" class="MenuBarHorizontal">
    <li><a href="#" class="MenuBarItemSubmenu">Sub
    Category</a>
    <ul>
    <li spry:repeat="dsSubCat"><a href="#"
    onclick="loadSubCatData('{dsSubCat::Value}');">{dsSubCat::Title}</a> ({dsSubCat::NumberOf Products})</li>
    </ul>
    </li>
    <li spry:repeat="dsRefine"><a href="#"
    class="MenuBarItemSubmenu">{dsRefine::@name}</a>
    <ul>
    <li spry:repeat="dsRefineValue"><a href="#"
    onclick="loadRefineData('{dsRefineValue::Value}');">{dsRefineValue::Title}</a> ({dsRefine Value::NumberOfProducts})</li>
    </ul>
    </li>
    </ul>
    </div>
    <script type="text/javascript"><var MenuBar1 = new
    Spry.Widget.MenuBar("MenuBar1",
    {imgDown:"../../images/SpryMenuBarDownHover.gif"})</script>

    Hey N,
    When dynamically creating widgets with Spry data, the
    constructor script tag needs to be within the spry:region.
    This allows it to fire off after the markup has been
    generated.
    Let us know if this solves it.
    Don

  • Newly added column not displayed in Interactive report

    Hello,
    I have a tableA with 3 columns.In the application i am displaying as Form with Report region as Interactive report(Oracle 10g Application Express 3.2).
    I added one column to tableA.Now when i am refreshing the report by adding that column in the select query,the new added column is not displayed in the application.
    How can i do this so that the added column can be displayed.I dont want to delete the whole thing and redo it again.
    Thanks
    Siya

    Hi Siya,
    The Interactive Report will not show you the newly added columns by default. You have to select those columns from the actions menu and when all the required fields are displayed then save it as the default report.
    Then you will be able to see all the columns.
    Hope this solves your problem.
    Thanks,
    Satish.

  • CL20N can not display added fields in the search result ?

    Hi,
    In needs of displaying storage location for each material in the transaction CL30N , we use the user exit CLCLRS01 and CLCLRS02 to add new field. But after that the added field is not displayed
    Have you ever tried this ?
    thanks

    Hi,
    Please find below the code for adding the fields. This code is present in the FM 'EXIT_SAPLCLRS_001'.
    If the field added is from database, then the field needs to be added in table 'LT_ONLY_THIS_FIELDS'(see below FM). Else, the fields needs to be added in the table 'ET_FIELDS' as shown below.
          CALL FUNCTION 'CLRS_GET_FIELDS_OF_STRUCTURE'
               EXPORTING
                    I_STRUCTURE         = 'MARC'
                    I_LANGUAGE          = I_LANGUAGE
               TABLES
                    IT_ONLY_THIS_FIELDS = LT_ONLY_THIS_FIELDS
            IT_EXCLUDE_FIELDS   =
                    ET_FIELDS           = ET_FIELDS
                    ET_FIELDS_TEXT      = ET_FIELDS_TEXT.
          CALL FUNCTION 'CLRS_GET_FIELDS_OF_STRUCTURE'
               EXPORTING
                    I_STRUCTURE         = 'DRAW'
                    I_LANGUAGE          = I_LANGUAGE
                    I_FIRST_CALL        = 'X'
               TABLES
                    IT_ONLY_THIS_FIELDS = LT_ONLY_THIS_FIELDS
            IT_EXCLUDE_FIELDS   =
                    ET_FIELDS           = ET_FIELDS
                    ET_FIELDS_TEXT      = ET_FIELDS_TEXT.
      ENDCASE.
    Here a field which are not from a database table is added
      ET_FIELDS-FIELDNAME = 'JUST_TEST'.
      ET_FIELDS-GROUPKEY  = 'C'.
      ET_FIELDS-DATATYPE  = 'NUM'.
      ET_FIELDS-LENGTH    = 2.
      ET_FIELDS-DECIMALS  = 0.
      APPEND ET_FIELDS.
    Regards,
    Rajesh

  • Ical 5. Events not displaying

    Morning.
    So, Lion is in.
    Was adding events to Ical5 the other day, and all was going well. These are all normal full day events, that are non re-occuring, and all on my mobileme calendar. (I do have a valid mobile me account and such as well)
    Made it to late august, and then in 'month' view, any added events are not displayed. In daily view, they display. In week view they display. On my ipad, all views display correctly. But in ical, month view, after August 22, all events are 'blank' and non existing. Again, all other views, daily, week, year, show that there are events, and if i get into the particular day, all events display correctly.
    Any way to reset the views in ical 5 so i can see what i am working on? I only use month view in reality, as i dont use ical for distinct appointments and such.
    Thanks!!

    Electric Road Guy,
    Try refreshing the iCal plist file. You will find the com.apple.iCal.plist file in your Macintosh HD/Users/yourusername/Library/Preferences Folder. To get to the Library folder use Finder>Go>Depress the "Option" Key and select LIbrary. Quit iCal, drag the .plist file to your Desktop.
    Then go to System Preferences>Language & Text>Formats>Region: and set re-set the appropriate "Region."
    Also go the the Macintosh HD/Users/yourusername/Library/Calendars Folder and delete any/all files containing the word "Cache."
    Log out/in or restart.

  • Workbook with changed query does not display the changes...

    Hi,
    I have a problem with a workbook with one query in - the query has been changed, but the new added keyfigures are not displayed in the existing WB.
    I know from Bex 3.5 there is the option on WB settings "return to global definitions" - I miss this functionality in BI 7.0.
    My installed sap gui is version 710
    Please let me know where I can switch on this feature...
    regards
    chris

    If you use "Return to Global Definition on refresh" option, all the users would have to have it turned on in their workbooks. In that case won't they lose any settings/navigation the user did, specific to their need. All the workbooks end up being the same in that case.
    We are still running on 30B and starting the upgrade to BI70. We just went through training on the new BEx analyzer, and I have to agree with you that some of the useful features of BEx 3X will be missed. Specially in the area of Workbook support, things like Copy query, insert query etc are missing as well.
    Thanks
    Vineet

  • Canvas not displaying controls added with addChild

    I have a custom class holding some information, a property in
    the class is an XML string and another method parses the XML add
    creates controls (labels and buttons) based on the xml. I also have
    a variable named renderer which is a mx.containers.Canvas. After
    the XML is loaded and the controls are added using
    Canvas.addChild() I add the Canvas to my stage. The problem I'm
    running into is that even though the Canvas is added to the stage,
    I cannot see any of the controls inside of the canvas. Doing a
    trace(Canvas.numChildren()); I can see that I have added 101
    children to my canvas container (which is what my xml file shows)
    however they will not display. I know the canvas has been added to
    the stage because I can see the scroll bars when i set the policies
    to "on" and it even sets the scroll bars correctly if the
    components are too big for the canvas and would have to be scrolled
    down to see them all, it just doesn't show any of the components.
    Anyone run into a similar issue?

    Did you set an explicit width and height (or percentWidth and
    percentHeight, or styles top, left, top, bottom) on the controls
    you create? By default controls have 0x0 size. Creating controls in
    MXML causes additional code to be generated which gives the
    controls default sizes, but it won't happen in your own
    ActionScript code.

Maybe you are looking for