Slider - setting skewfactor in Projucer

Am using Projucer to create my UI's and want to set the skewfactor to give a somewhat more natural feel as follows: 

setSkewFactorFromMidPoint(sqrt (10.0 * 20000.0))

skewfactor is set to 1 by default which is good for most of the sliders I am using.

The member parameter "skew factor" for  the slider doesn't seem to allow a formula and if I add the above directly into the code it disappears when I save and rebuild from Projucer. 

Whats the best way to use these slider class functions ...



You can add custom code in the sections between the special comments - there are a couple of places within the constructor for you to do that, for exactly this purpose.