954,496 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Dialog Based App on change??

I have a dialog-based application that just has a big edit box. I want to make a quotation mark bold right when it is typed. How can this be done? I am using dev-c++ 4.9.9.2 (I don't know how to make single characters bold, let alone how to capture the key pressed)

tawes01
Light Poster
37 posts since Oct 2010
Reputation Points: 8
Solved Threads: 5
 

Customizing the edit control can get pretty complicated. Here 's one thread on that topic. Here are a few others.

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

What exactly does "subclass edit control" mean?
And plus, I have already googled to try to figure this out. All I found was Visual C++ crap and miscelaneous crap.

tawes01
Light Poster
37 posts since Oct 2010
Reputation Points: 8
Solved Threads: 5
 

subclassing is a little bit like deriving another class from a base class. Assume you have a class named Animal and you want to make a class called Cat. In terms of MS-Windows controls that would be called subclassing and is done in C, not C++ (although you can use it in your c++ program as long as you use standard C syntax.)

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

So how would that be useful in my program?

tawes01
Light Poster
37 posts since Oct 2010
Reputation Points: 8
Solved Threads: 5
 

If you want to customize drawing of the edit control then you will have to cusclass it. I already gave you a link to one way of doing that. You can find other ones on www.codeproject.com , which has the largest repository of MS-Windows code on the internet.

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: