# MX\_SYSBCLR

> [HTML Version](mx_sysbclr.htm)

**xcall MIAMEX, MX\_SYSBCLR, opcode, sysbclr \{,syswinc, systxtc\}**

(Windows and ATE) MX\_SYSBCLR (MIAMEX 91) allows you to assign one of the background color numbers (0-15) to reference the default Windows color for dialog box backgrounds (typically gray). 

This function has both a [subroutine and a print tab implementation](subroutine-print-pairs.md).

**Parameters**

_opcode  _([Num](num.md))

0 (mxop\_get) to query the current system background color number, or 1 (mxop\_set) to set it.

_sysbclr  _([Num](num.md))

will return the currently defined system background color number (for _opcode_ 0), or establish it (for _opcode_ 1).

_syswinc_  (0-7)

applies to one of the background colors in the color palette

_systxtc_  (0-7)

refers to one of the foreground colors.

You can also set this with SET TERM SYSBCOLOR n.

**Comments**

The idea would then be to use Tab(-3,BGCOLOR) to use that color as your background color. The advantage of tying this color number to the Windows system background color instead of just setting it to a specific color, is that then it will automatically change when the Windows desktop color scheme is changed. For example, if the user switches to a "Valentine’s Day" scheme, the cool gray Window backgrounds will all change to pinkish ones.

**See Also**

•	[AG\_SYSBCLR](ag_sysbclr.md)