|
|
|
|
|
- Overview
- The different parts of the window description
- 1. The characteristics of the window
- 2. Description of the buttons
- 3. Code of the buttons
MDL file (kept for backward compatibility): Describing the window
Advertencia
A partir de la versión 2024, está funcionalidad no estará disponible.
The MDL file is the file used to generate a RAD window. This file contains the entire description of the pattern to generate. This description is made of two distinct parts: - the description of the pattern,
- the description of the window.
This help page only presents the code used to describe the window. To present this code in details, the script of a Form.mdl pattern is used. ATTENTION: In version 12, the RAD has been completely redesigned.. MDL files are kept for backward compatibility. For more details, see New RAD patterns. The different parts of the window description 1. The characteristics of the window ############################################################## # # F I C H E # ############################################################### ############################################################### # # Description de partie fiche # ############################################################### [ZoneFiche] ############################# Fichier=A NomZone=Fiche DescZone=Choisissez le fichier ou la requête associé à la fenêtre Coord=6,6,200,500 TYPEFIC=SaufRelation The different elements used in this code are as follows: | | [FormArea] | Marks the beginning of the section for describing the window | File | File associated with the area (the window in this case) | AreaName | Name of the area | AreaDesc | Descriptive sentence used to choose the element associated with the window | Coord | Coordinates of the area, specified in the following format: <X>, <Y>, <Width>, <Height> | FileType | Type of accepted files: All, Relation, ExceptRelation |
2. Description of the buttons ############################################################## # # Description des boutons de validation associés à la fiche # ############################################################## [ZoneBouton] ############################# NomZoneAssoc=Fiche Coord=212,6,80,54 AUTOEXTENSION=4 NomZone=Bouton_Fiche_Modif ############################# # Bouton de modification ############################# BOUTON=OK,OK,Validation,GP_MODIF,BoutonOK BOUTON=Annuler,Annuler,Abandon,GP_MODIF,BoutonAnnuler The different elements used in this code are as follows: | | [ButtonArea] | Marks the beginning of the section for describing the window buttons | NameAssocArea | Indicates the name of the control area associated with the button area | %ifdef | Signals the beginning of a conditional code. The entire statement is as follows:
%ifdef .... %else %endif | Coord | Coordinates of the button area, specified in the following format: <X>, <Y>, <Width>, <Height> | AUTOEXTENSION | The area can be enlarged: 1. Vertical move 2. Vertical enlargement 4. Horizontal move 8. Horizontal enlargement | AreaName | Name of the button area | BUTTON | Description of one of the buttons: Name of the button, caption, type of the button, associated group, associated style in the skin template of the project. This style must be selected among the following styles:
| | | NewButton | ModifyButton | DeleteButton | CloseButton | BrowseButton | FirstButton | PreviousButton | NextButton | LastButton | PrintButton | VisionButton | |
|
3. Code of the buttons ############################# # code du bouton OK ############################# CodeBouton=Debut,OK %define PCODE Clic %ifdef PROC @// indique que la fiche n'est plus modifiée gbFenetreModifiee = gbFenetreModifiee OU MaFenetre..Modifié MaFenetre..Modifié=faux // selon le mode de la fenêtre SELON Gauche(ExtraitChaîne(gModeFenetre,1,"="),8) // mode création CAS "Création" // Mise en place de l'enregistrement et validation SI RADEnregistre() ALORS @ %ifdef SQL @ // ajout de l'enregistrement SI PAS HExecuteRequete({RAD_REQ_INSERT_A},hRequeteDefaut, ... @ %repeat XXXX @ {RAD_RUB_A},... @ %endrep @ {RAD_DERNIER_RUB_A}) ALORS Info("Impossible d'ajouter un enregistrement"+RC+HErreurInfo()) ...
@ %endif %enddef PCODE Code=Fin The different elements used in this code are as follows: | | ButtonCode=Beginning,OK | Marks the beginning of the code for the OK button. The end of the code is signaled by Code=End | %Repeat | Signals a repetition in the name of the items to insert. In our example, all the items selected by the user are inserted into the code. The last item is indicated by the RAD_LAST_ITEM_A variable.
SI PAS HExecuteRequete ({RAD_REQ_INSERT_A},hRequeteDefaut,... @ %repeat XXXX @ {RAD_RUB_A},... @ %endrep @ {RAD_DERNER_RUB_A}) ALORS |
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|