|
|
|
|
- Associating WLanguage code with the left button
LeftButton (Property) In french: BoutonGauche
The LeftButton property gets and sets the characteristics of a button located on the left side of an Edit control. This button corresponds to a clickable image. EDT_Edit.LeftButton.Image = IMG_Plus
EDT_Edit.LeftButton.NbState = 5
EDT_Edit.LeftButton.Monochrome = False
EDT_Edit.Process[trtClickButtonEditControlLeft] = MyProcedure
Syntax
Getting the characteristics of a button on the left of an Edit control Hide the details
<Result>=<Edit control>.LeftButton.<Property name>
<Result>: Type corresponding to the property Result corresponding to the property used. <Edit control>: Control name Name of the Edit control used. <Property name>: Name of the applied property:
| | | Property | Type | Description |
---|
Height | Integer | Height of the clickable image in the input area, expressed in pixels. | Image | String, memo | Image used as the button in the input area. | Margin.Bottom | Integer | Bottom margin of the clickable image, expressed in pixels. | Margin.Left | Integer | Left margin of the clickable image, expressed in pixels. | Margin.Right | Integer | Right margin of the clickable image, expressed in pixels. | Margin.Top | Integer | Top margin of the clickable image, expressed in pixels. | Margin.Value | Integer | - Value of the top, bottom, right and left margins expressed in pixels, if these values are the same,
- -1 if the margins are not identical.
| Monochrome | Boolean | - if the image must be monochrome,
- False otherwise.
| NbState | Integer | Number of image states. | Visible | Boolean | - True if the clickable image is visible at runtime,
- False otherwise.
| Width | Integer | Width of the clickable image in the input area, expressed in pixels. |
Setting the characteristics of a button on the left of an Edit control Hide the details
<Control used>.LeftButton.<Property name> = <New value>
<Control used>: Control name Name of the control used. <Property name>: Name of the property to be applied:
| | | Property | Type | Description |
---|
Height | Integer | Height of the clickable image in the input area, expressed in pixels. | Image | String, memo | Path to the image used as button in the input area. | Margin.Bottom | Integer | Bottom margin of the clickable image, expressed in pixels. | Margin.Left | Integer | Left margin of the clickable image, expressed in pixels. | Margin.Right | Integer | Right margin of the clickable image, expressed in pixels. | Margin.Top | Integer | Top margin of the clickable image, expressed in pixels. | Margin.Value | Integer | Value of the top, bottom, right and left margins, expressed in pixels. Sets all margin properties if the values are the same. | Monochrome | Boolean | - if the image must be monochrome,
- False otherwise.
| NbState | Integer | Number of image states. | Visible | Boolean | - True if the clickable image is visible at runtime,
- False otherwise.
| Width | Integer | Width of the clickable image in the input area, expressed in pixels. |
<New value>: Type corresponding to the property New value for the property. Remarks Associating WLanguage code with the left button To associate WLanguage code with the button located on the left of an Edit control , simply use the Process property with the trtClickButtonEditControlLeft constant.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|