|
- Inserting images
- Image height (List Box or Combo Box control)
- Image in the title of a column in a Table control
- Component
gImage (Function) In french: gImage
// Add an image to the title of a column in a Table control TABLE_MyTable.COL_MyColumn..Title = gImage("MyImage.BMP") + "My title"
Syntax <Result>: Character string Sequence of characters in the following format: <Image identifier>, <Drawing rank>. <Image name>: Character string - Name and full (or relative) path of the image to insert. A UNC path can be used.
Name and full path of the image to insert. - Name of Image control containing the image to insert.
Remarks - gImage can be used to insert an image:
- into the title and status bars of a window or into a Static control.
- 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 gImage,
- Describe the background color of the text with gBackground associated with the Transparent constant,
- Display the text.
For example:
ListAdd(LIST_ListView, gImage(ImagePath) + gBackground(Transparent) + gCoord(0, 0) + ... "Text")
Versions 17 and laterIf a row of a Combo Box control displays an image via gImage, when this row is selected, the image is re-used in the main row. New in version 17If a row of a Combo Box control displays an image via gImage, when this row is selected, the image is re-used in the main row. If a row of a Combo Box control displays an image via gImage, when this row is selected, the image is re-used in the main row.
Image height (List Box or Combo Box control) 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 the control was created ("Style" tab of the control description). Component Until version 21, gImage was available in the wdxxxobj component. From version 22, this function is now available in the wdxxxmdl component.
This page is also available for…
|
|
|
| |
| Click [Add] to post a comment |
|
| |
|
| |
| |
| |
| |
| |
| |
| | |
| |