|
|
|
|
|
- Overview
- Retrieving and modifying the caption of the Button control
- Retrieving the caption
- Changing the caption
- Finding out and modifying the state of an On/Off button
- Changing the target of a Button control
- To use a simple target (frame of the frameset for example) in most cases and a new browser in some cases:
- To open a browser in most cases and to use a specific destination in some cases:
- Modifying the image displayed in the Button control
- To change the image of a Button control in browser code
- Properties specific to the management of images in a Button control
Manipulating Button controls programmatically
WINDEV, WINDEV Mobile and WEBDEV allow you to programmatically manipulate Button controls. To do so, use the variable of the Button control in the code. The variable of the Button control: - corresponds to the name of the Button control.
- is initialized with the caption of the Button control.
Retrieving and modifying the caption of the Button control Retrieving the caption To retrieve the caption of the Button control, use the following syntax: - direct syntax:
<Caption> = <Button control>
- using the Caption property:
<Caption> = <Button control>.Caption
<Caption> is Character String variable. Changing the caption To modify the caption of the Button control, use the following syntax: <Button control> = <Caption> <Caption> is Character String variable. Finding out and modifying the state of an On/Off button Changing the target of a Button control Modifying the image displayed in the Button control Properties specific to the management of images in a Button control The following properties are used to programmatically handle the images used in a Button control. | | BackgroundImage | Allows you to find out and modify the image associated with the border of a Button control. | BackgroundImageState | Allows you to find out and modify the number of drawings found in the image associated with the border of a Button control. | Image | Allows you to find out and modify the image of a Button control. | ImageState | Allows you to find out and modify the number of drawings found in the image associated with a Button control. | Pushed | Allows you to find out and modify the state of an on/off Button control (pressed or not). | Value | Allows you to find out and modify the caption of a Button control. |
For a complete list of WLanguage properties that can be used with Button controls, see Button control properties.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|