PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • Defining the image section
  • Limits
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
..ImageWidth is used to find out and modify:
  • the width of the image section that is displayed in an Image control or in the background of a Chart control.
  • Versions 18 and later
    WINDEV the width reserved in a row of a TreeView Table control for the image of a treeview column.
    New in version 18
    WINDEV the width reserved in a row of a TreeView Table control for the image of a treeview column.
    WINDEV the width reserved in a row of a TreeView Table control for the image of a treeview column.
Note: The display mode of the image selected in the description of the Image control will be applied to the image section.
Versions 15 and later
Android This property is now available for the Android applications.
New in version 15
Android This property is now available for the Android applications.
Android This property is now available for the Android applications.
Versions 17 and later
iPhone/iPad This property is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This property is now available for the iPhone/iPad applications.
iPhone/iPad This property is now available for the iPhone/iPad applications.
Example
IMG_ImageControl..XImage = 20
IMG_ImageControl..YImage = 20
IMG_ImageControl..ImageHeight = 40
IMG_ImageControl..ImageWidth = 40
Versions 18 and later
WINDEV
// Reserves 70 pixels for the image of the hierarchy in the 1st row of the treeview table
TVT_FOLDERS[1]..ImageWidth = 70
New in version 18
WINDEV
// Reserves 70 pixels for the image of the hierarchy in the 1st row of the treeview table
TVT_FOLDERS[1]..ImageWidth = 70
WINDEV
// Reserves 70 pixels for the image of the hierarchy in the 1st row of the treeview table
TVT_FOLDERS[1]..ImageWidth = 70
Syntax

Finding out the width of the displayed section Hide the details

<Section width> = <Control name>..ImageWidth
<Section width>: Integer
  • Width (expressed in pixels):
    • of the image section that must be displayed in the Image control.
    • of the image section that must be displayed in the background of the Chart control.
    • Versions 18 and later
      of the area reserved to the image of the hierarchy in a row of a TreeView Table control.
      New in version 18
      of the area reserved to the image of the hierarchy in a row of a TreeView Table control.
      of the area reserved to the image of the hierarchy in a row of a TreeView Table control.
  • -1 in the following cases:
    • the entire image is displayed in the Image control or in the background of the Chart control.
    • Versions 18 and later
      the area reserved to the image of the hierarchy corresponds to the default size.
      New in version 18
      the area reserved to the image of the hierarchy corresponds to the default size.
      the area reserved to the image of the hierarchy corresponds to the default size.
<Control name>: Character string (with or without quotes)
Name of control to use.

Modifying the width of the displayed section Hide the details

<Control name>..ImageWidth = <New width>
<Control name>: Character string (with or without quotes)
Name of control to use.
<New width>: Integer
  • Width (expressed in pixels):
    • of the image section that must be displayed in the Image control.
    • of the image section that must be displayed in the background of the Chart control.
    • Versions 18 and later
      of the area reserved to the image of the hierarchy in a row of a TreeView Table control.
      New in version 18
      of the area reserved to the image of the hierarchy in a row of a TreeView Table control.
      of the area reserved to the image of the hierarchy in a row of a TreeView Table control.
  • -1 in the following cases:
    • to display the entire image in the Image control or in the background of the Chart control.
    • Versions 18 and later
      in order for the area reserved to the image of the hierarchy to correspond to the default size.
      New in version 18
      in order for the area reserved to the image of the hierarchy to correspond to the default size.
      in order for the area reserved to the image of the hierarchy to correspond to the default size.
Remarks

Defining the image section

An Image control is used to display a section of the image found in the associated image file. The following properties are used to define the image section that will be displayed in the Image control:
  • ..XImage: used to define the origin of the image section.
  • ..YImage: used to define the origin of the image section.
  • ..ImageHeight: used to define the height of the image section.
  • ..ImageWidth: used to define the width of the image section.
In this example, the image section included in the red border will be displayed in the Image control.
The display mode of this image section will be the one defined for the Image control.

Limits

In the windows, this property only applies to the following controls:
  • Image control.
  • Chart control.
  • Versions 18 and later
    WINDEV Row of a TreeView Table control.
    New in version 18
    WINDEV Row of a TreeView Table control.
    WINDEV Row of a TreeView Table control.
Java ..ImageWidth only applies to the Image controls.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment