ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
<diagLibrary variable>.LoadLibrary (Function)
In french: <Variable diagBibliothèque>.ChargeBibliothèque
Loads a diagram file and creates a library of preset shapes from it.
Example
// Ajout d'une nouvelle bibliothèque
MaBibli est un diagBibliothèque
MaBibli.ChargeBibliothèque("Mobilier01.wddiag")
MaBibli.Nom = "Mobilier"
EDIAG_Diagramme.Bibliothèque.Ajoute(MaBibli)
sFichier est une chaîne = fRepTemp() + [ fSep ] + "bibli_perso.wddiag"
 
// Crée une bibliothèque entièrement par programmation
BibliTemp est un Diagramme
 
D1 est un diagOvale
D1.Largeur = 50
D1.Hauteur = 50
D1.Fond.Couleur = RougeFoncé
Ajoute(BibliTemp.Forme, D1)
 
D2 est un diagOvale
D2.Largeur = 50
D2.Hauteur = 70
D2.Fond.Couleur = VertFoncé
Ajoute(BibliTemp.Forme, D2)
 
// Utilise les formes du diagramme temporaire pour créer la bibliothèque
// Sauve le diagramme sur le disque
BibliTemp.Sauve(sFichier)
 
// Charge le diagramme en tant que bibliothèque
MaBibli est un diagBibliothèque
MaBibli.ChargeBibliothèque(sFichier)
MaBibli.Nom = "Perso"
 
// Ajoute la bibliothèque au champ Editeur de diagrammes
Ajoute(EDIAG_Diagramme.Bibliothèque, MaBibli)
 
ToastAffiche("La bibliothèque personnelle a été ajoutée dans la liste.")
Syntax
<Result> = <Library>.LoadLibrary(<File>)
<Result>: Boolean
  • True if the library has been loaded,
  • False otherwise. ErrorInfo returns more details about the error.
<Library>: diagLibrary variable
Name of the diagLibrary variable into which the file corresponding to the library must be imported.
<File>: Character string
Full path of the diagram file corresponding to the library to be imported. This file corresponds to a diagram previously saved with <Diagram editor>.Save.
Remarks
  • A library corresponds to a diagram file created with <Diagram editor>.Save (".wddiag" file).
  • <diagLibrary variable>.LoadLibrary transforms a diagram into a library of preset shapes that can be displayed in the left panel of the Diagram Editor control.
  • To use only your custom libraries, delete the default libraries. To do so, use <Array>.DeleteAll on the array of libraries of the diagram. Example:
    EDIAG_Diagramme.Bibliothèque.SupprimeTout()
Component: wd280mdl.dll
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment