[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
|
re Hi
i've forgot to say that you've to set the
SWT.MULTI flag on your Text control
to make it multiline.
for example :
myText=new Text(myComposite, SWT.MULTI | SWT.V_SCROLL | etc...);
"Richard Moore" <rmoore@xxxxxxxxxxxx> a écrit dans le message de news:
beulld$91t$1@xxxxxxxxxxxxxx
> 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
>
>