LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to change the colour of

my selected text string as in the case of C, C++ languages. I am writing a compiler and what i need is to display few keywords which i am defining in blue colour and all other texts in the edit box in black colour. Can anyone help me to solve this problem.Hello Joesam,
There are a number of ways to do this, there is actually one in the CVI toolslib toolbox, you could also find an ActiveX one, or do it with Windows SDK calls. Here's a couple good posts about it:

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RNAME=ViewQuestion&HOID=50650000000800000075310000&ECategory=LabWindows%2FCVI

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RNAME=ViewQuestion&HOID=506500000008000000AF0E0000&ECategory=LabWindows%2FCVI

Also, one tip about using the Discussion Forums: Most people don't check on old posts like this one (luckily I was still subscribed), so it's generally better to ask new questions like this one in a new post so that people will see t
hem.

Regards,
Ryan K.
0 Kudos
Message 11 of 11
(744 Views)