927 new features of WINDEV 27, WEBDEV 27 and WINDEV Mobile 27

GENERATE DIAGRAMS PROGRAMMATICALLY 013 N e w f e a t u r e W D W B WM DIAGRAM EDITOR CONTROL PROGRAMMING: ARRAY OF SHAPES In the code, the diagram is an array of shapes. This array of shapes contains all the shapes and images of the diagram. Each shape includes its coordinates and properties. This makes it easy to edit a diagram, add shapes and images through programming. All the functionalities of the Diagram Editor control are acces- sible in the code. To add a shape to a diagram programmatically, simply add it to the array of shapes: the control will automatically display the shapes. Of course, you can edit or delete a shape. (see examples of code in new feature 020) Benefit provided by this new feature of version 27: A structure adapted to the programming of diagrams 014 N e w f e a t u r e W D W B WM NATIVE TYPES TO HANDLE SHAPES Version 27 includes the necessary WLanguage types to easily program the processes you want. The Diagram native type allows you to handle the whole document. The Diagram has many properties: • dimension • background color • grid • page layout • zoom • ... The native Shape type allows you to handle all the shapes with its numerous properties: X, Y, width, height, text, back- ground color, opacity, shadow, array of links,... Other native types derive from the Shape type: • Rectangle • Triangle • Circle • Polygon • Image • Link • Shape that contains shapes • ... All these types inherit the properties of the Shape type and have specific properties: radius,.... Benefit provided by this new feature of version 27: Types that make programming easier 015 N e w f e a t u r e W D W B WM DIAGRAM EDITOR CONTROL: NEWWLANGUAGE FUNCTIONS New WLanguage functions now allow you to create and handle diagrams by programming: DiagramLoad , DiagramSave , DiagramToImage , DiagramTo- SVG , iPrintDiagram ... Benefit provided by this new feature of version 27: WLanguage evolves 016 N e w f e a t u r e W D W B WM DIAGRAM EDITOR CONTROL: NEW PROPERTIES New WLanguage properties are also introduced to define and configure diagrams programmatically: Zoom , Gridlines , Show/Hide library, modifier and ribbon , paper format ... Benefit provided by this new feature of version 27: Fine-tuning through programming 017 N e w f e a t u r e W D W B WM DIAGRAM EDITOR CONTROL: NEW PROCESSES New events are introduced to manipulate diagrams program- matically. They are added to existing events. • Click in the diagram In this event, you can write the code to create a shape at the click location. • Create a shape This event allows you to be notified when the user creates a shape. • Select a shape This event allows you to be notified when the user selects a shape. • Change shape This event allows you to be notified when the user changes a shape. • Right button This event allows you to be notified when the user presses the right mouse button. It can be used to open a custom context menu, for example. • Move a shape (Drag and Drop) This event allows you to be notified when the user moves a shape. Benefit provided by this new feature of version 27: Easily write code in each event WINDEV 27 WEBDEV 27 WINDEV Mobile 27 New features 8

RkJQdWJsaXNoZXIy NDQ0OA==