As I understand it, if the ‘virtual class’ property of a generic Jucer component is used, then in the gerated code the (static) type of the member should be set to this type, but the type used for the constructor call should still be the type of the ‘class’ property. This is not the case in the Jucer v1.11 of Juce v1.45. The type defined with the ‘virtual class’ property is used for both the constructer and the static member type.
I’m using a FilenameComponent as a generic component. The problem is that the constructor of FilenameComponent needs a lot of information, which I don’t want to write into the ‘constructor params’ property field of Jucer.
An additional property in the generic component, which would disable the implicit creation of the instance, would solve this problem. Then the user would have the duty to instantiate the member in the [UserPreSize] section and the ‘name’ and ‘focus order’ properties would be disabled (otherwise they would call methods on a NULL pointer).