|Rectangle/column selection in StyledText or any other SWT compatible text field [message #458413]
||Wed, 13 July 2005 07:47
Originally posted by: cyberfloetz.web.de|
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)
What I search for:
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*,
Powered by FUDForum
. Page generated in 0.01593 seconds