BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

design issue

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Kevin Johnson
Guest





PostPosted: Tue Apr 27, 2004 5:49 pm    Post subject: design issue Reply with quote



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





PostPosted: Wed Apr 28, 2004 12:04 am    Post subject: Re: design issue Reply with quote




"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.