10-27-2008 04:23 PM
Vivek,
This is what I'd meant:
10-27-2008 04:23 PM
10-27-2008 04:25 PM - edited 10-27-2008 04:27 PM
Thanks Mr. Jim,
That's what I'd thought too as I was only able to do multiple color changes for different subsets of string but not highlight. So your explanation makes senses.
10-27-2008 04:34 PM
You're welcome. (I wish I had a more positive answer for you!)
For what it's worth, here's an example with a picture control. It can be tricky to get the coordinates right, but it works.
10-27-2008 04:47 PM - edited 10-27-2008 04:50 PM
10-27-2008 04:56 PM - edited 10-27-2008 04:59 PM
It's possible that it could use a lot of resources, depending on a lot of factors, but I tend to think that it would be unlikely. I wouldn't think it would be too big of a deal on a newer computer that isn't bogged down by a lot of other processes. If it does becomes a problem, decreasing the frequency of indicator updates should help. By this I mean either adding in a larger delay in your loop or maybe running your interface updates in a separate loop.
What I'd be more worried about is the tedious nature of figuring all of those coordinates out in such a large string. Are you sure you can't just change the color, maybe make string subsets bold, or use some other effect? There might very well be an easier way to accomplish your desired result.
10-27-2008 07:09 PM - edited 10-27-2008 07:10 PM
yes, I'm able to change the color fine ...it would be nice if the highlight method works so I can emulate an interface for a machine that we use at work. But then again I think don't the picture method is worth it since you can't scroll or do word wrap.
Thanks though that was fun to learn, I'd thought that was a pretty cool trick you just showed me.
10-28-2008 07:10 AM