On Tue, Oct 8, 2019 at 12:16 PM 'Simply Notes Simply Notes' via
Notecase Pro <
noteca...@googlegroups.com> wrote:
>
> The attached file can be used as a local plugin for now and implements the following functionality
>
> The script "Save View" stores the current treeview columns, layout and line number setting either as default view or as document view based on user input. The default view is stored in sn_tools.ini. If the view is to be stored in the document the values are stored in document custom properties.
>
> The script "Load View" either loads the default view from the ini file or the document view settings from the custom properties of the document. If the user selects to load the view setup from document and the document doesn't have view details the user will be prompted with a MsgBox
>
> Using the configuration script one can register a none interactive load view script to the event after_document_change to automatically change the view setup whenever one changes the document.
Just starting to look at the code. (I've been busy, sorry.)
On the .ini file handling, did you use the inilazy library that
Daniel's Plugin Developer Tools plugin provides? See that plugin's
Help file at Tips and Tricks > Configuration / INI file handling: How
to use Nc_inilazy_hmc library
If not, it might give you some ideas.
Best regards,
Paul
--
[Notice not included in the above original message: The U.S. National
Security Agency neither confirms nor denies that it intercepted this
message.]
¯\_(ツ)_/¯