Présentation
Documentation
L'équipe
Sérialisation
 
Programmes
Objets
Libs Utilitaires
Libs Internes
   
 
Editeur
Syntaxes
Windows
Versions
   

SCR/AL1 - TOME II. Les Objets

6. PAGE

6.1 Syntaxe d'une PAGE

page_defn ::= {
[CENTER]
[SCREEN screen_defn]
[NOMODIFY] [NOCREATE] [NODELETE] [NOSEARCH]
[NL nn]
[NC nn]
[LINE nn]
[COL nn]
[TITLE "string"]
[FOOTNOTE "string"]
[BOX 2 | 1 | 0]
[BEGIN_FN action_defn]
[END_FN action_defn]
[DISPLAY_FN action_defn]
[RESET_FN action_defn]
[BACKGROUND color]
[WRAP ON | OFF]
[DEFAULTS defaults_defn]
[NODEFAULTS]
[ISAM isam_defn]
[FILL ON | OFF | 'c']
[FNKEY fnkey_defn]
[AUTO]
[COMMENT "comment_text"]
[HELP "topic_name"]
[MENU menu_defn]
[NO_OBJ]
[VIEW_ORDER | NO_VIEW_ORDER]
[SHADOW0] [SHADOW1] [SHADOW2] [SHADOW3] [SHADOW4]
[NOSHADOW]
[FLD_MEM] [DRW_MEM]
[NAME_MEM]

[NO_OBJ | DEF_OBJ]
[CLOSEBOX | NOCLOSEBOX]
[IMPORT_TODAY {YES | NO}]
[IMPORT_REQUIRED {YES | NO}]

[DRAW draw_defn]
[HLINE hline_defn]
[VLINE vline_defn]
["string" draw_text_defn]
[REDRAW redraw_defn]
[ISAM isam_defn]

[GROUP [grp_name] grp_defn]

[WIN_VLINE {YES | NO}]
[WIN_HLINE {YES | NO}]
[WIN_NCP nn]
[WIN_FIXED {YES | NO}]
[WIN_SKIP nn]
[WIN_NLPFLD nn]
[WIN_NLPTXT nn]
[WIN_NLPVLINE nn]
[WIN_NLPHLINE nn]
[WIN_NLPNULL nn]

[FIELD field_defn]
...

}


field_defn ::= [NAME name]
[FORMAT format_defn]
["default_value"]
[TODAY]
[NB_DEC nn]
[FIX_DEC]
[DEL_EOF] [NO_DEL_EOF]
[NL nn] [NC nn]
[NLV nn] [NCV nn]
[LINE nn] [COL nn]
[BEGIN_FN action_defn]
[END_FN action_defn]
[DISPLAY_FN action_defn]
[color]
[WRAP ON | OFF]
[OUTPUT | INPUT | HIDDEN | ACCESSIBLE]
[NATURAL | INTEGER | REAL | TIME | DATE | EDITOR |
STRING | DIR | MENU menu_defn | PASSWD|
CKECKBOX | RADIO]

[UPPER | LOWER]
[ALLOWED "string"]
[CENTER | LJUST | RJUST | SQZ | ASIS]
[NOT_COMPULSORY | COMPULSORY | REQUIRED]
[ISAM isam_defn isam_field_name]
[ISF isam_field_name]
[CODE isam_defn index_name
[CIRC | EQ | GE | LE | GT | LT | NE]
[{field_name ...}]]
[FNKEY fnkey_defn]
[PROMPT "string"]
[NO_OBJ | DEF_OBJ]
[COMMENT "text"]
[HELP "string"]

[TITLE "text"]
[BOX]
[SBAR]
[STBAR]
[FLD_IDX | FLD_COND | FLD_COUNT]
[IF_ALFA action_defn]

[WX [+|-]nn]
[WY [+|-]nn]
[WW [+|-]nn]
[WH [+|-]nn]

defaults_defn ::=
[FORMAT format_defn]
[NOFORMAT]
["default_value"]
[NB_DEC nn]
[FIX_DEC]
[DEL_EOF]
[NL nn] [NC nn]
[NLV nn] [NCV nn]
[LINE nn] [COL nn]
[BEGIN_FN action_defn]
[END_FN action_defn]
[DISPLAY_FN action_defn]
[color]
[WRAP ON | OFF]
[OUTPUT | INPUT | HIDDEN | ACCESSIBLE]
[NATURAL | INTEGER | REAL | TIME | DATE | EDITOR |
STRING | DIR | PASSWD | CKECKBOX | RADIO]

[UPPER | LOWER]
[ALLOWED "string"]
[CENTER | LJUST | RJUST | SQZ | ASIS]
[NOT_COMPULSORY | COMPULSORY | REQUIRED]
[ISAM isam_defn | NO_ISAM]
[NO_OBJ | DEF_OBJ]
[FNKEY [name] fnkey_defn]
[ISF + n]

grp_defn ::= {
TITLE "text"
hot_key
FIELDS {
FIELD field_defn
...
}
}

draw_defn ::= BOX [color] width line col nl nc
| VLINE vline_defn
| HLINE hline_defn
| FILL [color] line col nl nc
| "string" draw_text_defn
| REDRAW redraw_defn

hline_defn ::= [color] width line [col [nc]]
vline_defn ::= [color] width line col [nl]
draw_text_defn ::= [color] line col
redraw_defn ::= [line col nl nc]

color ::= DEFAULT | REVERSE | UNDERLINE | BOLD | INVISIBLE |
BLINKING | DIM | BLUE | GREEN | CYAN | RED |
MAGENTA | YELLOW | WHITE |BLACK

action_defn ::= voir ACTION
isam_defn ::= voir ISAM
menu_defn ::= voir MENU
fnkey_defn ::= voir FNKEY

format_defn ::= voir ISAM

isam_field_name ::= name | nn | isam_field_name + nn
index_name ::= name | nn
nn ::= number

screen_defn ::= {
free text
...
}

Dans free_text on trouve :

$field_spec : champ input
*field_spec : champ output
&field_spec : champ accessible

field_spec ::= name[+nn][)nn]

où +nn prend le champ + nn
)nn ne prend que les nn premiers caractères du champ

Copyright © 1998-2015 Jean-Marc Paul and Bernard PAUL - Envoyez vos remarques ou commentaires à bernard@xon.be