AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Control, Highlight

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
beardboy



Joined: 02 Mar 2004
Posts: 444
Location: SLC, Utah

PostPosted: Fri Aug 20, 2004 2:34 pm    Post subject: Control, Highlight Reply with quote

Is something like this possible with the Control command?

Highlight[, Count]: Highlights the text of an Edit Control. Count is the number of characters to highlight, by default it highlights from left to right, but you can have it highlight Right to left. Enter A to highlight all the text.

Control, Highlight, 5, Edit1 ; Highlights the first 5 letters from left to right.
Control, Highlight, L5, Edit1 ; Highlights the first 5 letters from left to right.
Control, Highlight, R5, Edit1 ; Highlights the first 5 letters from right to left.
Control, Highlight, A, Edit1 ; Highlights all the text in Edit1.

thanks,
beardboy
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10464

PostPosted: Fri Aug 20, 2004 3:46 pm    Post subject: Reply with quote

Since it's related to an item already on the list, I've added it to that item: "Support for moving the caret in an Edit control, and optionally selecting part of the text (if possible)." Thanks for the idea.

Note that you can use ControlGet to retrieve the text in an edit's current selection. It can also retrieve an entire line.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group