926 new features of WINDEV 26, WEBDEV 26 and WINDEV Mobile 26

015 N e w f e a t u r e W D W B WM HTML EDIT CONTROL: SWITCH FROMWYSIWYG MODE TO SOURCE MODE The HTML control allows you to write HTML code in WYSI- WYG mode. For advanced users (or for copy/paste masters), it is possible to switch to source mode at any time, to view HTML tags. This makes it possible, for example, to declare a CSS sheet, insert a particular tag, paste a code snippet... In the source mode, it is also possible to write (or paste) JavaS- cript code. HTML code is stored in UTF-8 format, and is viewed in WYSI- WYG mode. HTML code in source mode Note that accented characters are displayed directly (UTF-8). Benefit provided by this new feature of version 26: WYSIWYG or source mode, it's up to you 016 N e w f e a t u r e W D W B WM HTML EDIT CONTROL: NEWWLANGUAGE FUNCTIONS The HTML Edit control is usually embedded in a window that provides automatic functionalities on the HTML content being entered, often via buttons: insert text defined by program- ming, insert a quote, format and insert data from the current window, insert a signature, insert a logo, position the cursor, preselect text. Several WLanguage functions have been introduced for this purpose in version 26. HTMLEditorFormatSelection: Applies formatting to the se- lected text: bold, italic, underlined, size, font, CSS style... HTMLEditorInsert: Inserts text or HTML code at the cursor position. If a portion of text is selected, it will be replaced. HTMLEditorInsertTable: Inserts an empty table at the cursor position. The number of rows and columns must be specified as parameter. The end user can edit this table using the mouse. HTMLEditorSelect: Positions the cursor. Benefit provided by this new feature of version 26: WLanguage has everything you need 017 N e w f e a t u r e W D W B WM HTML EDIT CONTROL: NEW EVENTS New events are introduced to finely manage this HTML Edit control. • Selection This new event is called each time the user selects an element in the HTML document. The new htmlSelection WLanguage type allows you to get information on the selected elements: selected word... • After loading the page This new event is called once the page has been fully loaded. This is useful, for example, to start an automatic page analysis. • Load resource This new event is called each time the page downloads an element: image, file... It allows you to check and prevent a download if necessary. • Whenever modified This new event is called each time the user makes a modifica- tion in the page: input,etc. Benefit provided by this new feature of version 26: State-of-the-art programming PART 4 NATIVE TYPE TO HANDLE HTML SOURCE 018 N e w f e a t u r e W D W B WM NATIVE PROGRAMMING WLanguage allows you to handle, read and enrich an HTML document by programming, without a UI. Two native types, 2 new functions and 285 new syntaxes (see page 50) allow you to handle HTML source code, build a doc- ument from scratch, modify an existing document, add tags, search and modify content, add images and tables,etc. You can natively access each node in the HTML tree. You can also create or modify JavaScript code in the HTML document. Local CSS styles can also be handled by programming in ver- sion 26. Benefit provided by this new feature of version 26: Hundreds of lines of code saved 019 N e w f e a t u r e W D W B WM 2 NATIVE TYPES TO HANDLE HTML DOCUMENTS Version 26 offers advanced possibilities to handle HTML: 2 WLanguage types are introduced. These native types allow you to perform all operations on ex- Continued from page 6 WINDEV 26 WEBDEV 26 WINDEV Mobile 26 New features 8

RkJQdWJsaXNoZXIy NDQ0OA==