|
|
|
|
- Propiedades específicas de las variables diagLibrary
diagLibrary (Tipo de Variable)
El tipo diagLibrary se utiliza para definir todas las características avanzadas de una biblioteca de formas preestablecidas utilizadas por un editor Diagram control. Las características de esta biblioteca pueden definirse y modificarse mediante diferentes propiedades de WLanguage. Observación: Para obtener más información sobre la declaración de este tipo de variable y el uso de propiedades WLanguage, consulte Declarar una variable. 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.") MyDiagram is Diagram // Populate a Looper control with all the shapes from all the libraries FOR EACH Lib OF MyDiagram.Library FOR EACH Shape OF Lib imgShape is Image = DiagramShapeToImage(Shape) LooperAddLine(LOOP_MyLooper, Lib.Name, imgShape, Shape.Name) END END
Propiedades Propiedades específicas de las variables diagLibrary Las siguientes propiedades se pueden utilizar para las variables manipular diagLibrary: | | | Nombre de la propiedad | Tipo utilizado | Efecto |
---|
denominar | Cadena de caracteres | Nombre de la biblioteca de formas. | Forma | Array de diagShape | Array de formas preestablecidas. |
Observaciones - Por defecto, las bibliotecas de formas se muestran en el panel izquierdo del editor Diagram control.
- La propiedad Biblioteca del control Diagram Editor corresponde a un array de variables de tipo diagLibrary .
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|