PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
WinChangeLayout (Function)
In French: FenChangeAgencement
Applies a specific layout to:
  • a window.
  • Versions 22 and later
    an internal window.
    New in version 22
    an internal window.
    an internal window.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 22 and later
WINDEVWindows This function is now available for the WINDEV applications in Windows.
New in version 22
WINDEVWindows This function is now available for the WINDEV applications in Windows.
WINDEVWindows This function is now available for the WINDEV applications in Windows.
Example
// Forces the use of first layout if the width of screen is set to 320
IF MySelf..Width = 320
WinChangeLayout(1)
END
Syntax

Forcing the layout on the current window Hide the details

WinChangeLayout(<Layout Number>)
<Layout Number>: Integer
Number of the layout to apply.
Versions 22 and later

Forcing the layout on a specific window Hide the details

WinChangeLayout(<Window> , <Layout Number>)
<Window>: Character string (with or without quotes)
Name of window or internal window to use.
<Layout Number>: Integer
Number of the layout to apply.
New in version 22

Forcing the layout on a specific window Hide the details

WinChangeLayout(<Window> , <Layout Number>)
<Window>: Character string (with or without quotes)
Name of window or internal window to use.
<Layout Number>: Integer
Number of the layout to apply.

Forcing the layout on a specific window Hide the details

WinChangeLayout(<Window> , <Layout Number>)
<Window>: Character string (with or without quotes)
Name of window or internal window to use.
<Layout Number>: Integer
Number of the layout to apply.
Remarks
  • The layout number is specified in the title bar of layout.
  • The sizes, positions and visibility of the controls are modified according to the layout defined during editing.
  • The initial layout is automatically chosen according to the platform, the orientation and the size of the screen.
  • The layout used is automatically modified when the device switches from portrait mode to landscape mode.
  • Versions 23 and later
    This function does not trigger the "Changing layout" process of window. To force the execution of this process, use ExecuteProcess associated with the trtChangeLayout constant.
    New in version 23
    This function does not trigger the "Changing layout" process of window. To force the execution of this process, use ExecuteProcess associated with the trtChangeLayout constant.
    This function does not trigger the "Changing layout" process of window. To force the execution of this process, use ExecuteProcess associated with the trtChangeLayout constant.
Components
WINDEVReports and Queries wd230obj.dll
Windows Mobile wp230obj.dll
Android wd230android.jar
Minimum required version
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment