QPix Command Reference Image Area |

### QPx_SetAreaFlags

QPx_SetAreaFlags(areaRef; areaFlags):error
| areaRef | Longint | QPix area reference
| areaFlags | Longint | Area flags
| error | Longint | Error result

Configures various options of a QPix plug-in area.

The QPix plug-in area is specified by areaRef. If areaRef is not a valid QPix plug-in area reference, qpx_paramErr is returned.

Parameter areaFlags is a set of flags. Construct it by bitwise "or" of any of the flag constants. Alternatively, you can set or clear individual bits of the areaFlags parameter using 4D's "Bit set" (?+) and "Bit clear" (?-) bitwise operators. Use the flag constants to address specific flags:

qpx_MiniScrollbarsFlag | 1 | Narrower scrollbars
qpx_ModifiableFlag | 2 | Modifiable area content
qpx_TabableFlag | 3 | Tabbable area
qpx_DisplayNaturalSizeFlag | 4 | Display natural size of hi-res images
qpx_HideHorzScrollFlag | 5 | Hide horizontal scrollbar
qpx_HideVertScrollFlag | 6 | Hide vertical scrollbar
qpx_MiniScrollBarsMask | 2 | Mask for mini scrollbar property
qpx_ModifiableMask | 4 | Mask for modifiable area property
qpx_TabableMask | 8 | Mask for tabbable property
qpx_DisplayNaturalSizeMask | 16 | Mask for natural size property
qpx_HideHorzScrollMask | 32 | Mask for hiding horizontal scrollbar
qpx_HideVertScrollMask | 64 | Mask for hiding vertical scrollbar

Example

``Set area to modifiable and use mini scrollbars` `` `C_LONGINT($error)` `C_LONGINT($areaFlags)` `` `$areaFlags:=qpx_ModifiableMask | qpx_MiniScrollBarsMask` `` `$error:=QPx_SetAreaFlags (gQPixArea;$areaFlags)` ``

Related commands

QPx_GetAreaFlags | Returns various configuration options of a QPix plug-in area

QPix © Escape Information Services
Generated by QDoc 2.6 on Thu, 2 May 2002 00:49:55 +0300