Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Text widget on Win98
Text widget on Win98 [message #461690] Tue, 27 September 2005 10:00 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
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
>
Previous Topic:Tree (with Column's) height
Next Topic:Can I use TabFolder widget on IBM J9 ?
Goto Forum:
  


Current Time: Tue Apr 23 06:20:16 GMT 2024

Powered by FUDForum. Page generated in 0.03472 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top