I must be missing something.

That adds a bunch of data to the clip-board. How do I represent to the user visually what has been selected?

I've tried 2 approaches.

1. Put everything in a TextArea/TextField and try to play around with the formatting until it looks like a table.

2. Create a table using a TextField for each cell.

Using the first method, if there are multiple rows of data in a single cell, the selection of text is wrong. It selects by row, so if you have 3 columns, you can have the first line of text in each cell selected where it should select the entire contents of a single cell before selecting anything in another one.

Using the second method, the setSelection() method doesn't cause the text in other cells to be selected, only the text in the cell where the mouse-down was captured.

In the first case I wrote a component to calculate the exact rectangle each cell of text should take up, and split up the text so it rendered that way. That was a lot of fun I can tell you.

In the second I create a rectangle that covers the point from where the mouse-down event occurred to the current mouse position. Any cells that intersect with this rectangle are selected.

Spike

On 10/27/05, JesterXL <[EMAIL PROTECTED]> wrote:
System.setClipboard(topLeft_ti.text + middle_ti.text + right_ti.text);
 
----- Original Message -----
From: Spike
Sent: Thursday, October 27, 2005 2:02 PM
Subject: Re: [flexcoders] HTML Text in TextArea

You can do that, but I still haven't found any way to do drag-select of text across multiple table cells.

Any ideas?

Spike

On 10/27/05, JesterXL <[EMAIL PROTECTED]> wrote:
Use MXML instead.
 
You can use Grid, VBox, HBox, etc. to do what a table tag does, and more.
 
----- Original Message -----
Sent: Thursday, October 27, 2005 1:43 PM
Subject: RE: [flexcoders] HTML Text in TextArea

Wow, that sucks. I can use any other control that will help do that sort of thing. If Flash player can not render <table><tr><td> what tags can I use to give the html a grid look? Actually, the html is a result of CHTTP call to a remote server and I parse the whole document to extract the piece I want. I can replace all my TABLE related tags with anything that will help.

 

Thanks

Agha Mehdi
IDT - eBusiness Program Manager


From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Spike
Sent: Thursday, October 27, 2005 1:33 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] HTML Text in TextArea

 

Yeah,

The TextArea doesn't render table tags. I don't think the flash player HTML capabilities support table tags, but I really could use this sort of functionality.

Has anyone got an example of rendering a table in Flash?

I've seen a few examples, but one of the requirements for me is to be able to drag select inside the cells and across multiple cells. FlashPaper allows you to do this, so I know it's technically possible, but I haven't seen anything else that does it.

Spike

On 10/27/05, Matt Chotin < [EMAIL PROTECTED]> wrote:

I don't think the TextArea is capable of rendering <table> tags.

 

Matt

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mehdi, Agha
Sent: Wednesday, October 26, 2005 3:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HTML Text in TextArea

 

Hi All,

How can I show HTML in TextArea so that instead of spitting out html tags, it actually renders html? I am replacing "<" and ">" with "&lt;" and "&gt;" respectively before I send it to Flash Client. If I don't replace that it does render HTML but doesn't show data in html table format and I have table in my html.

Thanks

Agha Mehdi

IDT - eBusiness Program Manager

Work: 408.284.8239

Cell  : 209.275.0482

Fax  :  408.284.2766




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



YAHOO! GROUPS LINKS

 

 





--
--------------------------------------------
Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS






--
--------------------------------------------
Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS






--
--------------------------------------------
Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to