Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 Jul : DrawText
| Subject: | DrawText |
| Posted by: | "David Champion" (davechampi..@gmail.com) |
| Date: | 23 Jul 2007 07:19:22 |
I'm attempting to write an item of text to a rectangular region using DrawText or DrawTextEx. The text contains a keyword (or multiple keywords that need to have a bold font style). The width is fixed and the rectangle height calculated. I am using DT_WORDBREAK to manage the word wrapping. Which ever way I break up the problem I always need to do some manual word wrap. Using underline to hightlight the keyword is much easier since single a ampersand is a known style prefix. I think I will have to drop down to handling the output word by word. Any other suggestions ?