 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Kevin Johnson Guest
|
Posted: Tue Apr 27, 2004 5:49 pm Post subject: design issue |
|
|
I have a design question, I'm trying to impliment a a certain screen layout
that I've seen in MS Outlook and other various MS VC++ applications. When
in outlook, under the Contacts section, it lists all the contact that you
have in your folder. I does this in several columns seperated by gray
lines. Each contact has it's own litle box within each column that has a
blue / gray header with the address details under it. I want to develop /
use the same type of screen layout, though I don't want to have to use some
third-party VCL's I assume that it uses some ListBox type of control, but
I'm not sure how to impliment the multiple lines of text, or the colours
title - does anyone have any suggestions or starting point.
Thanks in advance,
Kevin
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Apr 28, 2004 12:04 am Post subject: Re: design issue |
|
|
"Kevin Johnson" <kevjson (AT) hotmail (DOT) com> wrote
| Quote: | I assume that it uses some ListBox type of control
|
It is nota ListBox. Is ita custom-made control designed specifically for
that particular feature of Outlook.
| Quote: | but I'm not sure how to impliment the multiple lines of text
|
If you were going to try the ListBox approach, you would have to owner-draw
it. Use the OnMeasureItem event to calculate and return the size of each
list item, and then then OnDrawItem event to actually draw each item. You
can use the Win32 API DrawText() function to calculate the size of, and
draw, multiple lines of text via the DT_BREAKLINES flag.
Gambit
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|