For that to work you should not do anything in your OpenItem(), just
throw "throw new NotImplementedException()" like the other functions
(eg. TogglePinnedState) do in the C# sample. That exception tells the
sidebar to do the default processing which is to open the given
command.
malcolm wrote:
Sadly, though, even though I have set this with put_open_command(), the
command seems not to be executed. I have tried various common commands
such as "notepad.exe", as well as using an URL. I can, of course,
retrieve the URL using get_open_command, and call ShellExecute([URL
here]) myself in the OpenItem() method, to launch the default browser,
but I'd like to do this in the officially approved way. Is there a flag
I need to set somewhere, or something, to have the built-in classes
take care of making the call?
Thanks, Malcolm