Sets the pen style. See wx:pen% for the list of possible styles.
A pen cannot be modified if it was obtained from a wx:pen-list% or while it is selected into a drawing context.