![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Expert Programmer
|
Borland - 6.0 .NET PRO (Underline Problem)
Can someone please give me an example of underlineing the selected text in a memo box, for Borland .NET. Thanks~
__________________
"When in Rome, Do as the Romans Do" "Beauty is in the eye of the BEER holder" "Save your breath your going to need it for your blow up doll later" SearchLores.org |
|
|
|
|
|
#2 |
|
Expert Programmer
|
EDIT: this post question is from my teacher. (I hate Borland!)
__________________
"When in Rome, Do as the Romans Do" "Beauty is in the eye of the BEER holder" "Save your breath your going to need it for your blow up doll later" SearchLores.org |
|
|
|
|
|
#3 |
|
Expert Programmer
|
You should have a search on google.
__________________
Join us at #programmingforums @ irc.freenode.net! My software never has bugs. It just develops random features.
|
|
|
|
|
|
#4 |
|
Expert Programmer
|
lol, this whole thing doesn't matter to me. In my opinion i told the teacher he cannot complete this task. Think about a richedit... you can alter colors,underline,bold pretty much anything at any part in the text. That is because it formats it to RTF standard correct? I told him the "Memo" box he is using has no format and is just plain text... and if you alter any properties -> color,font,bold,underline then you are editing the entire "Memo" box. He wanted me to come here and ask you 'Gurus'. So if no one knows... or has an anwser thats ok with me
Thanks~
__________________
"When in Rome, Do as the Romans Do" "Beauty is in the eye of the BEER holder" "Save your breath your going to need it for your blow up doll later" SearchLores.org |
|
|
|
|
|
#5 |
|
Expert Programmer
|
I think you are correct. :-)
__________________
Join us at #programmingforums @ irc.freenode.net! My software never has bugs. It just develops random features.
|
|
|
|
|
|
#6 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
A rich edit control is just a window in which the user can enter, edit, format, print, and save text. The text can be assigned character and paragraph formatting, and can include embedded COM objects. Underlining is part of the character formatting.
You can set the CHARFORMAT structure and set dwMask to CFM_UNDERLINE. The CHARFORMAT2 structure is a Microsoft Rich Edit 2.0 extension of the CHARFORMAT structure. Rich Edit 2.0 and later allows you to use either structure with the EM_GETCHARFORMAT and EM_SETCHARFORMAT messages. So you are correct if the 'Memo' box is just a system edit control.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for." -- Socrates |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|