|
|
|
|
|
- Creating and drawing a chart programmatically
- Drawing several charts at the same time
- Charts and threads
- Default values of a chart created programmatically
Creates a specific type of chart. Remarks: - It is recommended to create a Chart control directly rather than using grCreate. Indeed, the Chart control offers many more features.
- This function can only be used to create a chart programmatically. This function cannot be used in the window editor, page editor or report editor.
grCreate("MyChart", grColumn)
Sintaxis
grCreate(<Chart name> , <Chart type> [, <Persistence>])
<Chart name>: Character string Name of chart to create. This name will be used by all functions for chart management.
Warning: this name must not correspond to the name of a Chart control field.. <Chart type>: Constant Specifies the type of chart to create: The type of chart can be modified later by grType. <Persistence>: Optional boolean - True (default) to save graph modifications made by the user via the context menu,
- False not to save these modifications.
Observaciones Creating and drawing a chart programmatically To create and draw a chart: Drawing several charts at the same time Several charts with the same name cannot exist at the same time. To draw several charts at the same time (in one or more windows for example), different chart names must be specified. Charts and threads A single chart can be handled in a thread. Consequences: - Two threads cannot handle the same chart.
- A chart created in a thread is automatically destroyed at the end of this thread. The chart exists in the thread that contains the call to grCreate.
Default values of a chart created programmatically The default values of a chart are as follows: Clasificación Lógica de negocio / UI: Código neutro
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|