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 / Funcionalidades Automáticas de la Aplicación (FAA)
  • Overview
  • Settings
  • Configuring the context menu in an Organizer control
  • Details of options
  • "Print" option
  • Customizing the setting window for printing the scheduler
  • "Send by email" option
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
Overview
Each Organizer control in a window offers the user a menu by default.
This menu, available without programming, includes several actions:
  • Canceling or redoing an action.
  • Choice of calendar display mode: Day, Whole week, Work week, Month.
  • Displaying the elements for today.
  • Appointment management: Add, delete, modify.
  • Copying the appointment content.
  • Printing the organizer.
  • Sending the organizer by email.
The actions performed in the Organizer control can be:
  • undone via "Undo" in the context menu or via Ctrl + Z.
  • redone via "Redo" in the context menu or via Ctrl + Y.
These actions include moving, resizing, deleting, etc. appointments.

Remark: You can add choices to this menu by programming. To do so, use the ContextMenu property.
Settings

Configuring the context menu in an Organizer control

The context menu of the Organizer control can be disabled. To configure the display of the context menu associated with the Organizer control, you must:
  1. Display the description window of the Organizer control.
  2. Select the "UI" tab.
  3. Choose the desired menu in the "Context menu" combo box. It is possible to:
    • "Mostrar el menú de las FAA (Sistema)": In this case, the context menu displayed will be the Organizer control automation menu.. For more details on how to configure this menu, see Configuring the AAF menu.
    • "Agregar un menú contextual": If this option is checked, you can select the custom context menu to be displayed..
Remarks:
  • If both options are checked, the custom context menu can be added before or after the AAF menu.
  • If no option is selected, no context menu will be selected. The <Disabled> option will be displayed in the description window.
  • The ContextMenu property is also used to remove the AAF-specific context menu and restore the standard Windows menu for a given control.
  • AAFDisable is used to remove some options from the AAF context menu specific to Organizer controls. Different constants can be used according to the option to disable:
    • faaPrintAgenda: deletes the agenda print option. Caution, this constant can also delete the print option proposed by the Scheduler controls.
    • faaSendEmailFile: removes the option to send the agenda by email. Caution, this constant can also delete the email sending option proposed by the Scheduler controls and by the Path edit controls.
Details of options

"Print" option

The "Print" option is used to print the content of the Organizer control. A specific window is displayed, allowing you to configure the print.
This window allows you to configure:
  • the report orientation.
  • duration taken into account: day, week, month, etc.
  • the period to print (set of dates).
Note: Depending on the options specified for page length and period, the diary printout may be more or less legible and take up several pages.. For example, an organizer printing the daily schedule over a week will print 1 page per day.
The "Print" button is used to start the print.
The content of the Organizer control is viewed in the report viewer.
Regardless of the selected orientation, the content of the Organizer control is entirely printed between the specified bounds.
The print characteristics are as follows:
  • The title of the print corresponds to the caption of the Organizer control. If no caption was specified for the Organizer control, the report displays no title.
  • The print respects the color used in the Organizer control.
  • Today's date is printed at the bottom left.
  • The number of the current page and the total number of pages are printed in the lower-right corner.
  • The document is printed using the writing direction specified with the TextDirection property at window and/or Organizer control level.
Remarks:
  • The "Print" option in the context menu of the Organizer controls requires to provide the print libraries of the WINDEV framework with the executable.
  • To disable the "Print" option in the context menu of Organizer controls, use AAFDisable with the aafPrintOrganizer constant.
  • To customize the report associated with a specific Organizer control, you must create a new Organizer report based on this Organizer control. It will be automatically associated with the Organizer control and it will be printed via the "Print" option.

Customizing the setting window for printing the scheduler

WINDEV allows you to include the setting window for printing the organizer used by the AAF in your application. You will have the ability to customize:
  • the appearance of this window (modification of skin template for example),
  • the languages supported by this window. This feature is very useful when translating this window into the different languages available in the application.
To include the window for configuring the print in your application:
  1. On the "Proyecto" tab, in the "Proyecto" group, expand "Importar" and select "WINDEV elements and their dependencies".
  2. Select the subdirectory that contains the elements to import. The print configuration window is in the "Programs\Data\Preset Windows\EN\AAF" subdirectory of the WINDEV installation directory.
  3. WINDEV lists the elements of the directory. This directory contains the different elements corresponding to the customizable AAFs. The window to import is named "WinDevAaf_ConfigPrintingSchedulerOrganizer.wdw".
  4. Validate. The window is included in the project and it can be modified. This custom window will be automatically taken into account when running the application.
Remarks:
  • The window must not be renamed.
  • If this window is included in your application, you may not benefit from the improvements made to this window during the different updates. Don't forget to check whether this window has evolved.
  • Warning: To modify this window, the corresponding file must not be read-only.. Modify the characteristics of the file in Windows if necessary.
  • If you are using an Organizer control in your project, the Print AAF of the Organizer control will also use this window.

"Send by email" option

The "Send by email" option is used to::
  • print the content of the Organizer control in an "Organizer.pdf" file.
  • create a new message in the default messaging application and attach the "Organizer.pdf" file to this message.
The procedure for printing the organizer in the PDF file is identical to the print procedure performed via the "Print the organizer" option (see the previous paragraph).
The generated Organizer report is not viewed in the report viewer but it is directly printed in a file in PDF format.
Remarks:
  • The "Send by email" option in the context menu of the Organizer controls requires to provide the libraries of the WINDEV framework for printing and generating PDF files with the executable.
  • To disable the "Send by email" option in the context menu of Organizer controls, use AAFDisable with the aafSendFileByEmail constant.
    Caution, this constant can also delete the email sending option proposed by the Scheduler controls and by the Path edit controls.
Versión mínima requerida
  • Versión 17
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 21/09/2024

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