Try adding a .pdf file to a dead project... then try to open it... OOPS!
It appears that POIDE only opens these files internally...
Maybe we want to open file with ShellExecute() ?
Example AddIn PrjOpenFile attached.
Yes that's part of it ... In fact I was just experimenting with something like that...
Thing is... I know how to add extra lines to the workspace (.ppw) file that will stay added and I think I know how to display them... but there's no way to parse the raw workspace file from inside the IDE without opening it separately (as I did with WSEdit)...
The problem is simple... When a project or workspace is opened by clicking on it in Windows Explorer, the OS sets the working path to that of the file; I can catch this and parse the workspace file very nicely. But when I use the internal File->Open the path is not set and shows the path of the previous project or PellesC\Bin; which is useless to me ... Try both methods with the ExtraButtons AddIn loaded, click on the Open Project Folder icon and you'll see the problem.
I suppose I could add an "alternative file open" to set the path, somehow but what I really need here is a couple of new macros...
AddIn_GetWorkspaceFilename() and
AddIn_GetProjectFilename() With them I'd be off to the races on this... but they don't exist.