ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Editors / Window editor and page editor / Page editor / Responsive Web Design
  • Overview
  • How to create a page using WEBDEV's legacy responsive mode
  • Implementation
  • Creating a page in legacy responsive mode
  • Implementation
  • The different elements of the editor
  • Creating controls in a page in legacy responsive mode
  • Practical example for using anchors in a page in legacy responsive mode
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Warning
In version 28, the page editing mode initially called "Responsive Web Design: page layout by slice" becomes "Slices (Historical Responsive for compatibility)"..
"Responsive (zoning and layouts)" is now the recommended mode for any new project. For more details, see New edit mode for mobile-friendly websites.
This page is adapted to the new options of version 28.
Overview
Websites can be viewed on a wide range of platforms: mobiles, tablets, PCs, etc.. The browser size changes on each device as well as the space used to display data.
The "Responsive Web Design" method consists in creating a single page that automatically adapts according to the platform used.
WEBDEV allows you to create pages by using the "Responsive Web Design" method and it allows you to optimize the page display on different platforms via several editor features. These pages use WEBDEV's legacy responsive mode.
How to create a page using WEBDEV's legacy responsive mode

Implementation

To create a page using the legacy responsive mode:
Remarks:
Creating a page in legacy responsive mode

Implementation

To create a page using the legacy responsive mode:
  1. Click in the quick access buttons.
    • In the window that appears, click "Page" then "Page".
    • The page creation wizard starts.
  2. Select the type of page to be created: "Blank" and validate.. The page is automatically created and displayed in the editor.
  3. Display the page description window: In the "Page" pane, in the "Description" group, click on "Description"..
  4. On the "General" tab, go to "Edit mode" and select "Slices (legacy Responsive mode)".
  5. Confirm changes and close the description window.
  6. The different slices appear in the editor. The default mode is "Desktop First - Edit in max. size".
  7. Configure the responsive editing mode:
    • Right-click the "Desktop (default)" header to open the context menu.
    • This menu allows you to set the propagation order of overrides. The different options are as follows:
      • Desktop First - Minimal size edition: The page is defined in its widest version Desktop which serves as a reference, then decreases to the lower slices Tablet and Mobile. Each slice will be edited in its minimum size. Thus, when the Tablet slice is selected, the editing area will be the Mobile slice, which is the smallest size in the Tablet slice.
      • Desktop First - Max size edition: The page is defined in its widest version Desktop which serves as a reference, then decreases to the lower slices Tablet and Mobile. Each slice will be edited in its maximum size. Thus, when the Tablet slice is selected, the editing area will be the Tablet slice, which is the largest size in the Tablet slice. Overrides are propagated
      • Mobile First: The page is defined in its smallest version Mobile which is used as a reference, then we increase towards the higher slices Tablet and Office.
In our example, the page is defined in Desktop First mode.
Remarque: Pages using "Responsive Web Design" mode are in HTML 5.

The different elements of the editor

The page created in "Responsive Web Design" mode is displayed in an editor using specific options (here, page created in "Desktop First: Min size edition" mode):
  • 1. Ribbon with options specific to "Slices".
  • 2. Slice ruler. This bar contains different slices representing the resolutions of the most common devices. These slices can be modified, deleted or added. To display a page in a specific resolution range, simply click the slice header.
  • 3. Browser handle. This manipulate is used to resize the browser in the editor in order to dynamically see how the controls adapt to the browser size. To resize the browser in the editor, simply click and hold the double arrow and move horizontally.
  • 4. Grid (in columns) used to position the controls in the page. This grid is used to simplify the positioning of controls. It has no real existence in the Web page. The grid simplifies the alignment and it allows you to automatically calculate the positioning of controls. This grid can be disabled when moving controls by pressing the Shift key.

Creating controls in a page in legacy responsive mode

  • In legacy responsive mode, controls are automatically created in the largest or smallest slice, according to the Desktop First or Mobile First mode.
  • Some controls are adapted to the legacy responsive mode:
    • The Navigation Bar control.
    • The RepeatString Looper control: adapts the number of columns to the slice.
    • The Table field: adaptation of table columns (masked or not) according to the slice.
    • Dashboard control: adaptation of the number of columns according to the slice.
Practical example for using anchors in a page in legacy responsive mode
We are going to configure the anchors for the following page (our sample page is in Desktop First mode):
The controls have been crated in the page with the default anchoring options.
Let's use the browser handles to see how controls react when the browser is resized.
You will notice that the images found in the 2 controls at the top of the screen are truncated.
If we reduce the browser width even more, the title appears on several lines.
To fix these problems, we are going to improve the anchoring of controls:
  1. Anchoring the Image control at the top left:
    • The "Left" X anchor is retained: the field retains its position proportional to the left edge of the page..
    • The width uses the edit size. Therefore, the control cannot be truncated.
  2. Anchoring the Image control at the top right:
    • X anchor becomes "Right": the field retains its position proportional to the right edge of the page..
    • The width uses the edit size. Therefore, the control cannot be truncated.
  3. Anchoring of title:
    • The X anchor becomes "Centered": the field remains centered on the page regardless of page width..
    • The width uses the edit size. Therefore, the control cannot be truncated or displayed on several lines.
  4. Static Text control and Chart: This control remains unchanged.. The controls are reduced according to the size of the page. The spacing between the Static and Chart controls is proportionally kept (anchor in X to left by default).
The result is as follows:
  • Desktop blade:
  • When resizing (Tablet slice):
Advanced mode: Example of overriding: it is also possible to override the position of the Chart control and Static Text control fields in Mobile mode:
Related Examples:
WW_Overview_Mobile_Application Complete examples (WEBDEV): WW_Overview_Mobile_Application
[ + ] This example is a responsive Web site that presents a Mobile application.
It includes a static page that is entirely responsive.
Minimum version required
  • Version 21
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help