
I'm currently trying to write my first (real) file-system plugin, so please bear with me. There are some questions I'd like to ask the experienced (plugin) developers among you.
- How can I implement a properties dialog (called "property sheet" in the filesystem plugin SDK/help)? I tried a Delphi VCL form and it shows correctly but it makes a new button in the Windows taskbar and doesn't block TC. I analysed some other WFX plugins and saw a function named CreatePropertySheetPage in one of them. I've never dealt with it so I don't know how to use it. Yes, I read in the MSDN, but I guess there's more to it than just this function (the property sheet has to have some parent window, doesn't it?).
- How can I implement and especially test Unicode functionality? I don't have any experience there. To make it even more complicated: I'm using Delphi 5. There are types like PWideChar and WideString in there but I don't know if it's enough to cast the ANSI string types to the Unicode types ...
- The filesystem plugin SDK says about FsExtractCustomIcon:
How do you return something with this function declaration?RemoteName
This is the full path to the file or directory whose icon is to be retrieved. When extracting an icon, you can return an icon name here - this ensures that the icon is only cached once in the calling program.It's just a local variable and the compiler says that the assigned value is never used if I do something like this:Code: Select all
function FsExtractCustomIcon(RemoteName:pchar;ExtractFlags:integer; var TheIcon:hicon):integer; stdcall;
Code: Select all
RemoteName:= PChar(Format('%s.%s', [PLUGINNAME, typ]));
Regards
Dalai