Login  
Search All Forums
Dart Home | PowerTCP Emulation for ActiveX | Custom Development Reply | PowerTCP Emulation / Telnet for ActiveX Topics | Forums   
AuthorForum: PowerTCP Emulation / Telnet for ActiveX
Topic: Colors
jo.sonck
jo.sonck@octaplus.be

From: vilvoorde, Belgium
Posts: 13
Member Since: 07/04/03
posted July 4, 2003 5:43 AM

hi,

I'm recentely using the VT-activex control in an application written in VB 6.0 and it's working great. I would like to make an ini-file where users can define the colors that are used when receiving escape sequences like $c(27) + "0;30;41m" but I don't seem to find any documentation about this issue. Has anybody done this before?
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted July 7, 2003 10:04 AM

Hi,
There is a NormalIntensity property that will change the intensity of all colors in the display, but there is no way to assign intensity for individual colors. 

If you are talking about substituting (for example) a black background for blue, you would have to substitute the actual sequence with a new sequence prior to displaying the data.
-ken
jo.sonck
jo.sonck@octaplus.be

From: vilvoorde, Belgium
Posts: 13
Member Since: 07/04/03
posted July 8, 2003 12:01 PM

I think I did'nt explain well.

What I want to do in fact is change the color of part of what I put on the screen.
E.g. 3 characters in red on a black background and the 5 next characters in green on a blue background.
If I have to intercept the escape sequences and change them in something else I can do this, there is no problem in that. But I don't find how to change the color of only 3 characters (and select the color using RGB or any other coding).
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted July 9, 2003 9:53 AM

Hi,
In that case, instead of substituting sequences, you would have to actually insert backcolor/forecolor sequences at the appropriate places in the data.
-ken
jo.sonck
jo.sonck@octaplus.be

From: vilvoorde, Belgium
Posts: 13
Member Since: 07/04/03
posted July 10, 2003 9:27 AM

hi,

and if I want the red to be more purple?
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted July 11, 2003 9:21 AM

Hi,
It is only possible to change the intensity of the entire display, not individual characters.
Sorry,
-ken
Reply | PowerTCP Emulation / Telnet for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX