RE: [flexcoders] more richtext editor -- resize the toolbar...

2008-04-24 Thread Gordon Smith
The ToolBar class used by the RichTextEditor is undocumented but the
source code for it is available. In the SDK, it's at
frameworks/project/framework/src/mx/controls/richTextEditorControls/Tool
Bar.as. It implements its layout logic, as all UIComponents should, in
its updateDisplayList() method. I think it simply lays out children
left-to-right on row 1 until row 1 is full and then it starts laying out
left-to-right on row 2., etc

 

I would expect a Spacer to take up empty space if you specify a width
for it, but I don't think ToolBar has logic for children with
percentWidth, or for right-aligning children. But you can write your own
ToolBar that has such logic, using our code as a starting point.

 

Gordon Smith

Adobe Flex SDK Team

 

P.S. You're not a pest! You're our customer and we're glad you're using
Flex!

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of grimmwerks
Sent: Thursday, April 24, 2008 6:16 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] more richtext editor -- resize the toolbar...

 

Ok - I'm doing so -- I've a queston about the Toolbar class -- it's not
visual, correct? So there's no real way of laying out buttons? ie have
one button hard right when less buttons are there? 

 

I just can't find any info on the toolbar in terms of layout - I read
up on Container but there's no real layout of children as far as I can
see -- even adding a spacer doesn't seem to do anything.

 

Thanks for any info. Sorry if I'm a pest.

 

On Apr 24, 2008, at 6:29 PM, Alex Harui wrote:





The source is an MXML file.  For the third time, I will suggest you copy
and modify it.

 



From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com
<mailto:flexcoders@yahoogroups.com> ] On Behalf Of grimmwerks
Sent: Thursday, April 24, 2008 3:22 PM
To: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> 
Subject: [flexcoders] more richtext editor -- resize the toolbar...

 

So I'm removing buttons from the toolbar in the RTE - is there ways of 
r! esizing the container so that it's not a big gaping height?

 

 

 



Re: [flexcoders] more richtext editor -- resize the toolbar...

2008-04-24 Thread grimmwerks
Ok - I'm doing so -- I've a queston about the Toolbar class -- it's  
not visual, correct? So there's no real way of laying out buttons? ie  
have one button hard right when less buttons are there?


I just can't find any info on the toolbar in terms of layout - I read   
up on Container but there's no real layout of children as far as I can  
see -- even adding a spacer doesn't seem to do anything.


Thanks for any info. Sorry if I'm a pest.

On Apr 24, 2008, at 6:29 PM, Alex Harui wrote:

The source is an MXML file.  For the third time, I will suggest you  
copy and modify it.




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]  
On Behalf Of grimmwerks

Sent: Thursday, April 24, 2008 3:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] more richtext editor -- resize the toolbar...



So I'm removing buttons from the toolbar in the RTE - is there ways of
resizing the container so that it's not a big gaping height?







Re: [flexcoders] more richtext editor -- resize the toolbar...

2008-04-24 Thread grimmwerks

Yeesh -- sorry Alex :P


On Apr 24, 2008, at 6:29 PM, Alex Harui wrote:

The source is an MXML file.  For the third time, I will suggest you  
copy and modify it.


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]  
On Behalf Of grimmwerks

Sent: Thursday, April 24, 2008 3:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] more richtext editor -- resize the toolbar...

So I'm removing buttons from the toolbar in the RTE - is there ways of
resizing the container so that it's not a big gaping height?






RE: [flexcoders] more richtext editor -- resize the toolbar...

2008-04-24 Thread Alex Harui
The source is an MXML file.  For the third time, I will suggest you copy
and modify it.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of grimmwerks
Sent: Thursday, April 24, 2008 3:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] more richtext editor -- resize the toolbar...

 

So I'm removing buttons from the toolbar in the RTE - is there ways of 
resizing the container so that it's not a big gaping height? 

 



[flexcoders] more richtext editor -- resize the toolbar...

2008-04-24 Thread grimmwerks
So I'm removing buttons from the toolbar in the RTE - is there ways of  
resizing the container so that it's not a big gaping height?