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.
- In the Uniface IDE, choose .
-
Create or select the library in which to create or
maintain the format.
The format editor is opened (Define Formats).
-
To create a drag-and-drop format:
-
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.
-
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.
- 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.
-
Click New and enter the
Format Name, Language, and optional
Description.
-
To save the format, choose
Alternatively, click OK to save the format and close the editor.
.
- 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.