it's automatic, you should notice a difference the moment a track's gain value is written to the database. but be sure you go to Preferences/Playback and set the source mode - album or track - then decide how to apply the gain. below that you can adjust the preamp if you need to.
there are two further ways to fine-tune how replay gain works.
first is with a component called Replaygain Override. it lets you choose which gain source is applied to which playback mode. for example, you can set Default mode to apply album gain, and Shuffle to apply track gain. i use this and it's very helpful.
Zao's foobar2000 components
second, you can get a different component called Playlist Attributes. this let you assign certain properties to individual playlists, and one of those properties is the gain source. so you can set one playlist to apply track gain, and another to apply album gain.
foo_playlist_attributes - Hydrogenaudio Forums
not sure how well the two play together, so i would choose one or the other