Character length limit in fields - Part Duex!

2006-08-11 Thread Garrett Hylltun

Rev 2.6.1 / Mac OS X

Greetings,

Recently I asked about the text width limit in characters of a  
field.  It seems that 65,536 characters is the limit, but there are  
definitely some issues with stuffing that much on one line of a field.


I am using Lucida Grande Typewriter as the font at size 12

* Field set to no wrap, disabled and focusing not allowed;  the  
characters do not show up if you toss in over 32,000 characters.  If  
I keep at 32,000 characters, they are visible in the field.


* Field set to no wrap and has scroll bars;  Single line has only  
28,750 characters, characters are showing, but scrolling stops at  
about 665 characters.  But if break the line at 665, then the  
scrolling is allowed to go to about 995, break that second line down  
with a return and the scrolling is allowed to go even further.


I'm trying to make a simple text editor that uses monospaced only  
fonts, with a character grid/guide so I know at what character  
position I am at when typing text.


Screenshot of the scroll and length issue here:
http://www.paraboliclogic.com/fieldproblem.jpg

Does anyone have any insight into this issue?


Thanks,
-Garrett
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Character length limit in fields - Part Duex!

2006-08-11 Thread Dar Scott


On Aug 11, 2006, at 5:54 PM, Garrett Hylltun wrote:


I am using Lucida Grande Typewriter as the font at size 12


I'm trying to make a simple text editor that uses monospaced only  
fonts, with a character grid/guide so I know at what character  
position I am at when typing text.


I suspect that the pixel width limit is much less than it was or I  
misunderstood what the pixel limit was.  And/or there may be a  
separate limit on the scroll.  I suspect there are arithmetic errors  
from overflows.


I tried 12 point courier.  That is 7 points wide so I thought I  
should be able to put 4570 characters on the line (assuming 32000  
pixel limit).  Boy did that go goofy.  The line was cut off and the  
scroll went way beyond the end of the line.


I was only able to put in about 3700 characters in the first line and  
scroll right.


The formatted width was messed up, so you might want to go to much less.

Gotta go.

Dar Scott





















___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Character length limit in fields - Part Duex!

2006-08-11 Thread Garrett Hylltun


On Aug 11, 2006, at 6:11 PM, Dar Scott wrote:



On Aug 11, 2006, at 5:54 PM, Garrett Hylltun wrote:


I am using Lucida Grande Typewriter as the font at size 12


I'm trying to make a simple text editor that uses monospaced only  
fonts, with a character grid/guide so I know at what character  
position I am at when typing text.


I suspect that the pixel width limit is much less than it was or I  
misunderstood what the pixel limit was.  And/or there may be a  
separate limit on the scroll.  I suspect there are arithmetic  
errors from overflows.


I tried 12 point courier.  That is 7 points wide so I thought I  
should be able to put 4570 characters on the line (assuming 32000  
pixel limit).  Boy did that go goofy.  The line was cut off and the  
scroll went way beyond the end of the line.


I was only able to put in about 3700 characters in the first line  
and scroll right.


The formatted width was messed up, so you might want to go to much  
less.


Gotta go.

Dar Scott


LOL..  Yeah, plays a bit of a game on it doesn't it.

Thanks Dar for at least trying to figure that one out.  I have never  
had the need for a line of text that's 32,000 or 65,000 or whatever,  
so maybe setting up my own code to limit lines to say 1024 or 2048  
should be fine for me.


Thanks again,
-Garrett

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Character length limit in fields - Part Duex!

2006-08-11 Thread Dar Scott


On Aug 11, 2006, at 9:34 PM, Garrett Hylltun wrote:

Thanks Dar for at least trying to figure that one out.  I have  
never had the need for a line of text that's 32,000 or 65,000 or  
whatever, so maybe setting up my own code to limit lines to say  
1024 or 2048 should be fine for me.


I'm seeing something fishy with the hscroll so that it doesn't scroll  
enough to the right regardless of the line length.  It doesn't depend  
on the char size, so it is something other than the pixel limit.


Dar
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution