PC SOFT

WINDEV的在线文档

  • Inserting images
  • Height of the image
  • Image in the title of a table column
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Inserts an image into an element of a List Box or Combo Box control. The inserted image can be:
例子
WinDev用户代码(MCU)
// Add the "C:\MyImages\Image.BMP" image into the "LIST_Customer" control
列表添加LIST_Customer图示图片"C:\MyImages\Image.BMP"))

// Add an image made of several drawings
// Split into 10 rows and 2 columns
// Load the "C:\MyImages\DecImage.BMP" image in memory
加载图片IDImage"C:\MyImages\DecImage.BMP"102
对于DrawingRank1直到10*2
列表添加LIST_Customer图示图片IDImageDrawingRank))
结束

// Add an image into the title of a table column
TABLE_MyTable.COL_MyColumn..标题=图示图片"MyImage.BMP")+"My title"

语法

Inserting a standard image 隐藏详细信息

<Result> = 图示图片(<Image Name>)
<Result>: Character string
Control string in the following format: <Image Identifier>, <Drawing Rank>. This control string must be used in 列表添加, 列表插入数据 or 列表修改.
<Image Name>: Character string
  • Name and full (or relative) path of the image to insert. A UNC path can be used.
  • Name of an Image control containing the image to insert.
WinDev用户代码(MCU)

Inserting an image made of several drawings 隐藏详细信息

<Result> = 图示图片(<Image Identifier> , <Drawing Rank>)
<Result>: Character string
Control string in the following format: <Image Identifier>, <Drawing Rank>. This control string must be used in 列表添加, 列表插入数据 or 列表修改.
<Image Identifier>: Integer
Identifier of the image (included between 1 and 9) corresponding to the identifier of the image cut and loaded in memory by 加载图片 or 加载图片板.
<Drawing Rank>: Integer
Number of the drawing cut. The set of drawings constitutes the image. This number is included between 1 and the result of the multiplication performed between <Number of Columns> and <Number of Rows> used in 加载图片 or 加载图片板.

注意

Inserting images

  • 图示图片 can be used to insert an image into the title bars and status bars of a window or into a Static control.
  • 图示图片 can be used to insert an image into a Table control. In this case, the image must be inserted into a text column.
  • To display a text over an image:
    • insert an image with 图示图片,
    • describe the background color of the text with 图示背景 associated with the 透明 constant,
    • display the text.
      For example:
      列表添加LIST_ListView图示图片ImagePath)+图示背景透明)+"Text"
  • 17版本和更高版本
    If a row found in a Combo Box control displays an image via 图示图片, when this row is selected, the image is re-used in the main row.
    17新版本
    If a row found in a Combo Box control displays an image via 图示图片, when this row is selected, the image is re-used in the main row.
    If a row found in a Combo Box control displays an image via 图示图片, when this row is selected, the image is re-used in the main row.

Height of the image

The height of the image displayed in an element of a List Box or Combo Box control is truncated to the number of pixels specified when creating the control ("Style" tab in the control description).

Image in the title of a table column

..标题图片 is used to include an image into the title of a table column.

组件
WinDev wd200obj.dll