|
|
|
|
|
LibraryPanelVisible (Property) In french: PanneauBibliothèqueVisible
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.
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"
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)
DiagramSave(TempLibrary, sFile)
MyLibrary is diagLibrary
DiagramLoadLibrary(MyLibrary, sFile)
MyLibrary.Name = "Custom"
Add(DIAGEDT_Diagram.Library, MyLibrary)
ToastDisplay("The custom library has been added to the list.")
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|