|
ONLINE HELP WINDEV, WEBDEV AND WINDEV MOBILE |
| | | |
|
- Content of Static control
- Equivalence
- Caption associated with a window or with a page
- Caption associated with a Static control, an Edit control, a Combo box, a List box or a Listview
- Caption associated with a table column
- Caption of Check Box or Radio Button control
- Caption of a Check Box column in a Treeview Table control
- Caption associated with an Image control
- Caption associated with a button
- Caption of a Tab control
- Caption of a Site Map Path control
- Differences between WINDEV and WINDEV Mobile: Managing the menu options
- Limits
Caption (Property) In french: Libellé
// Modify the text in the "STC_IntroControl" Static control STC_IntroControl..Caption = "Dear Sir" + Customer.Name // Equivalent to: STC_IntroControl..Caption = "Dear Sir [%Customer.Name%]"
Syntax
Finding out the text of caption associated with an element Hide the details
<Result> = <Element used>..Caption
<Result>: Character string Text displayed in the specified element. <Element used>: Type of element Name of element to use.
Modifying the text of caption associated with an element Hide the details
<Element used>..Caption = <New text>
<Element used>: Type of element Name of element to use. <New text>: Character string New text displayed in the specified element. Remarks Content of Static control To retrieve the value of a control or the value of an item in a Static control: - In the report editor: insert [%<Control name>%] or [%<Item name>%] directly into the caption of the control.
- In programming: two syntaxes are available with ..Caption:
- use directly the [%<Control name>%] or [%<Item name>%] string in the string that corresponds to the caption. For example:
STC_IntroControl..Caption = "Dear Sir [%Customer.Name%]"
- use the name of the control or the name of the item in the caption. For example:
STC_IntroControl..Caption = "Dear Sir" + Customer.Name
Equivalence ..Caption is equivalent to ..Value. To retrieve the text of a Static control, the following syntaxes are equivalent:
ResCaption = <Name of Static control>..Caption
ResCaption = <Name of Static control>..Value
ResCaption = <Name of Static control>
To modify the text displayed in a Static control, the following syntaxes are equivalent:
<Name of Static control>..Caption = <New text>
<Name of Static control>..Value = <New text>
<Name of Static control> = <New text>
This page is also available for…
|
|
|
| |
| Exemplo Relatorio - Alterar Caption |
|
| Exemplo Relatorio - Alterar Caption
HReadSeek(empresa,id_empresa,gnEmpresacodigo)
IF empresa.cnpj<>"" THEN STC_cnpj_cpf..Caption="Cnpj" STC_EMP_CGC=empresa.cnpj ELSE STC_cnpj_cpf..Caption="Cpf" STC_EMP_CGC=empresa.cpf END
//Blog com Video e Exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/10/aula-946-windev-curso-relatorio-31.html
https://www.youtube.com/watch?v=G3e59Zvu_fw
|
|
|
|
| |
| |
| |
| |
| |
| |
| | |
| |
|
| |
| | |
| |
|
|
|