Please file bugs or enhancement requests at http://bugs.adobe.com/flex
for the problems you've encountered.

 

Gordon Smith

Adobe Flex SDK Team

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of whatabrain
Sent: Wednesday, August 13, 2008 3:14 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: My itemRenderer is cancelling wordWrap...
(derailed discussion)

 

Ideally, Flex would detect the OS and behave accordingly, but at the 
very least, it should incorporate accepted UI standards that are 
common to all major platforms. For example, it's very rare to see a 
tooltip appear anywhere but at the corner of the mouse cursor. And 
right-clicking on a grid item usually selects it.

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Which os? Flex is multi-platform.
> 
> 
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>

[mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of whatabrain
> Sent: Wednesday, August 13, 2008 8:27 AM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Re: My itemRenderer is cancelling wordWrap 
setting
> on AdvancedDataGridColumn
> 
> 
> 
> Just changing Label to Text worked. I didn't have to write a 
measure 
> method.
> 
> I really wish the Flex controls had been written in a way that 
> matches the OS's behavior better. I've had to write a lot of code 
> (for example, this tooltip fix), just to make standard controls.
> 
> Ah well. Better the way it is, than not existing at all.
> 
> --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>  <mailto:flexcoders%
40yahoogroups.com>
> , "Alex Harui" <aharui@> wrote:
> >
> > Wordwrapping is the responsibility of the renderer. Label is a
> > single-line control so it won't word wrap. Using Text is possible 
> but
> > you have to wire up the measure method correctly. See past 
threads 
> for
> > how to do that. Also, that makes a heavy weight renderer.
> > 
> > 
> > 
> > My recommendation is to copy DataGridItemRenderer and remove the 
> datatip
> > code.
> > 
> > 
> > 
> > ________________________________
> > 
> > From: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>  <mailto:flexcoders%
40yahoogroups.com>
> 
> [mailto:flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>  <mailto:flexcoders%
40yahoogroups.com>
> ] On
> > Behalf Of whatabrain
> > Sent: Tuesday, August 12, 2008 3:55 PM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
<mailto:flexcoders%
40yahoogroups.com> 
> > Subject: [flexcoders] My itemRenderer is cancelling wordWrap 
> setting on
> > AdvancedDataGridColumn
> > 
> > 
> > 
> > I want an AdvancedDataGridColumn to have word wrap, soI set the 
> > wordWrap attribute to true. The column contains an itemRenderer, 
> which 
> > renders an mx:Label, which contains the actual text. But that 
text 
> > doesn't wrap.
> > 
> > <mx:AdvancedDataGridColumn wordWrap="true">
> > <mx:itemRenderer>
> > <mx:Component>
> > <mx:Label text="I am an unhappy table cell"/>
> > </mx:Component>
> > </mx:itemRenderer>
> > </mx:AdvancedDataGridColumn>
> > 
> > The reason I'm using an itemRenderer is because otherwise, 
tooltips 
> > don't work properly. They are always drawn within the cell, 
instead 
> of 
> > appearing at the corner of the mouse cursor like they should. 
> Putting 
> > the tooltip on the Label fixes the problem.
> >
>

 

Reply via email to