a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Libraries:
 intuition.library
  ActivateGadget
  ActivateWindow
  AddClass
  AddGList
  AddGadget
  AllocRemember
  AllocScreenBuffer
  AutoRequest
  BeginRefresh
  BuildEasyRequestArgs
  BuildSysRequest
  ChangeScreenBuffer
  ChangeWindowBox
  ClearDMRequest
  ClearMenuStrip
  ClearPointer
  CloseScreen
  CloseWindow
  CloseWorkBench
  CurrentTime
  DisplayAlert
  DisplayBeep
  DisposeObject
  DoGadgetMethodA
  DoubleClick
  DrawBorder
  DrawImage
  DrawImageState
  EasyRequestArgs
  EndRefresh
  EndRequest
  EraseImage
  FreeClass
  FreeRemember
  FreeScreenBuffer
  FreeScreenDrawInfo
  FreeSysRequest
  GadgetMouse
  GetAttr
  GetDefPrefs
  GetDefaultPubScreen
  GetPrefs
  GetScreenData
  GetScreenDrawInfo
  HelpControl
  InitRequester
  IntuiTextLength
  ItemAddress
  LendMenus
  LockIBase
  LockPubScreen
  LockPubScreenList
  MakeClass
  MakeScreen
  ModifyIDCMP
  ModifyProp
  MoveScreen
  MoveWindow
  MoveWindowInFrontOf
  NewModifyProp
  NewObject
  NextObject
  NextPubScreen
  ObtainGIRPort
  OffGadget
  OffMenu
  OnGadget
  OnMenu
  OpenScreen
  OpenScreenTagList
  OpenWindow
  OpenWindowTagList
  OpenWorkBench
  PointInImage
  PrintIText
  PubScreenStatus
  QueryOverscan
  RefreshGList
  RefreshGadgets
  RefreshWindowFrame
  ReleaseGIRPort
  RemakeDisplay
  RemoveClass
  RemoveGList
  RemoveGadget
  ReportMouse
  Request
  ResetMenuStrip
  RethinkDisplay
  ScreenDepth
  ScreenPosition
  ScreenToBack
  ScreenToFront
  ScrollWindowRaster
  SetAttrsA
  SetDMRequest
  SetDefaultPubScreen
  SetEditHook
  SetGadgetAttrsA
  SetMenuStrip
  SetMouseQueue
  SetPointer
  SetPrefs
  SetPubScreenModes
  SetWindowPointerA
  SetWindowTitles
  ShowTitle
  SizeWindow
  SysReqHandler
  TimedDisplayAlert
  UnlockIBase
  UnlockPubScreen
  UnlockPubScreenList
  ViewAddress
  ViewPortAddress
  WBenchToBack
  WBenchToFront
  WindowLimits
  WindowToBack
  WindowToFront
  ZipWindow
Include
GuruMeditation
Docs » Autodocs » intuition.library » SetPrefs

NAME

	SetPrefs -- Set Intuition preferences data.

SYNOPSIS

	Prefs = SetPrefs( PrefBuffer, Size, Inform )
D0 A0 D0 D1
struct Preferences *SetPrefs( struct Preferences *, LONG, BOOL );

FUNCTION

	Sets new preferences values.  Copies the first 'Size' bytes
from your preferences buffer to the system preferences table,
and puts them into effect.
The 'Inform' parameter, if TRUE, indicates that an IDCMP_NEWPREFS
message is to be sent to all windows that have the IDCMP_NEWPREFS
IDCMPFlag set.
It is legal to set a partial copy of the Preferences structure.
The most frequently changed values are grouped at the beginning
of the Preferences structure.
New for V36: A new and more extensible method for supplying
Preferences has been introduced in V36, and relies on file
system notification. The Intuition preferences items rely
also on the IPrefs program. Certain elements of the
Preferences structure have been superseded by this new method.
(Elements are generally superseded as new hardware or software
features demand more information than fits in struct Preferences.
Parts of struct Preferences must be ignored so that applications
calling GetPrefs(), modifying some other part of struct Preferences,
then calling SetPrefs(), don't end up truncating the extended
data).
Pointer Preferences: Starting with V36, pointer changes
submitted through SetPrefs() are only heeded until the first
time IPrefs informs Intuition of a V36-style pointer preferences
file. In V39 and higher, only the pointer from the initial
SetPrefs() (i.e. devs:system-configuration) is heeded.
Palette Preferences: Starting with V39, color changes submitted
through SetPrefs() are ignored after the first time IPrefs sends
Intuition new style palette preferences.
FontHeight and LaceWB: These are only respected from
devs:system-configuration.
View centering and size: Changes to ViewX/YOffset and
Row/ColumnSizeChange only apply to the default monitor
(NTSC or PAL), and not to other monitors such as Productivity.
Other fields may be superseded in the future.

INPUTS

	PrefBuffer = pointer to the memory buffer which contains your
desired settings for Intuition preferences
Size = the number of bytes in your PrefBuffer, the number of bytes
you want copied to the system's internal preference settings
Inform = whether you want the information of a new preferences
setting propagated to all windows.

NOTES

	Unless you are responding to a user's explicit request to
change Preferences (for example, you are writing a Preferences
editor), you should probably avoid using this function.
The user's Preferences should be respected, not overridden.

RESULT

	Returns your parameter PrefBuffer.

BUGS

SEE ALSO

GetDefPrefs(), GetPrefs()

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Fairlight

FLT
HZ
TBL
RZR

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se