OnCreateContextMenu

OnCreateContextMenu

1. Definition

When right clicking on an object in the timeline / storyboard / image list, i.e. when creating the context menu. This hook should be used to generate specific context menu items. These are JSON formatted. The specified Hook is a scripting method that is to be executed when clicking.

2. Method

function OnCreateContextMenu(SlideShowObject: ISlideShowObject): string;

3. Example

// Example of a possible context menu entry
function OnCreateContextMenu(SlideShowObject: ISlideShowObject): string;
begin
  Result := '[' +
              '{' +	
                '"Caption": "Text of the entry",' +
                '"Hint": "MouseOver text",' +
                '"Hook": "OnClickContextEntry"' +
              '}' +
            ']';
end;
procedure OnClickContextEntry;
begin
  // Code executed when the user clicks on the menu item.
end;