Tuto WINDEV 25

Part 2: The WLanguage basics 51 To handle the Character String variables, we are going to create the following window: This window is used to: • find a string inside another one. • compare two strings. ▶ Create a new blank window: 1. Click among the quick access buttons. The window for creating a new element is displayed: click "Window" then "Window". The window creation wizard starts. 2. Select "Blank" and the "Phoenix" skin template. 3. Validate. The window is automatically created in the editor. The window for saving an element is displayed. 4. Specify the element title: "Variables". The element name ("WIN_Variables") is automatically proposed. 5. Click on the "OK" to validate the information displayed in the save window. ▶ To create the edit control containing the string: 1. On the "Creation" pane, in the "Usual controls" group, click . 2. Click the location where the edit control will be created (at the top, in the middle of the window for example). 3. Right-click the control and select "Description". 4.  In the "General" tab, specify: • The control name: "EDT_Text". • The control caption: "Text". 5. Select the "Content" tab. This tab is used to define the default value of edit control. Type "WINDEV is a great tool". 6. Validate the description window. The text typed is directly displayed in the control. ▶ The control content is truncated in the editor. To display the control properly: 1. Select the control. 2. Enlarge the control in width with the sizing handles in order for the content to be entirely displayed.

RkJQdWJsaXNoZXIy NDQ0OA==