How can i make a configuration form for my screen saver???
Printable View
How can i make a configuration form for my screen saver???
Step1 Make your configuration form as a standard form in your screensaver project, make sure it set's it's properties in the registry or in an INI file so you can get at them when you run the screensaver.
When you program the screensaver it should start with Sub Main() the first theing you should do is get the command line.
use
to get the first 2 letters of the command line in lower case, the command line contains information on how the screensaver should be startedCode:strCommand=LCase$(Left$(Command$,2))
the values you can get are
/c Dispay the configuation screen
/s Display a normal screensaver
/p Display a preview
if you get a /p somewhere in the command$ you will get a number, this is the hWnd of that lille window you get in the screensaver setting window that diplays a preview of the screensaver. If you can use the API then target all your drawing functions to this window, bearing in mind it's a lot smaller than the screen, If you can't use the API don't worry, just leave it blank.
Hope this helps.