ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
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
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 in a Diagram Editor control shows the available preset shapes. This panel is displayed on the left side of the Diagram Editor control.
Example
// The CBOX_Options control includes the following options:
// Library
// Styles
// Toolbar
// Grid
DIAGEDT_Diagram.LibraryPanelVisible = CBOX_Options[1]
DIAGEDT_Diagram.ModifierPanelVisible = CBOX_Options[2]
DIAGEDT_Diagram.ToolbarVisible = CBOX_Options[3]
DIAGEDT_Diagram.GridlinesVisible = CBOX_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 through programming
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: 05/24/2023

Send a report | Local help