Total Commander Forum Index Total Commander
Форум поддержки пользователей Total Commander
Сайты: Все о Total Commander | Totalcmd.net | Ghisler.com | RU.TCKB
 
 RulesRules   SearchSearch   FAQFAQ   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Single Post  Topic: Content plugin - странная работа функции ContentGetValue 
Author Message
Gentoo69



PostPosted: Tue Jul 13, 2010 15:08    Post subject: Reply with quote

Ответ Гислера:

You wrote:
Quote:
[...]
> If sorting order is by name or ext, ContentGetValueW return:
> 1. File1 FieldIndex (my fieldindex) = 0;
> 2. File1 FieldIndex (my fieldindex) = 1;
> 3. File2 FieldIndex (my fieldindex) = 0;
> 4. File2 FieldIndex (my fieldindex) = 1;
> Its work nice so I can cach last file in buffer.


That's because Total Commander requests the fields only when it displays them.


Quote:
> But if click on my column (any), to sort it, and then enter to folder again, ContentGetValueW return:

> 1. File1 FieldIndex (my fieldindex) = 0;
> 2. File2 FieldIndex (my fieldindex) = 0;
> 3. File1 FieldIndex (my fieldindex) = 1;
> 4. File2 FieldIndex (my fieldindex) = 1;


What happens here is that Total Commander first gets just the field by which
you are sorting (field 0). Later when the lines are displayed, Total Commander
requests the fields which have not been requested yet.

This is done because it's not a good idea to request all fields when sorting,
because the fields by which you don't currently sort may be very slow to
load.


I think that you don't need to cache the entire directory in this case, caching
by file is OK.


------------------
Мля, как же я будут кэшировать файл я не пойму?

Напишите ответ здесь, я ему отправлю. Или сами отправьте.
View user's profile Send private message


Powered by phpBB © 2001, 2005 phpBB Group