http://www.betterwebber.com/stuff/FB_ScreenSaverKit.zip
Just unzip, and include this at the top of your program:
Code: Select all
#include "FB_ScreenSaverKit.bas"
StartScreenSaver
Pset (x, y), colr
'...
Packaged is the kit, and a conversion of Mambazo's "Doodle" demo. Notice how the preview box and settings button work, and how there's no code related to that stuff in the actual program, FB_ScreenSaverKit.bas takes care of it all.
If you want/need a real settings box, then I might make a function where if you include a different dialog name it makes a modal dialog and lets you hook the message loop, and it doesn't save much effort unless I made a mechanism to save registry keys, which I don't feel like doing because I like registry undiddled.