AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Propiedades WLanguage / Propiedades de ventanas, páginas y controles
  • '&' character interpreted as shortcut
  • Limitations
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
The InterpretAmpersand property is used to determine and change how the '&' character is interpreted in:
  • Static Text control window label.
  • elements of a List Box control.
  • elements of a Combo Box control.
  • the values of a column in a Table control.
Note: By default, if a string contains the '&' character, the letter following the '&' character is interpreted as the hotkey letter.. For more details, see Keyboard shortcut and hotkey.
Ejemplo
// Ne pas interpréter le caractère '&' comme une lettre d'appel
LISTE_ListeLivre.InterprèteEtCommercial = False
// Ajout d'un titre de livre
ListAdd(LISTE_ListeLivre, "Guerre&Paix")
Sintaxis

Finding out how the '&' character is interpreted Ocultar los detalles

<Result> = <Control used>.InterpretAmpersand
<Result>: Boolean
  • True if the letter following the '&' character is interpreted as a hotkey,
  • False if the '&' character is not interpreted.
<Control used>: Control name
Name of the control to be used.

Modifying how the '&' character is interpreted Ocultar los detalles

<Control used>.InterpretAmpersand = <New Interpretation Mode>
<Control used>: Control name
Name of the control to be used.
<New Interpretation Mode>: Boolean
  • True if the letter following the '&' character must be interpreted as a hotkey,
  • False if the '&' character must not be interpreted.
Observaciones

'&' character interpreted as shortcut

If the letter that follows the '&' character is considered as being the shortcut, to display the '&' character in a caption, it must be typed twice. For example:
  • "War&Peace" will be displayed as "WarPeace" (with Alt + P as hotkey).
  • "War&&Peace" will be displayed as "War&Peace".

Limitations

The InterpretAmpersand property can only be used on the following fields in a window:
  • a Static Text control.
  • a List Box control.
  • a Combo Box control.
  • a column in a Table control.
Versión mínima requerida
  • Versión 10
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 20/09/2024

Señalar un error o enviar una sugerencia | Ayuda local