Although I haven't attempted it before, I'd assume you'd have a particular zone renderred on the screen with a type of "cover" over it. Either that or only render certain pixels ahead of the borders on a pane.
The position of your character would, obviously determine when the screen will be renderred on the side...
Bah this has given me some ambition to make a game like this @_@