Community
Participate
Working Groups
Build Identifier: I tried to make a graphical light List. The component behaves like a List but is in fact a multiline Text (see attachement). If the user click inside a line then the entire line will be selected. In some case (probabily because of the german special characters) the selection doesn't works correctly : the line is not entirely selected or another line is selected. See the following example : CONTENT = aaaa bbbb cccc ddd dd [ERF] eeee ff ff äöpödso2sdsdsd sdsdsdsdsdsdsd äöppsdsödkmsopierjkw pewü abgv behaviour : If I click on the first to the 7. line the entiry line is selected (see Remark 2). If I click on the 8. or the 9. line only "äöppsdsödkmsopierjkw pew" is selected. Remark: 1. under Firefox it works fine. 2. under IE I have to consider that "\n" takes 2 places ! Reproducible: Always
Created attachment 200187 [details] example class
Serge, without looking in deep in your code, I want to let you know that widget subclassing is illegal in SWT (will be illegal in RAP too - see bug 333272 ). The Text widget JavaDoc states that: "IMPORTANT: This class is *not* intended to be subclassed."
I k(In reply to comment #2) > Serge, without looking in deep in your code, I want to let you know that widget > subclassing is illegal in SWT (will be illegal in RAP too - see bug 333272 ). > The Text widget JavaDoc states that: "IMPORTANT: This class is *not* intended > to be subclassed." I know but it is only a quick&dirty test class and since I'm not overriding any method I guess it doesn't matter. It is not the cause of the problem.
I can reproduce it with your snippet, but currently I have no idea what is the reason for this weird behavior.
(In reply to comment #4) > I can reproduce it with your snippet, but currently I have no idea what is the > reason for this weird behavior. I guess the first cause is that this special characters are coded on 2 bytes instead of 1 byte.
This is not an issue in IE9 (standard rendering), but I still can reproduce the problem with IE8 (1.5M6).
Created attachment 232639 [details] Patch to reproduce in controls demo I've added a patch to reproduce the problem in the controls demo (text tab). The error occurs when you enter multi-line text with style MULTI enabled. If you select something in the first line e.g. from 1 to 2, the text widget selects from 0 to 1. If you do the same using the mouse and then leave the textfield by pressing TAB and then reenter the textfield by pressing SHIFT-TAB the selection shifts one character to the left This is reproducible on version 2.0 and 2.1 with IE8 but not IE9.
The IE7/8 support is discontinued in RAP 3.0. Close as WONTFIX.