Important: The information in this document is obsolete and should not be used for new development.
SetDeviceAttribute
To set the attribute bits of aGDevicerecord, use theSetDeviceAttributeprocedure.
PROCEDURE SetDeviceAttribute (gdh: GDHandle; attribute: Integer; value: Boolean);
gdh- A handle to a
GDevicerecord.attribute- One of the following constants, which represent bits in the
gdFlagsfield of aGDevicerecord:CONST {flag bits for gdFlags field of GDevice record} gdDevType = 0; {if bit is set to 0, graphics } { device is black and white; } { if set to 1, device supports } { color} burstDevice = 7; {if bit is set to 1, device } { supports block transfer} ext32Device = 8; {if bit is set to 1, device } { must be used in 32-bit mode} ramInit = 10; {if bit is set to 1, device has } { been initialized from RAM} mainScreen = 11; {if bit is set to 1, device is } { the main screen} allInit = 12; {if bit is set to 1, all } { devices were initialized from } { 'scrn' resource} screenDevice = 13; {if bit is set to 1, device is } { a screen} noDriver = 14; {if bit is set to 1, GDevice } { record has no driver} screenActive = 15; {if bit is set to 1, device is } { active}
value- A value of either 0 or 1 for the flag bit specified in the
attributeparameter.DESCRIPTION
For the graphics device specified in thegdhparameter, theSetDeviceAttributeprocedure sets the flag bit specified in theattributeparameter to the value specified in thevalueparameter.SPECIAL CONSIDERATIONS
Your application should never directly change thegdFlagsfield of theGDevicerecord; instead, your application should use only theSetDeviceAttributeprocedure.The
SetDeviceAttributeprocedure may move or purge memory blocks in the application heap. Your application should not call this procedure at interrupt time.