Hi,
I want to create a simple DrawablePath which uses a RelativePointPath. But I don’t really understand how RelativePoint works. I tried this:
RelativePointPath rp;
rp.addElement(new RelativePointPath::StartSubPath(RelativePoint("left, bottom")));
rp.addElement(new RelativePointPath::LineTo(RelativePoint("right, top")));
drawablePath.setPath(rp);
drawablePath.setStrokeType(PathStrokeType(1));
drawablePath.setStrokeFill(FillType(Colours::white));
But when I add drawablePath to my component, the program crashes. It’s just supposed to be a diagonal line for now.
