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 LibrayPanelVisible property is used to:
  • 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 with the code below:
sFile is string = fTempDir() + [ fSep ] + "custom_library.wddiag"

// Creates a library entirely programmatically
TempLibrary is Diagram

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

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

// Use the shapes of the temporary diagram to create the library
// Saves the diagram to the disk
DiagramSave(TempLibrary, sFile)

// Load the diagram as a library
MyLibrary is diagLibrary
DiagramLoadLibrary(MyLibrary, sFile)
MyLibrary.Name = "Custom"

// Adds the library to the Diagram Editor control
Add(DIAGEDT_Diagram.Library, MyLibrary)

ToastDisplay("The custom library has been added to the list.")
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 10/02/2024

Send a report | Local help