🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11652

Re: Update commctrl.h

#11652
From: Remy Lebeau (TeamB)
Date: Tue, 27 Jan 2004 21:49
33 lines
2450 bytes
"eric67" <myfantasy@libero.it> wrote in message
news:4016d25b@newsgroups.borland.com...

> Today I was asked to convert a TListView component into
> a grouped TListView (XP feature). Messages and structures
> required to do this are contained into Microsoft's new
> commctrl.h (one for all: LVGROUP).

You could have just defined the necessary structures/messages manually in
your own code instead of updating the entire header file.

Besides, even if you enabled grouping for the native TListView component,
you would still have problems.  TListView custom-draws itself, and as such
it does have known problems when themes are applied.

An alternative to using TListView would be to get the Raize component suite
from http://www.raize.com.  It has components that can do the grouping in
exactly the way you are asking for (if I remember correctly from the live
presentation I saw at the last BorCon), and does it under all Windows OSs,
not just XP.  That way, you could have the same UI regardless of which OS is
used or whether themes are present (and Raize's custom drawing is not based
on XP themes to begin with, although it can be configured to do so, so no
VCL issues).

> What do you mean exactly? Can you provide an example?

For example, when TListView is in vsReport mode, it custom-draws its column
headers.  Because the VCL does not have a single line of XP-specific drawing
code, the column headers are not drawn correctly when themes are enabled.


Gambit
Technical Details
Message-ID: <4016db48$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4016b247@newsgroups.borland.com> <4016bb79$1@newsgroups.borland.com> <4016d25b@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,25665ea65a4f94b0
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-01-27 14:10:29 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4016b247@newsgroups.borland.com> <4016bb79$1@newsgroups.borland.com> <4016d25b@newsgroups.borland.com>
Subject: Re: Update commctrl.h
Date: Tue, 27 Jan 2004 13:49:26 -0800
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.138.253
Message-ID: <4016db48$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1075239752 67.22.138.253 (27 Jan 2004 13:42:32 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail