mike1950r Posted May 9, 2023 Posted May 9, 2023 Hi, is there a way to select non-contiguous text in rich edit control? I really need this and get stuck finding a solution for that. If anybody had an idea this would be exellent. Thanks in advance. Cheers mike
Moderators JLogan3o13 Posted May 9, 2023 Moderators Posted May 9, 2023 How about an example or screenshot of the control, or the text you're after? Help us help you "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
mike1950r Posted May 9, 2023 Author Posted May 9, 2023 Hi, thanks for your answer. What i want is select a part of text in the editor and additional a part in this editor, which is not contiguous with the first part. It's like selecting files in windows explorer, where you can select any files and not only files which are displayed beside other files. Hope you can understand, what i mean. What I need is not possible in notepad or word, but I want be able to do this in rich-edit, if possible. Just a kind of modifying the manner of selecting parts of text. Cheers mike
Moderators JLogan3o13 Posted May 9, 2023 Moderators Posted May 9, 2023 And as I said, an example of what this text would be will help greatly. There are numerous ways to skin the proverbial cat, but giving you suggestions on an approach is going to be much easier with an example string to build from. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
mike1950r Posted May 9, 2023 Author Posted May 9, 2023 well I tried to explain, but you seem not to understand (cause my bad english perhaps) try again: select from text in edit control Line 2 and line 7. or select from your post "And as I said" and "easier with an example" Do you understand now? cheers mike
Dan_555 Posted May 9, 2023 Posted May 9, 2023 (edited) He wants to have multiple selections in an Edit field. Scite has this ability by holding the ctrl/strg key down and selecting different text. edit: What you could do is to use the scite edit field instead of the normal one. Looks like the SciteIt.au3 is not able to do it. Edited May 9, 2023 by Dan_555 Some of my script sourcecode
mike1950r Posted May 9, 2023 Author Posted May 9, 2023 Hi dan_555, you're right. This is what I want: Multiple selections without deselecting the former selected ones. Thanks cheers mike
Moderators JLogan3o13 Posted May 9, 2023 Moderators Posted May 9, 2023 Perhaps I did misunderstand. My thought was, since (as was already pointed out) you would have a hard time selecting multiple sub-strings in the edit element itself, to instead copy the entire string out, modify it to suit your needs, and then do whatever you need with it (paste back into the element, use it elsewhere in your script, etc.). That is why I was thinking the string syntax would be helpful. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now