Presentation Functions
[Functions]


Functions

void _AddScriptToList (string Title, string Filename)
 Add a CLUScript filename to the list of presentation slides.
void _ClearScriptList (void)
 Clear all CLUScript filenames in the script list.

Detailed Description

These functions allow you to prepare presentations with CLUCalc. They are not directly part of CLUScript and depend on the implementation of the parser and the visualization.

Function Documentation

void _AddScriptToList string  Title,
string  Filename
 

Add a CLUScript filename to the list of presentation slides.

Parameters:
Title The title of the slide.
Filename The filename of the CLUScript.
Since:
v1.4
The first slide of a presentation should contain a number of calls to _AddScriptToList(), where all CLUScripts are listed in the order in which they should appear in the presentation. In CLUCalc you can then move between the slides using the "Presentation" menu or the short cut keys.

For example, the first slide could look like this.

    
    // Make sure you only create the list of slides
    // when this file has just been loaded.
    if (ExecMode == EM_NEW)
    {
        // Clear the script list.
        _ClearScriptList();
        
        // Now add all the slides
        _AddScriptToList("The first slide", "Slide1.clu");
        _AddScriptToList("And yet another one", "Slide2.clu");
    }
    
    // Here you could now draw the title of your talk
    // ...

void _ClearScriptList void   ) 
 

Clear all CLUScript filenames in the script list.

Since:
v1.4