Shiny Language Reference

Language Reference > Handler Reference


RegWrite

 

 

Called during registry profile saving for additional settings

This handler is called once the standard settings have been stored in the registry profile for the plugin (stored in HKCU\Software\32Bits\Brass\Shiny<pluginfilename>). The standard settings are all settings accessible from the general plugin config dialog (accessed by double-clicking the plugin in the main Brass window), for example: panel position, size, background, transparency, hotkey etc.

At this point it is too late to modify the standard settings before they are written. To do this you should use the PreRegWrite handler and the panel functions.

This handler and the RegRead handler are the only handlers where it is valid to use the registry profile functions, as these are the only times when a connection to the plugin's "personal" registry key is available. You should implement code in this handler to store any other settings in the registry.

The handler call order is as follows:

Shutdown -> PreRegWrite -> RegWrite -> PostRegWrite -> ShutdownEnd
Shutdown -> PreRegWrite -> PostRegWriteFail -> ShutdownEnd

 

Parameters

None