!XTREE.DEF [127] - XTREE definitions !VEDIT=127 ![100] March 10, 2005 10:17 PM Edited by Jack ! Originally defined as MAPs in XTREE.MAP, these are the new ! versions (using underlines); see XTROLD.DEF for old versions ![101] May 13, 2005 04:25 AM Edited by Jack ! Add XTF_TOTALS ![102] May 23, 2005 04:25 AM Edited by Jack ! Add XTF_NOREDRAW ![103] December 02, 2005 04:05 PM Edited by joaquin ! Add XTF_ENTESC ![104] May 16, 2006 05:30 PM Edited by joaquin ! Add XTF_DRAGDROP ![105] August 29, 2006 08:12 AM Edited by joaquin ! Add XTF_SPLIT ![106] December 6, 2006 08:12 AM Edited by joaquin ! Add XTF_NOZEROEX ![107] August 15, 2007 12:12 PM Edited by joaquin ! Transfer XTROP_xxx, XTRSEL_xxx symbols here from ASHELL.DEF ![108] February 20, 2008 11:02 AM Edited by joaquin ! Add XTROP_PRINT ![109] July 9, 2008 05:17 PM Edited by joaquin ! Add XTRSEL_STY_ALL_GRAD, XTRSEL_STY_CELL1T_GRAD, ! XTRSRCH_xxx (XTR'SEARCHMODE symbols), XTRGRID_xxx ![110] September 7, 2008 10:35 AM Edited by joaquin ! Add VERSYS ![111] October 3, 2008 08:16 AM Edited by joaquin ! Add XTUCFG_xxx flags for XTR'USRCFG ![112] January 1, 2009 09:24 PM Edited by joaquin ! Add XTRSEL_STY_NONE, ++ifnmap condition ![113] January 8, 2009 04:04 PM Edited by joaquin ! Add XTEXPF_SAVE, XTEXPF_RESTORE ![114] February 25, 2009 11:20 PM ! Add MAX_XTREE_COLS ![115] March 15, 2009 03:47 PM Edited by jacques ! Add XTHSF_xxx flags for HEADERSTYLE, XTNFS_xxx NFSELSTYLE flags ![116] April 19, 2009 01:29 PM Edited by jacques ! Add XTF2_HOME_CTRL, XTF2_END_CTRL, XTF2_NAVCOL ![117] May 22, 2009 10:00 AM Edited by jacques ! Add XTHSF_NOHIGHTLIGHT ![118] June 3, 2009 10:00 AM Edited by jacques ! Add XTRHF_xxx, XTMF_xxx ![119] June 5, 2009 10:31 AM Edited by jacques ! Add XTMF_TRUNCATED ![120] July 21, 2009 07:31 PM Edited by jacques ! Add XTF2_xxx flags ![121] August 7, 2009 04:10 PM Edited by jacques ! Add XTF2_AUTOEXPCOL flags ![122] August 14, 2009 04:35 PM Edited by jacques ! Add XTF2_CSV2 flags ![123] January 20, 2010 10:31 AM Edited by jacques ! Add XTF2_DOWN, XTF2_PGUPDN ![124] February 24, 2010 9:31 AM Edited by jacques ! Add NUL_XFILE$, NUL_MMOCLR ![125] June 23, 2010 11:31 AM Edited by jacques ! Add XTUCFG_FONT ![126] November 2, 2010 3:01 PM Edited by jacques ! Add XTUCFG_COLSRT,XTUCFG_COLACT, redefine XTUCFG_SRTORD ![127] November 12, 2010 10:39 AM Edited by jack ! Add XTF2_CLRDEFER (clear deferred events), ! XTF2_NORECOLDEF (don't reprocess COLDEF if it hasn't changed) ! !------------------------------------------------------------------------ ++ifnmap VERSYS_XTREE_DEF ! [112] ![110] This is the only map statement here ![110] VERSYS_XTREE_DEF needs to be a map so it is included in the run ![110] (to be displayed with VERSYS.LIT) map1 VERSYS_XTREE_DEF,s,40,">>@VERSYS(1)->>xtree.def[127]" define MAX_XTREE_COLS = 80 ! [114] ! XTREE FLAGS (combine as many as apply) define XTF_FKEY = &h00000001 ! Allow F1-F16 (1) ! (return EXITCODES -1 thru -16) define XTF_LEFT = &h00000002 ! Left arrow (Exitcode -40) (2) define XTF_RIGHT = &h00000004 ! Right arrow (Exitcode -41) (4) define XTF_UP = &h00000008 ! Up arrow (Exitcode -42) (8) define XTF_TAB = &h00000020 ! TAB (Exitcode -44) (32) define XTF_HOME = &h00000040 ! Right arrow (Exitcode -45) (64) define XTF_END = &h00000080 ! Right arrow (Exitcode -46) (128) define XTF_NOAS = &h00000100 ! Disable auto-shrink of box height (256) ! (Always active in GUI mode) define XTF_ENTESC = &h00000100 ! In edit mode, ENTER exits xtree from ! last cell, and ESC doesn't cancel cell edit define XTF_MODELESS = &h00000200 ! Leave box on screen after exit define XTF_TIMOUT = &h00000400 ! 200 sec timeout (auto ESC) define XTF_FST = &h00000800 ! Fast mode (text mode only) define XTF_FCOLDEF = &h00001000 ! In file mode, first row is ! interpreted as simple coldef syntax define XTF_XYXY = &h00002000 ! Alt. coordinate semantics ! (first pair is upper left row,col) ! (second pair is lower right row,col) define XTF_SORT = &h00004000 ! Allow column sorting define XTF_REORD = &h00008000 ! Allow reordering of columns define XTF_MSEL = &h00010000 ! Multi-selection (array mode only) define XTF_MLVL = &h00020000 ! Multi-level (parent/child) rows ! Set automatically if first col ! defined as type @ in COLDEF define XTF_COLDFX = &h00040000 ! COLDEF param uses complex syntax define XTF_VARY = &h00080000 ! Vari. ht rows (see XTR_ITEMLINES) define XTF_NOSEL = &h00100000 ! Exit immediately (use with MODELESS) define XTF_DISABLE = &h00200000 ! Disable control on exit (use only ! with XTF_MODELESS) define XTF_DEL = &h00400000 ! DEL (Exitcode -47) define XTF_FILANS = &h00800000 ! In file mode, use ANSWER param ! as in array mode. define XTF_CTRLC = &h01000000 ! ^c returns exitcode 10 (instead of 1) define XTF_EDITABLE = &h02000000 ! list contains editable text ! or checkbox column(s) define XTF_TOTALS = &h04000000 ! [101] last line of data is a totals line define XTF_NOREDRAW = &h08000000 ! [102] don't redraw on opcode 4 define XTF_DRAGDROP = &h10000000 ! [104] allow drag/drop define XTF_SPLIT = &h20000000 ! [105] split mode define XTF_NOZEROEX = &h40000000 ! [106] don't allow exit with exitcode 0 ! [116] bits in 2nd bank of flags (see ST_XFLAGS in XTREE.SDF) ! [116] XTF2_xxx_CTRL: if XTF_xxx set,, then XTF_xxx_CTRL means that the xxx ! [116] key will exit w/o requiring Control+. Otherwise, xxx moves to ! [116] first/last row and Control+HOME/END exits. ! [116] But if XTF_xxx not set, then XTF_xxx_CTRL causes HOME/END to ! [116] move to first/last column, and Control+HOME/END to first/last row define XTF2_HOME_CTRL = &h00000001 ! [116] exit on HOME w/o CTRL+ define XTF2_END_CTRL = &h00000002 ! [116] exit on END w/o CTRL+ define XTF2_NAVCOL = &h00000003 ! [116] combo of above for edit/nav define XTF2_PORTRAIT = &h00000004 ! [120] portrait printing define XTF2_LANDSCAPE = &h00000008 ! [120] landscape printing define XTF2_AUTOEXPCOL= &h00000010 ! [121] auto expand cols to fill tree define XTF2_CSV = &h00000020 ! [122] CSV input define XTF2_PGUPDN = &h00000040 ! [123] Enable PgUp/PgDn (exitcodes 4, 6) define XTF2_DOWN = &h00000080 ! [123] Enable Ctrl+Down on last row (exitcode -43) define XTF2_CLRDEFER = &h00000100 ! [127] Clear (ignore) prior deferred events define XTF2_NORECOLDEF= &h00000200 ! [127] Don't reproc coldef if no chg or "" ! *** [107] XTREE XTR'SELECTAREA symbols ! (define where you can click to select an item) define XTRSEL_AREA_ANY = &h0000 ! click anywhere on row define XTRSEL_AREA_CELLS = &h0001 ! click on any cell on row define XTRSEL_AREA_CELL1 = &h0002 ! click first cell only define XTRSEL_AREA_CELL1T = &h0003 ! click only text in first cell ! *** [107] more XTR'SELECTAREA symbols ! (define how selected item is highlighted - note that since XTREE is ! not a grid but a tree, it does not offer an option to highlight ! an individual cell; only options are to limit the selection bar to:) define XTRSEL_STY_ALL = &h0000 ! highlight entire row define XTRSEL_STY_CELLS = &h0010 ! highlight all cells of row define XTRSEL_STY_NONE = &h0020 ! no highlight [112] define XTRSEL_STY_CELL1 = &h0030 ! highlight first cell only [140] was 20 define XTRSEL_STY_CELL1T = &h0040 ! highlight only text in first cell define XTRSEL_STY_ALL_GRD = &h0050 ! [109] STY_ALL + gradiant define XTRSEL_STY_CELLS_GRD = &h0060 ! [109] STY_CELLS + gradiant define XTRSEL_STY_CELL1_GRD = &h0070 ! [109] STY_CELL1T + gradiant define XTRSEL_EDIT_KEEP = &h0080 ! [171] keep row sel bar active during editing !*** [107] XTR'OPCODE symbols define XTROP_CREATE = 0 ! add define XTROP_REPLACE = 1 ! replace data define XTROP_APPEND = 2 ! append to existing data define XTROP_DELETE = 3 ! delete xtree define XTROP_RESELECT = 4 ! reselect (existing ctl, data) define XTROP_DELSEL = 5 ! delete selected rows, then resel define XTROP_PRINT = 6 ! print selected control (5.1+) !***[109] XTR'SEARCHMODE symbols define XTRSRCH_TOP_ALL = 0 ! [109] all chars, items, from top define XTRSRCH_TOP_ONE = 1 ! [109] one char, all items, from top define XTRSRCH_NONE = 2 ! [109] no search define XTRSRCH_TOP_ALLX = 3 ! [109] like TOP_ALL but skip collapsed dependents define XTRSRCH_TOP_ONEX = 4 ! [109] like TOP_ONE but " " define XTRSRCH_NXT_ONE = 5 ! [109] like TOP_ONE but start from cur itm, wrap define XTRSRCH_NXT_ONEX = 6 ! [109] like TOP_ONEX but " " " define XTRSRCH_NXT_ALL = 7 ! [109] like TOP_ALL but start from cur item define XTRSRCH_NXT_ALLX = 8 ! [109] like NXT_ALL but skip collapsed dependents !***[109] XTR'GRIDSTYLE symbols define XTRGRID_VERT = 0 ! [109] solid vert lines define XTRGRID_HORZ = 1 ! [109] solid horz lines define XTRGRID_BOTH = 2 ! [109] solid vert & horz lines define XTRGRID_VERT_D0T = 3 ! [109] dotted vert lines define XTRGRID_HORZ_DOT = 4 ! [109] dotted horz lines define XTRGRID_BOTH_DOT = 5 ! [109] dotted vert & horz lines !***[111] XTR'USRCFG symbol (controls which config features from user's !***[111] previous session override parameters passed by application) define XTUCFG_COLWID = &h0001 ! [111] column widths (Dspwid) ![126]define XTUCFG_SRTORD = 2 ! [111] columnactive,columnsort(),sortorder() define XTUCFG_COLSRT = &h0002 ! [125] columnsort(),sortorder() define XTUCFG_COLORD = &h0004 ! [111] colorder() define XTUCFG_FONT = &h0008 ! [125] used saved font define XTUCFG_COLACT = &h0010 ! [126] columnactive (now separate) define XTUCFG_SRTORD = &h0012 ! [126] COLSRT + COLACT define XTUCFG_ALL = &h00FF ! [111] all features available !***[113] XTR'EXPANDLEVEL flags (in addition to values 0-9) define XTEXPF_SAVE = &h40 ! [113] save expand/contract status define XTEXPF_RESTORE = &h80 ! [113] restore status (XTROP_REPLACE) !***[115] XTR'HEADERSTYLE flags (and XTR'ROWHDRSTYLE) define XTHSF_VCENTER = &h00 ! [115] horizontal alignment define XTHSF_TOP = &h01 ! [115] top alignment define XTHSF_BOTTOM = &h02 ! [115] horizontal alignment define XTHSF_NOTBTN = &h20 ! [115] headers are simple titles, not buttons define XTHSF_NOHIGHLIGHT = &h20 ! [117] new name for NOTBTN flag define XTHSF_BTNSTAY = &h40 ! [115] header buttons stay down when clicked (if not NOTBTN) define XTHSF_DISABLED = &h80 ! [115] header disabled, cannot be clicked !***[118] XTR'SHOWROWHDR flags define XTRHF_NONE = 0 ! [118] no row headers define XTRHF_BTNCNT0 = 3 ! [118] numeric buttons, from 0 define XTRHF_TITLECNT0 = 4 ! [118] numeric titles, from 0 define XTRHF_BTNCNT1 = 5 ! [118] numeric buttons, from 1 define XTRHF_TITLECNT1 = 6 ! [118] numeric titles, from 1 !***[115] XTR'NFSELSTYLE flags define XTNFS_GRAY = 0 ! [115] inactive sel bar is gray define XTNFS_BLUE = 1 ! [115] inactive sel bar is blue define XTNFS_FRAME = 2 ! [115] inactive sel bar is frame define XTNFS_NONE = 3 ! [115] no inactive sel bar define XTNFS_NOFOCRECT = &h80 ! [115] don't display focus rect (dotted) !***[118] XTR'MISCFLAGS flags ![119] define XTMF_SHOW3D = &h01 ! [118] 3D mode define XTMF_TRUNCATED = &h01 ! [119] show ... when truncating column define XTMF_INTHEIGHT = &h02 ! [118] make height integral # of rows define XTMF_INHERITBG = &h04 ! [118] left edge inherits 1st col bg ![124] NUL_MMOCLR needs to be a map so it has ams often unneeded define NUL_XFILE$ = "" ! [124] no file param (array mode) define NUL_XMMOCLR = " " ! [124] dummy MMOCLR param ++endif