You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Greg Brown <gk...@mac.com> on 2010/06/17 00:59:12 UTC

Re: Is there a textarea feature that adds line numbers to the text area?

> Is there a text component that shows line numbers?

No.

> Do I need to run a sync’d column and add numbers to it?

Yes. You'll need to write this component yourself - it doesn't currently exist. However, if you can code it in a general way, it would make a good addition to the platform.




RE: Is there a textarea feature that adds line numbers to the text area?

Posted by aappddeevv <aa...@verizon.net>.
That's a good idea. Let me play with it. You can have the entire pivotpad
app if you want.  I was going crazy with my boxpane and scrollpane layout
problems. Its essentially a poorly written xamlpad.

 

From: Greg Brown [mailto:gkbrown@mac.com] 
Sent: Wednesday, June 16, 2010 7:02 PM
To: user@pivot.apache.org
Subject: Re: Is there a textarea feature that adds line numbers to the text
area?

 

FYI, you may be able to use the Ruler class used in the ScrollPane tutorial
as an example:

 

http://svn.apache.org/repos/asf/pivot/trunk/tutorials/src/org/apache/pivot/t
utorials/navigation/

 

On Jun 16, 2010, at 6:59 PM, Greg Brown wrote:





Is there a text component that shows line numbers? 

 

No.





Do I need to run a sync'd column and add numbers to it?

 

Yes. You'll need to write this component yourself - it doesn't currently
exist. However, if you can code it in a general way, it would make a good
addition to the platform.

 

 

 

 


Re: Is there a textarea feature that adds line numbers to the text area?

Posted by Greg Brown <gk...@mac.com>.
FYI, you may be able to use the Ruler class used in the ScrollPane tutorial as an example:

http://svn.apache.org/repos/asf/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/navigation/

On Jun 16, 2010, at 6:59 PM, Greg Brown wrote:

>> Is there a text component that shows line numbers?
> 
> No.
> 
>> Do I need to run a sync’d column and add numbers to it?
> 
> Yes. You'll need to write this component yourself - it doesn't currently exist. However, if you can code it in a general way, it would make a good addition to the platform.
> 
> 
>