i need some opinion on displaying fonts in dialog box.
-
Hi there, I have a dialog application. i want to display some text in a box(maybe an edit box but with multiple lines).It is sumthing like the diagram below except replace the dash line with continues one(i looks like a normal rectangle. The background will be in black n the text is green. And this is just for displaying(no editing is required) But how can i do this? _______ |input1| | | |input2| | | |input3| |______ |
-
Hi there, I have a dialog application. i want to display some text in a box(maybe an edit box but with multiple lines).It is sumthing like the diagram below except replace the dash line with continues one(i looks like a normal rectangle. The background will be in black n the text is green. And this is just for displaying(no editing is required) But how can i do this? _______ |input1| | | |input2| | | |input3| |______ |
cyn8 wrote:
And this is just for displaying(no editing is required) But how can i do this?
If no editing is required, then simply use static text and color them as you like. Search CP. There are heaps of articles on this. AFAIK you cannot change the white color of an edit control to any other color!
Nobody can give you wiser advice than yourself. - Cicero ப்ரம்மா
-
Hi there, I have a dialog application. i want to display some text in a box(maybe an edit box but with multiple lines).It is sumthing like the diagram below except replace the dash line with continues one(i looks like a normal rectangle. The background will be in black n the text is green. And this is just for displaying(no editing is required) But how can i do this? _______ |input1| | | |input2| | | |input3| |______ |
i think this site will help you alot www.flounder.com, download option will be there and click the option there win32progming will be appeared, download the al;l the code to your pc. Chinna
-
Hi there, I have a dialog application. i want to display some text in a box(maybe an edit box but with multiple lines).It is sumthing like the diagram below except replace the dash line with continues one(i looks like a normal rectangle. The background will be in black n the text is green. And this is just for displaying(no editing is required) But how can i do this? _______ |input1| | | |input2| | | |input3| |______ |
this site will help you alot in win32 programing http://www.flounder.com/download.htm#Complete Win32 CD Contents click Complete Win32 CD Contents Chinna
-
cyn8 wrote:
And this is just for displaying(no editing is required) But how can i do this?
If no editing is required, then simply use static text and color them as you like. Search CP. There are heaps of articles on this. AFAIK you cannot change the white color of an edit control to any other color!
Nobody can give you wiser advice than yourself. - Cicero ப்ரம்மா
brahmma wrote:
AFAIK you cannot change the white color of an edit control to any other color!
Sure you can... http://www.codeproject.com/editctrl/enhfocusedit.asp[^] :). Peace!
-=- James
Please rate this message - let me know if I helped or not! * * *
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles -
cyn8 wrote:
And this is just for displaying(no editing is required) But how can i do this?
If no editing is required, then simply use static text and color them as you like. Search CP. There are heaps of articles on this. AFAIK you cannot change the white color of an edit control to any other color!
Nobody can give you wiser advice than yourself. - Cicero ப்ரம்மா
I think you can change color
WhiteSky
-
I think you can change color
WhiteSky
-
brahmma wrote:
AFAIK you cannot change the white color of an edit control to any other color!
Sure you can... http://www.codeproject.com/editctrl/enhfocusedit.asp[^] :). Peace!
-=- James
Please rate this message - let me know if I helped or not! * * *
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFilesYou have subclassed the edit control, handled your message of interest, created a solid brush and painted your color there! Can you do it without subclassing an edit control? With a plain CEdit control? PS: The requirement of the person who started this thread was to simply display colored text. I would not even think of subclassing an edit control for this purpose.
Nobody can give you wiser advice than yourself. - Cicero ப்ரம்மா
-
I know with subclassed but you said "you cannot change the white color of an edit control" ;)
WhiteSky
-
I know with subclassed but you said "you cannot change the white color of an edit control" ;)
WhiteSky
It was completely in context with the question that was asked. It is silly to subclass an edit control and handle events and paint, just to display some colored text with background. And of course you will need to subclass to do such stuff. As you subclass it, it is no more the normal edit control. In that article I could see that certain events are not handled properly. For an instance, you cannot paste in the second edit control of that dialogbox. These are all the pitfalls of subclassing, about which we need to be extra careful.
Nobody can give you wiser advice than yourself. - Cicero ப்ரம்மா
-
You have subclassed the edit control, handled your message of interest, created a solid brush and painted your color there! Can you do it without subclassing an edit control? With a plain CEdit control? PS: The requirement of the person who started this thread was to simply display colored text. I would not even think of subclassing an edit control for this purpose.
Nobody can give you wiser advice than yourself. - Cicero ப்ரம்மா
You do not have to subclass the
CEdit
control, but you do have to handle its messages in order to paint the colors yourself. You can do that by handling the messages in the parent window. The control I wrote uses its own class so that users do not have to keep writing the same handling code over and over. Peace!-=- James
Please rate this message - let me know if I helped or not! * * *
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles -
cyn8 wrote:
And this is just for displaying(no editing is required) But how can i do this?
If no editing is required, then simply use static text and color them as you like. Search CP. There are heaps of articles on this. AFAIK you cannot change the white color of an edit control to any other color!
Nobody can give you wiser advice than yourself. - Cicero ப்ரம்மா