Vivillon's pattern is determined by the region you live in, so any Vivillon caught in your game will always have the same pattern, and any Spewpa will evolve into a Vivillon of that pattern.
So Vivillon's pattern isn't determined when you catch it or evolve it, because it is already decided what pattern Vivillon from your game will be.