Hi

Background: I have created a control which displays a DataGrid with a
header and footer show simple information such as a title and a time
stamp. It is possible to scroll the grid and print each row of data
held in the grid. (Resizing of the grid is not possible as it messes
up the printing).

I am now trying to create the same control at runtime, this control is
NOT a "visible" UI component that can be view in the application, its
purpose it to be a print format control. This print control is a VBox
containing a HBox, DataGrid and an other HBox, inturn each HBox
contains 2 lables (making a total of four labels). To build this
control at design time is very straight-forwards, however, I am trying
to accomplish this, in memory, at runtime essentially a non-visual
control, and then send it to print. 

Is this at all possible in flex?


--- In [email protected], Manish Jethani
<[EMAIL PROTECTED]> wrote:
> AC wrote:
> 
> > I have three Objects; 2 HBoxes which are populated with children
at
> > runtime, and a DataGrid. At runtime, I am trying to create a
parent
> > control (VBox) which contains all three of these controls.
> 
> Create the three as children of the VBox.
> 
> hbox1 = vbox.createChild(HBox, "");
> hbox2 = vbox.createChild(HBox, "");
> datagrid1 = vbox.createChild(DataGrid, "");
> 
> If you have already created the three controls, I don't think you
can 
> change their parents (so you can't add them to the VBox, AFAIK).
> 
> Manish





Reply via email to