Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Syntax Edit
  New Posts New Posts RSS Feed - no highlighting in Unicode version
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

no highlighting in Unicode version

 Post Reply Post Reply
Author
Message
dehilster View Drop Down
Groupie
Groupie


Joined: 16 October 2005
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote dehilster Quote  Post ReplyReply Direct Link To This Post Topic: no highlighting in Unicode version
    Posted: 12 October 2013 at 11:00am
I have gotten the syntax highlighting working but it is not working for the unicode version.  it is all in black and white.  Any suggestions?
David de Hilster
Back to Top
dehilster View Drop Down
Groupie
Groupie


Joined: 16 October 2005
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote dehilster Quote  Post ReplyReply Direct Link To This Post Posted: 26 October 2013 at 9:50am
wow, no answers.
David de Hilster
Back to Top
Algae View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 January 2007
Location: United States
Status: Offline
Points: 217
Post Options Post Options   Thanks (0) Thanks(0)   Quote Algae Quote  Post ReplyReply Direct Link To This Post Posted: 22 December 2015 at 6:29pm
This is a pretty old post, but there are a couple of things that CJ should know about.

I get the same results. Fails to highlight with the sample project "MDITextEditor". The control is embedded in a view.

With the control in a dialog such as the "SyntaxEditOnDialog" project found in this forum, it does work. If you do either of these things:

1. Load a file. Syntax will highlight. The reason loading a file works is that RefreshColors() is called.
2. Add <YourSyntaxCtrlName>.RefreshColors(); OR ".Invalidate()" to the dialog init method. You can then type and syntax will highlight when a coded word is completed.

Unfortunately, the same "RefreshColors()" fix does not seem to work in a view.

Version 16.26
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.