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 / Funciones WLanguage / Controles, páginas y ventanas / Funciones Cuadro de mando
  • Disabling options and bar of the edit mode
  • Deleting the Edit mode for the end user (via the AAF)
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
Opens or closes the Dashboard control edit mode.
Ejemplo
Android
// Informs the user if the Dashboard control is already in edit mode
IF DashMode(DASH_Dashboard) <> dashNoModif THEN
	Error("The dashboard is in edit mode already")
	RETURN
END
nOption is int
// Defines the edit option
IF CBOX_EditOptions[1] THEN nOption += dashMove
IF CBOX_EditOptions[2] THEN nOption += dashResize
IF CBOX_EditOptions[3] THEN nOption += dashDelete
// Checks that at least one option is checked
IF nOption = 0 THEN
	Error("At least one edit option must be checked")
	SetFocusAndReturnToUserInput(CBOX_EditOptions)
END
// Modifies the edit mode
DashMode(DASH_Dashboard, nOption)
Android
// Disable the deletion of widgets 
// but not their move or resizing:
DashMode(DASH_NoName1, dashMove + dashResize)
// Caution, to avoid displaying the toolbar, 
// you must use DissableAAF (or AAFDisable) with the constant aafDashEditTdbMode.
Sintaxis

Changing the mode of the Dashboard control Ocultar los detalles

DashMode(<Dashboard control> , <Mode>)
<Dashboard control>: Control name
Name of the Dashboard control to be used.
<Mode>: Integer constant (or combination of constants)
Edit options available for the user:
dashDeleteSwitch to edit mode: the user can hide Widgets in the Dashboard control array.
dashMoveSwitch to edit mode: the user can move Widgets into the Dashboard control array.
dashNoModifEdit mode closed: the user cannot edit Widgets in the Dashboard control array.
This constant cannot be combined with the other constants.
dashResizeSwitch to edit mode: users can resize Widgets in the Dashboard control array.

Finding out the current mode of the Dashboard control Ocultar los detalles

<Result> = DashMode(<Dashboard control>)
<Result>: Integer constant
Current edit mode of Dashboard control:
dashDeleteEdit mode: the user can hide Widgets in the Dashboard control array.
dashMoveEdit mode: the user can move Widgets into the Dashboard control array.
dashNoModifClassic mode: the user cannot modify Widgets in the Dashboard control array.
dashResizeEdit mode: users can resize Widgets in the Dashboard control array.
<Dashboard control>: Control name
Name of the Dashboard control to be used.
Observaciones
AndroidiPhone/iPadMac Catalyst

Disabling options and bar of the edit mode

DashMode is used to disable some features of the Dashboard control. Deleting these features can make changes to the bar of the edit mode. Thus, if it is no longer possible to remove widgets, the bin button is not displayed in the toolbar.
Note: To completely disable toolbar display on the Dashboard control array, use the AAFDisable function with the constant faaTdbModeEdition.

Deleting the Edit mode for the end user (via the AAF)

DashMode is used to switch to edit mode programmatically.
To prevent the user from switching to edit mode (via the context menu or with a long click), use AAFDisable with the aafDashEditMode constant.
Componente: wd300obj.dll
Versión mínima requerida
  • Versión 19
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

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