Make a context menu to create patterns.