Changing Preferences
4 messages in this thread
Can anyone help me? I need to change the PREFERENCES within a C program.
The books I have all mention GetPrefs() and GetDefPrefs(). They say these
functions will load prefs info into a buffer that I set up. But what do
you do with this buffer once you have it? Don't you somehow have to set up
a structure of type=preferences and load the information into that? Then,
provided that's successful, what function do you call to actually change
these preferences?
Dave
What is it that you want to do with the preferences once you have them. In
particular, the GetPrefs() function will not be very useful with the 2.0
version of the operating system as much of that structure has changed.
They kept the routine there for compatibility, but any new program should
look at the new interfaces. I will be happy to help out with any
questions.
John A. Toebes, VIII – via Whap!
John: Unfortunately, I'm running an old 500 and using 1.2 and 1.3. At this
point, all I want to do is to change the background color so the color will
go all the way to the edge of the screen (I'm building a character
generator for specialized broadcasting situations). I didn't want to have
to change the Prefs from the Prefs program itself but from my program.
Dave
If I am understanding correctly, you really don't want to change the
preferences. If you are opening your own screen, you can set the colors
directly. If you are running on the workbench screen, you can get the
current backgroung color, change it to what you want, and then restore it
when you exit.
John A. Toebes, VIII – via Whap!