Text widget on Win98 [message #461690] |
Tue, 27 September 2005 10:00 |
Eclipse User |
|
|
|
Originally posted by: mrkissinger.cmail.cn
Hi,
I am testing a SWT program on Win98.
There is a Text widget which I want to display a big text block (5500 lines, less than 200K).
On Windows 2000, It works well. But on Windows 98, it can only display less than 4000 lines (less than 50 characters per line).
When I put all text into a String object, then call setText() once. In this way, if the text block is larger than a limitation(I have no idea where the limitation comes from), it just displays nothing.
When I call append() method of Text widget directly, it can display more than 600 lines when I appended 5500 lines.
I tried to use setTextLimit(), but nothing changed.
I am not sure it is a bug of SWT or Win98.
I wonder the solution on Win98 because the program has to run on this ancient platform.
Any suggestion?
Thanks.
Hyacinth
|
|
|
Re: Text widget on Win98 [message #461691 is a reply to message #461690] |
Tue, 27 September 2005 10:09 |
Eclipse User |
|
|
|
Originally posted by: mrkissinger.cmail.cn
Plus,
I used "try..catch" block, but SWT does not throw any exceptions.
于 Tue, 27 Sep 2005 18:00:25 +0800,Mr.Kissinger写到:
> Hi,
> I am testing a SWT program on Win98.
>
> There is a Text widget which I want to display a big text block (5500 lines, less than 200K).
> On Windows 2000, It works well. But on Windows 98, it can only display less than 4000 lines (less than 50 characters per line).
> When I put all text into a String object, then call setText() once. In this way, if the text block is larger than a limitation(I have no idea where the limitation comes from), it just displays nothing.
> When I call append() method of Text widget directly, it can display more than 600 lines when I appended 5500 lines.
> I tried to use setTextLimit(), but nothing changed.
>
> I am not sure it is a bug of SWT or Win98.
> I wonder the solution on Win98 because the program has to run on this ancient platform.
> Any suggestion?
>
> Thanks.
>
>
> Hyacinth
|
|
|
Re: Text widget on Win98 [message #462012 is a reply to message #461690] |
Wed, 05 October 2005 01:37 |
Steve Northover Messages: 1636 Registered: July 2009 |
Senior Member |
|
|
There is a limit to the amount of text a text widget can edit on 98. See
Text.LIMIT. If you need to display more text, use a StyledText.
"Mr.Kissinger" <mrkissinger@cmail.cn> wrote in message
news:pan.2005.09.27.10.00.02.240833@cmail.cn...
> Hi,
> I am testing a SWT program on Win98.
>
> There is a Text widget which I want to display a big text block (5500
lines, less than 200K).
> On Windows 2000, It works well. But on Windows 98, it can only display
less than 4000 lines (less than 50 characters per line).
> When I put all text into a String object, then call setText() once. In
this way, if the text block is larger than a limitation(I have no idea where
the limitation comes from), it just displays nothing.
> When I call append() method of Text widget directly, it can display more
than 600 lines when I appended 5500 lines.
> I tried to use setTextLimit(), but nothing changed.
>
> I am not sure it is a bug of SWT or Win98.
> I wonder the solution on Win98 because the program has to run on this
ancient platform.
> Any suggestion?
>
> Thanks.
>
>
> Hyacinth
>
|
|
|
Powered by
FUDForum. Page generated in 0.03472 seconds