Other projects
#7 Multiline text in TextArea |
2008-10-13 10:49 | | | Major |
| Submit by Bo | |||
| State: | Opened |
|---|---|
| Priority: | Major |
| Type: | Feature request |
| Milestone: | 1.2.0 |
| Release: | Kuix 1.0.1 |
| Body: | |
Implements a new way to split text in TextArea. At present text is split only on words delimited by a space separator. |
|
Comments
| Bo 2008-10-13 10:49 | This feature request has been moved to the 1.0.3 milestone. |
|---|
| Bo 2008-10-13 10:49 | Yes Ayman, this is I think the best way for reimplement textArea, but for the moment the TextArea word arrange is made by the default flowLayout. The realy best solution would be to not a two part of quite similar code in FlowLayout and TextArea ... |
|---|
| jbspxz 2008-10-13 10:49 | what i do? |
|---|
| memphis 2008-10-13 10:49 | private void splitWords(String fullText, int style) |
|---|


Hello Bo,
I hope you consider the ticket (ID#14) while writing the new implementation of the textarea. I was thinking of some logic that would work for both ltr and rtl languages and here what i found:
Keep the same logic of tokenizing, but instead of adding each word a Text element add 1 text element and keep on filling it until it consumes all the allowed width. Then, add a new Text element after it and repeat. This logic will display the rtl correct also.
Please let me know what you think about this.
Ayman