ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The property LibraryPanelVisible property:
  • determine if the "Library" panel is displayed in a Diagram Editor control.
  • show or hide the "Library" panel in a Diagram Editor control.
Reminder: The "Library" panel of a Diagram Editor control corresponds to the panel displaying predefined shapes that can be used in the Diagram Editor control. This panel is displayed on the left side of the Diagram Editor control.
Example
// Le champ Interrupteur INT_Options propose les options suivantes : 
// Bibliothèque
// Styles
// Barre d'outils
// Grille
EDIAG_Diagramme.PanneauBibliothèqueVisible = INT_Options[1]
EDIAG_Diagramme.PanneauModifieurVisible = INT_Options[2]
EDIAG_Diagramme.BarreOutilsVisible = INT_Options[3]
EDIAG_Diagramme.QuadrillageVisible = INT_Options[4]
Syntax

Determining if the "Library" panel is displayed Hide the details

<Result> = <Diagram Editor control>.LibraryPanelVisible
<Result>: Boolean
  • True if the "Library" panel is visible,
  • False otherwise.
<Diagram Editor control>: Control name
Name of the Diagram Editor control used.

Showing or hiding the "Library" panel Hide the details

<Diagram Editor control>.LibraryPanelVisible = <Display>
<Diagram Editor control>: Control name
Name of the Diagram Editor control used.
<Display>: Boolean
  • True to show the "Library" panel,
  • False otherwise.
Remarks
The "Library" panel allows you to display preset or custom libraries. Custom libraries can be created and displayed using the following code:
sFichier is string = fTempDir() + [ fSep ] + "bibli_perso.wddiag"

// Crée une bibliothèque entièrement par programmation
BibliTemp is Diagram

D1 is diagOval
D1.Width = 50
D1.Height = 50
D1.Background.Color = DarkRed
Add(BibliTemp.Shape, D1)

D2 is diagOval
D2.Width = 50
D2.Height = 70
D2.Background.Color = DarkGreen
Add(BibliTemp.Shape, D2)

// Utilise les formes du diagramme temporaire pour créer la bibliothèque
// Sauve le diagramme sur le disque
DiagramSave(BibliTemp, sFichier)

// Charge le diagramme en tant que bibliothèque
MaBibli is diagLibrary
DiagramLoadLibrary(MaBibli, sFichier)
MaBibli.Name = "Perso"

// Ajoute la bibliothèque au champ Editeur de diagrammes
Add(EDIAG_Diagramme.Bibliothèque, MaBibli)

ToastDisplay("La bibliothèque personnelle a été ajoutée dans la liste.")
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/10/2025

Send a report | Local help