lmgrSetLibDisplayOverride
lmgrSetLibDisplayOverrideg_libNames[?colorg_color] [?icong_icon] ) =>t / nil
Description
Sets color, icon, or both for a library or a group of libraries to display in the Library Manager. This SKILL function can override the color and icon library attributes settings in the Library Manager.
The database settings of Library Manager take precedence for its defined libraries if this SKILL function targets the same library. When a target library is specified under both systems, the settings specified by lmgrSetLibDisplayOverride is displayed if the targeting attribute from the Display Options is set to allow overrides.
The display override values from lmgrSetLibDisplayOverride are retained in memory only and are not saved permanently. The settings persist in memory until removed by lmgrClearLibDisplayOverride.
Arguments
Value Returned
|
The specified values could not be set because no value is specified in g_libNames. |
Examples
This includes wrapping example calls within errset to avoid potential bypassing of any code occurring after the errset, it is recommended for specific batch change cases when an error may occur, such as icon not found via CSF. Adding errset to each lmgrSetLibDisplayOverride call allows the remaining ones be called in case error occurs in one of them.
errset( progn(
lmgrSetLibDisplayOverride( "workLibrary" ?color "#00ffff" )
lmgrSetLibDisplayOverride( "testLibrary" ?icon "test.png" ?color "coral" )
lmgrSetLibDisplayOverride( list( "lib1" "lib2" "lib3" ) ?color "green" ?icon "/usr1/shared/libicons/greenLib.png" )
) t )
Related Topics
lmgrClearLibDisplayColorOverride
Return to top