how to snap to bar ?

Hi i found how to display bar ruler and set tempo for audio file
but how to i get my cursor to snap to 1 2 4 8 16th etc ?
thx for help

Make sure to have this option activated:

oh i got it ! thx.