Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter FifteenWindows/OS Functions (continued)

ClipboardRegisterFormat Function

Overview

The ClipboardRegisterFormat looks for a existing clipboard format name and returns it clipboard format code. If it does not exist, registers the format and returns a code.

Syntax/Parameters

Syntax

dword = ClipboardRegisterFormat ( string name );

Parameters

name

A string containing the name of the format.

Return Value

Returns a dword value as a clipboard format code or 0x00000000 on error. Use the GetLastError function to retrieve a formatted error code.

Registered clipboard formats are identified by values in the range 0xC000 through 0xFFFF.

Remarks

If a registered format with the specified name already exists, a new format is not registered and the return value identifies the existing format. This enables more than one application to copy and paste data using the same registered clipboard format.

Format names provide a method for applications to share common formats over the clipboard. The returned format code can be used to directly get or post information to the clipboard.

Formats are built into the Window API (therefore should not be registered) as specified at the start if this section. In addition, the application will automatically register the following formats:

  Format Name   Description  
  Application Proprietary    
    NWS Control   Novaworks Application Control  
    NWS Data   Novaworks Application Data  
    NWS Delay Control   Novaworks Delay Control  
    NWS Exchange   Novaworks Data Exchange  
    NWS Objects   Novaworks Application Objects  
  De facto Standards    
    CSV   Comma Delimited Format  
    DataObject   Data Object  
    HTML Format   HTML (Windows) Format  
    HTML Native   HTML Native Format  
    GIF   GIF Image Format  
    HyperLink   HyperLink  
    JFIF   JPEG Image Format  
    Link Source   Link Source  
    Link Source Descriptor   Link Source Descriptor  
    msSourceUrl   MS Source URL (msSourceUrl)  
    Object Descriptor   Object Descriptor  
    ObjectLink   Object Link Data (ObjectLink)  
    OwnerLink   Owner Link Data  
    Ole Private Data   OLE Private Data  
    PNG   PNG Image Format  
    Rich Text Format   Rich Text Format  
  Specific Microsoft    
    MSDEVColumnSelect   Visual Studio Column Select (VS)  
    Embed Source   Embed Source  
    Native   Native (Microsoft Word)  

 

There are also built-in Windows SDK formats for text, Unicode, DIB, etc... Programmers are cautioned in create names that may conflict with other applications unless those names are used to transport appropriately formatted data.

Format name comparison is case-insensitive.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic