Procedure TWPImageList.SVGAddParamOverride(idname:string; param:string; value:string)

Unit: WPUtil
Class: WPUtil.TWPImageList

Parameters

  • idname:string
  • param:string
  • value:string

Description

Add to the list of style overrides for SVG redering. Use AddParamOverride('','','') to clear the list.
In the code below our ruler component changes the fill color of all items with an ID which starts with "_B_": ARulerWPImageList.SVGAddParamOverride('','',''); // Clear case FDesign of wpRulerBlue: ARulerWPImageList.SVGAddParamOverride('_B_','fill','#238bcf'); wpRulerOrange: ARulerWPImageList.SVGAddParamOverride('_B_','fill','#e57723'); wpRulerYellow: ARulerWPImageList.SVGAddParamOverride('_B_','fill','#dfda59'); end; Please note that the icons are rendered to bitmaps which are cached. Using SVGAddParamOverride will not automatically clear the created bitmaps so you will not see a change until the bitmaps have been removed.