Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Multiline text in Table
Multiline text in Table [message #461438] Thu, 22 September 2005 20:08 Go to next message
Fabian Wolf is currently offline Fabian WolfFriend
Messages: 96
Registered: July 2009
Member
Hey all,

is there a way to make a Table show multiline text on windows - not just one
messed up line?
On Linux everything works fine so far, but on Windows "\n" (actually all
escapes) are not working - instead boxes are shown.

Any hints?

Thanks a lot,
Fabian
Re: Multiline text in Table [message #461455 is a reply to message #461438] Fri, 23 September 2005 12:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: friederich.kupzog.de

Hi Fabian,

if you do not find a way doing this with swt table, you might want to
have a look on KTable. It offers the feature you need (and many more).

http://sourceforge.net/projects/ktable

Kind Regards,
Friederich

Fabian Wolf wrote:
> Hey all,
>
> is there a way to make a Table show multiline text on windows - not just one
> messed up line?
> On Linux everything works fine so far, but on Windows "\n" (actually all
> escapes) are not working - instead boxes are shown.
>
> Any hints?
>
> Thanks a lot,
> Fabian


--
Friederich Kupzog
Elektronik & Software
Neusser Str. 5-7
50670 Köln
Tel 0241 160696-1
Fax 0221 726670
www.kupzog.de/fkmk
Re: Multiline text in Table [message #461459 is a reply to message #461455] Fri, 23 September 2005 16:53 Go to previous messageGo to next message
Fabian Wolf is currently offline Fabian WolfFriend
Messages: 96
Registered: July 2009
Member
That looks pretty nice - guess I got to give it a try ;)

Thanks a lot!

Friederich Kupzog wrote:
> Hi Fabian,
>
> if you do not find a way doing this with swt table, you might want to
> have a look on KTable. It offers the feature you need (and many more).
>
> http://sourceforge.net/projects/ktable
>
> Kind Regards,
> Friederich
>
> Fabian Wolf wrote:
>> Hey all,
>>
>> is there a way to make a Table show multiline text on windows - not just
>> one messed up line?
>> On Linux everything works fine so far, but on Windows "\n" (actually all
>> escapes) are not working - instead boxes are shown.
Re: Multiline text in Table [message #461461 is a reply to message #461438] Fri, 23 September 2005 18:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cix.ptoye.com

In article <dgv2va$4j3$1@news.eclipse.org>, Fabian.Wolf@informatik.uni-
ulm.de (Fabian Wolf) wrote:

> *From:* Fabian Wolf <Fabian.Wolf@informatik.uni-ulm.de>
> *Date:* Thu, 22 Sep 2005 22:08:06 +0200
>
> Hey all,
>
> is there a way to make a Table show multiline text on windows - not
> just one
> messed up line?
> On Linux everything works fine so far, but on Windows "\n" (actually all
> escapes) are not working - instead boxes are shown.
>
> Any hints?
>
> Thanks a lot,
> Fabian
>
Fabian,

I'm only new here, but I've been using code like

textbox.append("string\n")

and it writes another line. Have you remembered to set the style to MULTI?

Peter
Re: Multiline text in Table [message #461462 is a reply to message #461461] Fri, 23 September 2005 18:29 Go to previous message
Eclipse UserFriend
Originally posted by: cix.ptoye.com

In article <memo.20050923192803.4024B@ptoye-ptoye.cix.co.uk>,
cix@ptoye.com (Peter Toye) wrote:

> *From:* cix@ptoye.com (Peter Toye)
> *Date:* Fri, 23 Sep 2005 19:28 +0100 (BST)
>
OOPS - misread the original message. It's a Table not a Text - ignore my
ramblings.

Peter
Previous Topic:How to control shell size?
Next Topic:dynamic shell style ?
Goto Forum:
  


Current Time: Fri Oct 20 07:20:19 GMT 2017

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

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