[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: Text Widget Question - setting programmatically a multi line text box
|
Richard Moore wrote:
> Hi All,
>
> I would like to set the contents of a Multi Text box programmatically, it
> is an address field and the database has the address line 1 to line 8. I
> would like to add each line into the multi line text box line by line. Any
> ideas ? and so maintaining the nice format.
>
> I have tried using the Text.append method and then at the end
> Text.append(getLineDelimtter() also Text method) but it doesn't work
> correctly, it displays control characters and all 8 lines are on one line.
>
> Thanks in Advance
> R Moore
Create your Text with the SWT.WRAP style. Worked for me.
--
Stelian Iancu
Linux registered user 287835
Be different. Think.