Mmoclr

As in PCKLST, may be used to specify colors for various parts of the pick list, although in the GUI mode, the interpretation of color –1 is slightly different. Instead of specifying the current foreground or background color, it specifies the Windows default color for that particular part of the pick list display. (This will result in a typical-looking list box with black text on a white background, while the column headers are gray buttons.) The format of MMOCLR is:

MAP1 MMOCLR

MAP2 BFCLR,B,1,-1    ! Border Foreground (NA in GUI mode)

MAP2 BBCLR,B,1,-1    ! Border Background (NA in GUI mode)

MAP2 TFCLR,B,1,-1    ! Text Foreground (default black)

MAP2 TBCLR,B,1,-1    ! Text Background (default white)

MAP2 AFCLR,B,1,-1    ! Arrow Foreground (NA in GUI mode)

MAP2 ABCLR,B,1,-1    ! Arrow Background (NA in GUI mode)

MAP2 PFCLR,B,1,-1    ! Title Foreground (default black)

MAP2 PBCLR,B,1,-1    ! Title Background (default gray)

MAP2 WFCLR,B,1,-1    ! Warnings & messages Foreground (NA in GUI)

MAP2 WBCLR,B,1,-1    ! Warnings & messages Background    "  "

MAP2 SFCLR,B,1,-1    ! Orig. Status line Foreground      "  "

MAP2 SBCLR,B,1,-1    ! Orig. Status line Background      "  "

MAP2 RFCLR,B,1,-1    ! Reserved (unused) Foreground      "  "

MAP2 RBCLR,B,1,-1    ! Reserved (unused) Background      "  "

 

The individual fields within MMOCLR are shown above initialized to -1, which is what you must do to get default colors, since color 0 is black. (Specifying MMOCLR with all the fields un-initialized will result in a not-very-interesting black on black display.) Note that the colors for individual columns can be overridden using the advanced form of the coldef parameter.

Since the XTREE color scheme is largely standardized by Windows conventions, and may be customized by coldef options, in most cases the MMOCLR parameter is superfluous and may be replaced by a literal 0 in the parameter list, e.g.:

xcall XTREE,srow,scol,answer,array,count,coldef,exitcode,erow,ecol,flags,file,0,xtrctl