I'm creating a logfile interpreter program that consists of two editboxes. The first editbox contains the original logfile code, and the second editbox contains the equivalent code of the first editbox in user-readable format. All I want to do now is, everytime I select or highlight a specific code in the first editbox, the equivalent code in the second editbox should be highlighted automatically. Does anyone here knows or have an idea on how to do that?
everard
0
Newbie Poster
Recommended Answers
Jump to PostSee CEdit's SetSel method
Jump to PostProbably
1) get the text from box1 into a string object
2) get the text from box2 into another string object
3) search text from box2 to see if it contains the text in box1
4) if found, highlight the text in box2
Jump to PostI suppose first you will have to figure out how to translate the numerical format in edit box #1 into the format contained in edit box #2. I have no idea how you would do that.
All 10 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
everard
0
Newbie Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
everard
0
Newbie Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
everard
0
Newbie Poster
everard
0
Newbie Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
everard
0
Newbie Poster
Trepach
-1
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.