Gustavo funcionou fica como conhecimento, eliminei alguns campos acho
que estava se perdendo nos alinhamentos, assim funcionou:

        <mx:DataGridColumn  headerText="Baixar" width="30" editable="false">
                        <mx:itemRenderer>
                                <mx:Component>
                                        <mx:VBox horizontalAlign="center">
                                          <mx:Image  
source="@Embed(source='../assets/
Download.png')" toolTip="Clique para baixar o arquivo!" width="16"
height="16"  buttonMode="true" click="parentDocument.acessaNfe(data)"/
>
                                        </mx:VBox>
                                </mx:Component>
                        </mx:itemRenderer>
                </mx:DataGridColumn>

On Dec 10, 1:45 pm, Gustavo Martinez <g...@ufrj.br> wrote:
> Coloca o width do hbox (o itemrenderer) para 100% para ver se dá certo.
> abrs
> --
> Gustavo Martinez
>
> 2010/12/10 Lorenzi <mlorenz...@gmail.com>
>
>
>
>
>
>
>
> > Entao mexi nisso mas nao deu, coloquei para 30 meu datagridcolumn mas
> > sempre fica alinhado na esquerda.
>
> > On Dec 10, 11:25 am, Ednei <ednei.tana...@gmail.com> wrote:
> > > Ah, sim. É q eu confundi a tag DataGridColumn com DataGrid. Então
> > > talvez o problema seja porque o width do datagridcolumn é menor do que
> > > o width da imagem.
>
> > > <mx:DataGridColumn textAlign="center" headerText="Baixar" width="15"
>
> > > <mx:Image
> > > source="@Embed(source='../assets/
> > > Download.png')" width="16"
>
> > > On 10 dez, 11:09, Lorenzi <mlorenz...@gmail.com> wrote:
>
> > > > Sim mas é isto que estou fazendo:
>
> > > > <mx:DataGridColumn textAlign="center" headerText="Baixar" width="15"
> > > > editable="false">
> > > >                         <mx:itemRenderer>
> > > >                                 <mx:Component>
> > > >                                         <mx:HBox
> > > > verticalAlign="middle"
> > > > horizontalAlign="center">
> > > >                                                 <mx:Image
> > > > source="@Embed(source='../assets/
> > > > Download.png')" width="16" height="16"  buttonMode="true"
> > > > click="parentDocument.acessaNfe(data)"/>
> > > >                                         </mx:HBox>
> > > >                                 </mx:Component>
> > > >                         </mx:itemRenderer>
> > > >                 </mx:DataGridColumn>
>
> > > > On Dec 10, 11:04 am, Ednei <ednei.tana...@gmail.com> wrote:
>
> > > > > Tente colocar o <mx:itemRenderer> dentro de uma <mx:datagridColumn> e
> > > > > entao dentro do datagridcolumn vc coloca o textAling="center".
>
> > > > > On 10 dez, 09:13, Lorenzi <mlorenz...@gmail.com> wrote:
>
> > > > > > Pessoal tenho um dataGrid e dentro dele uma imagem so que nao
> > consigo
> > > > > > centralizar ele na coluna:
>
> > > > > > <mx:DataGridColumn textAlign="center" headerText="Baixar"
> > width="15"
> > > > > > editable="false">
> > > > > >                         <mx:itemRenderer>
> > > > > >                                 <mx:Component>
> > > > > >                                         <mx:HBox
> > verticalAlign="middle"
> > > > > > horizontalAlign="center">
> > > > > >                                                 <mx:Image
> > source="@Embed(source='../assets/
> > > > > > Download.png')" width="16" height="16"  buttonMode="true"
> > > > > > click="parentDocument.acessaNfe(data)"/>
> > > > > >                                         </mx:HBox>
> > > > > >                                 </mx:Component>
> > > > > >                         </mx:itemRenderer>
> > > > > >                 </mx:DataGridColumn>
>
> > > > > > Deste tipo so que nao centraliza na coluna.
>
> > > > > > Grato.
>
> > --
> > Você recebeu esta mensagem porque está inscrito na lista "flexdev"
> > Para enviar uma mensagem, envie um e-mail para flexdev@googlegroups.com
> > Para sair da lista, envie um email em branco para
> > flexdev-unsubscr...@googlegroups.com
> > Mais opções estão disponíveis emhttp://groups.google.com/group/flexdev

-- 
Você recebeu esta mensagem porque está inscrito na lista "flexdev"
Para enviar uma mensagem, envie um e-mail para flexdev@googlegroups.com
Para sair da lista, envie um email em branco para 
flexdev-unsubscr...@googlegroups.com
Mais opções estão disponíveis em http://groups.google.com/group/flexdev

Responder a