Create and Maintain Drag-and-Drop Formats

Drag-and-drop formats determine the actions and context menus for dragging and dropping objects in Tree and Picture widgets in desktop applications. They are maintained and deployed in a runtime library.

  1. In the Uniface IDE, choose More Editors >Formats.
  2. Create or select the library in which to create or maintain the format.

    The format editor is opened (Define Formats).

  3. To create a drag-and-drop format:
    1. Click New and enter the Format Name, Language, and optional Description.

      The name of the format must be unique within the library and language definition, but it can be the same as a format in another library.

    2. Specify the Default Action and the Option Text properties.

      This determines the actions that are allowed in this drag and drop format, as well as the text that is to be displayed on the pop-up menu.

      Note:  The Cancel action is always enabled, even if the Option Text property is empty.

    3. Optionally, specify a glyph or image file to use as the drag and drop icon. Select Glyph or Image File and specify the glyph or file to use.
  4. To save the format, choose File > Save.

    Alternatively, click OK to save the format and close the editor.

  5. To delete a format, select the format and click Delete.

Use the drag-and-drop formats when defining Picture and Tree widgets. Defining Drag and Drop Behavior for Picture and Tree Widgets.

Related Topics