How does FsContentGetDefaultView work?

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
pelsta
Junior Member
Junior Member
Posts: 8
Joined: 2008-04-05, 07:56 UTC
Location: Kety, Poland

How does FsContentGetDefaultView work?

Post by *pelsta »

Hi,
I'm writing a wfx plugin for TC, named "AddressBook", which uses the custom columns.

If "CustomFields_AddressBook" section does not exists in WINCMD.INI then
1. When the plugin is started for the first time then TC calls FsContentGetDefaultView twice and correctly changes the custom columns view.
2. When the plugin is started again (after unload) then TC calls FsContentGetDefaultView once and left unchanged custom columns view.

If "CustomFields_AddressBook" section exists in WINCMD.INI then
TC does not calls FsContentGetDefaultView at all.

Is that it should be?
How can plugin change the view of custom columns (contents, headers, widths, count) without user's interact with TC?
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2pelsta
Hi sorry for not being helpful but how different will it be from tcPhoneBook?
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
pelsta
Junior Member
Junior Member
Posts: 8
Joined: 2008-04-05, 07:56 UTC
Location: Kety, Poland

Post by *pelsta »

My plugin reads and writes files in csv format. Address book has configurable fields.
pelsta
Junior Member
Junior Member
Posts: 8
Joined: 2008-04-05, 07:56 UTC
Location: Kety, Poland

Post by *pelsta »

Partially solved the problem.
When I need to change the view of custom columns, plugin changes the relevant entries in the "CustomFields_AddressBook" in WINCMD.INI and asks the user to restart the TC.

But this is not an elegant solution.
Post Reply