Stroketype colour?


#1

Ok … I know I should probably be able to find this, but … now that setStrokeColour is deprecated, how do I set the stroked outline colour on a drawableButton?

here is drawable path, which should just be an outline …

myDrawablePath.setStrokeThickness(8);
// myDrawablePath.setStrokeColour(8); deprecated …
myDrawablePath.setFill(FillType(Colours::transparentBlack));

which is the normal image on a drawableButton … via:

myDrawableButton->setImages(&myDrawablePath, 0, 0, 0, 0, 0, 0, 0);

Using the tip, the outline no longer renders … there must be a new method somewhere that sets the outline colour for the drawablePath to be drawn on the button, but I haven’t found it yet … perhaps it uses a colourId somewhere?

Thanks -


#2

setStrokeFill()…


#3

Thanks Jules … thats the one.


#4