How to record a melody per bar?

Hello.
How to record a melody per bar? I put the recording line two bars before the selected area of the track recording, with a metronome, I record the track, but in the piano roll there are no notes that I recorded per bar. In the piano roll there is no zero bar as per bar. Can you add this feature for recording and editing in the piano roll in the new version of Cubasis?
Thanks.
With respect to you,