Tuto WEBDEV 25
446 Part 13: The WLanguage basics Remark Several functions and properties are available in WLanguage. The functions can accept parameters and they return results. The properties are directly applied to the controls via the following syntax: <Control name>..<Property name> In our example, ..Visible is used on the BTN_Close control. The online help of a function or property can be displayed at any time by pressing F1. See How to access the online help? for more details. 4. Close the code window (click X at the top right corner of code editor). ▶ Let’s now run the page test: 1. Click among the quick access buttons (or press F9). 2. In the page in execution, click the check box. The "Close" button becomes visible. 3. Click the "CLOSE" button: the browser tab is closed and the page editor is displayed. Remark Depending on your browser configuration, a window may appear asking for confirmation to close the browser. Creating the page controls for the conditional SWITCH statement Two controls must be created: • a Radio Button control used to select the value to check. • a Button control used to run the test. ▶ To create the Radio Button control: 1. On the "Creation" pane, in the "Usual controls" group, click "Radio button". 2. Click inside the page to create the control (on the right of the Check Box control created beforehand for example). 3. Display the popup menu of the control (right mouse click) and select "Description". 4. In the "Content" tab, add two new options by clicking the button .
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==