Rectangle/column selection in StyledText or any other SWT compatible text field [message #458413] |
Wed, 13 July 2005 03:47  |
Eclipse User |
|
|
|
Originally posted by: cyberfloetz.web.de
Hi,
I'm searching for a solution to select columns inside a SWT text field. Does
anybody know how to do that?
You don't understand what I mean? --> Normally when you select some lines of
text the selection starts at the cursors X position left-top, selects the
rest of the line, the next lines and then ends at the cursor X position
right-bottom. But I'm searching for a rectangle selection/column selection.
Only the text between left-top position and the right-button selection shall
be selected and not the "rest/beginning" of the line. In M!cro$oft W0rd you
can do this by holding the "Alt" key when selecting the text.
Example: (text block letters: o; selected letters: 0)
Normal selection:
ooooooooooooooo
oooo00000000000
000000000000000
00000000ooooooo
ooooooooooooooo
What I search for:
ooooooooooooooo
oooo0000ooooooo
oooo0000ooooooo
oooo0000ooooooo
ooooooooooooooo
I know that this can be very difficult if you have to handle text with
non-monospaced fonts. But monospaced fonts would be enough. I also tried to
deactivate normal selection mode and put a graphical layer over it which
handels selection in a graphical way, but I didn't find a solution how to
create a layered SWT-Composite with Draw and SWT components inside...is that
possible in any way???
Thanks a lot an sorry for the bad english *blush*,
Andreas
|
|
|
|
Re: Rectangle/column selection in StyledText or any other SWT compatible text field [message #458989 is a reply to message #458413] |
Thu, 28 July 2005 09:36  |
Eclipse User |
|
|
|
You may wish to CC yourself to
https://bugs.eclipse.org/bugs/show_bug.cgi?id=8521 .
"cyberfloetz" <cyberfloetz@web.de> wrote in message
news:db2gus$hh9$1@news.eclipse.org...
> Hi,
>
> I'm searching for a solution to select columns inside a SWT text field.
Does
> anybody know how to do that?
>
> You don't understand what I mean? --> Normally when you select some lines
of
> text the selection starts at the cursors X position left-top, selects the
> rest of the line, the next lines and then ends at the cursor X position
> right-bottom. But I'm searching for a rectangle selection/column
selection.
> Only the text between left-top position and the right-button selection
shall
> be selected and not the "rest/beginning" of the line. In M!cro$oft W0rd
you
> can do this by holding the "Alt" key when selecting the text.
>
> Example: (text block letters: o; selected letters: 0)
>
> Normal selection:
>
> ooooooooooooooo
> oooo00000000000
> 000000000000000
> 00000000ooooooo
> ooooooooooooooo
>
> What I search for:
>
> ooooooooooooooo
> oooo0000ooooooo
> oooo0000ooooooo
> oooo0000ooooooo
> ooooooooooooooo
>
> I know that this can be very difficult if you have to handle text with
> non-monospaced fonts. But monospaced fonts would be enough. I also tried
to
> deactivate normal selection mode and put a graphical layer over it which
> handels selection in a graphical way, but I didn't find a solution how to
> create a layered SWT-Composite with Draw and SWT components inside...is
that
> possible in any way???
>
> Thanks a lot an sorry for the bad english *blush*,
>
> Andreas
>
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.08597 seconds