Why not use CHeaderCtrl instead of old-fashioned HeaderCtrl

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
CoolWater
Power Member
Power Member
Posts: 737
Joined: 2003-03-27, 16:33 UTC

Why not use CHeaderCtrl instead of old-fashioned HeaderCtrl

Post by *CoolWater »

Hi,

is there any special reason why not to use the HeaderCtrl from Windows ListView instead of the self-made (old-fashioned IMHO) header control? I think this would make the layout more appropriate when using themes.

Something like this:

http://img260.imageshack.us/my.php?image=tcheaderctrlfaketv9.jpg

Regards,
CoolWater

PS: Didn't find this/similar topic using the search function...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48107
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I'm not using a listview, I'm using a listbox. Why?
- Listview is much slower
- No way to show headers in brief view
- No sorting by multiple columns possible
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2ghisler(Author)
This is about using a Win32 header control not about using a Listview control. Microsoft uses a header control in a Listview but this control is a standalone control basically.

I would personally prefer a custom control which combines the advantages ot the currently used control with the modern look of a Win32 header control - as we discussed in the beta forum.

Anyway discussing new features/improvements is currently a waste of time. A new major version is about to be released.
CoolWater
Power Member
Power Member
Posts: 737
Joined: 2003-03-27, 16:33 UTC

Post by *CoolWater »

Lefteous wrote:2ghisler(Author)
This is about using a Win32 header control not about using a Listview control. Microsoft uses a header control in a Listview but this control is a standalone control basically.

I would personally prefer a custom control which combines the advantages ot the currently used control with the modern look of a Win32 header control - as we discussed in the beta forum.

Anyway discussing new features/improvements is currently a waste of time. A new major version is about to be released.
Jep, that's what I talking about. I don't mind not having this feature/improvement in the next release. This was a general thought/wish/impression/what ever. Although I think this wouldn't be much work to implement...

Regards,
CoolWater
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2CoolWater
Very nice suggestion: old Header control looks really ugly... And that arrow that displays the sorting...
User avatar
petermad
Power Member
Power Member
Posts: 14824
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

old Header control looks really ugly
Well. different ppl different taste: I like the current control - and if a new control is going to look like the one in http://img260.imageshack.us/my.php?image=tcheaderctrlfaketv9.jpg I would rather use the current control - the one in that picture looks too much like a Folder Tab.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Do you know any programs, besides TC, with such a Header control?
And CoolWater suggests standard one.
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

Standard doesn't always mean "better". Personally, I also like the current one more.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

How about a poll?
CoolWater
Power Member
Power Member
Posts: 737
Joined: 2003-03-27, 16:33 UTC

Post by *CoolWater »

petermad wrote:the one in that picture looks too much like a Folder Tab.
Well, this is because the mouse was over the first column and highlighted it... Take a look at this...

http://img102.imageshack.us/img102/5197/tcheaderctrlfakehk5.jpg

For me, it's clear what is folder tab and what is listview header...

Regards,
CoolWater

EDIT: @Alextp: Support for poll. Or may be we should wait till tomorrow when ghisler visits the forum...
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Last edited by Alextp on 2007-04-30, 21:20 UTC, edited 1 time in total.
User avatar
petermad
Power Member
Power Member
Posts: 14824
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

this is because the mouse was over the first column and highlighted it
I realize that - still, it's not my cup of tea (don't like white controls). :shock:
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
CoolWater
Power Member
Power Member
Posts: 737
Joined: 2003-03-27, 16:33 UTC

Post by *CoolWater »

petermad wrote:
this is because the mouse was over the first column and highlighted it
I realize that - still, it's not my cup of tea (don't like white controls). :shock:
Fortunately, there thousands of themes out there... ;)
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

CoolWater wrote:
petermad wrote:
this is because the mouse was over the first column and highlighted it
I realize that - still, it's not my cup of tea (don't like white controls). :shock:
Fortunately, there thousands of themes out there... ;)
Some people don't want to bother with looking for them.
Of course possibility of changing the defaults is usually good.
But this thing has 2 drawbacks.
- It's harder to notice that small triangle than a pushed section. Possibly it can be changed with another theme. But:
- It's not portable. When I connect it to another computer, I'll likely see this ugly white thing or something else - which look is rather unpredictable.
CoolWater
Power Member
Power Member
Posts: 737
Joined: 2003-03-27, 16:33 UTC

Post by *CoolWater »

FYI: Screen with standard luna theme header control:
http://img266.imageshack.us/img266/3255/tcheaderctrlfakeyl4.jpg

This should make things more clear (I hope :))

Regards,
CoolWater
Post Reply