Changes the screen mode of your application.
If null is passed, the app menu will be dismissed. When called, the global OnConfig function will be called (if defined).