SCRSTS.SBX 1.3(108), A-Shell’s scrolling status window handler, now supports an option to use XTREE rather than INFLD to display the scrolling status window. To specify XTREE, you must set the MBF_LISTBOX bit in the SFLAGS parameter when creating the scrolling status window. An optional new parameter allows you to specify an XTREE column definition string:
xcall SCRSTS, scrop_init, srow, scol, erow, ecol{,parentid, sflags, title, closecmd$, coldef$}
The rest of the SCRSTS opcode formats are unchanged.
Although the XTREE version actually has more overhead (XTREE is a vastly more complex control than the multi-line edit control used by INFLD), here are some of the reasons why you might prefer it:
• | It eliminates the 1600 char limit on the amount of text that can be left in the window. With XTREE, there is essentially no limit. |
• | You can access many of the advanced XTREE features, such as colors, popup menus, columns, even multiple levels. Note, however, that it is up to you to supply a text string (in the SCROP_ADD or SCROP_TMADD calls) that is formatted to match the COLDEF specified with the SCROP_INIT. |
Also note that if any of the column header fields in COLDEF$ are not blank, then the normal column header bar will be displayed. Otherwise it will not (making it more like a typical scrolling status window).
The TSTSCR.BP[907,20] sample program has been updated to allow easy experimentation with the new version.