Skip to content

Floating_Menu_Object - cRichEdit

Identifies the floating popup menu (context menu) for this object

Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None

Syntax

Property Integer Floating_Menu_Object
Access Type Syntax
Read Access: Get Floating_Menu_Object to IntegerVariable
Write Access: Set Floating_Menu_Object to IntegerVariable/Value

Description

The Floating_Menu_Object property identifies the floating popup menu (context menu) for this object. The default setting will provide a standard edit context menu. You may create your own custom floating menus and assign them to objects by setting this property. You may also disable a floating menu by setting this property to zero.

Sample

This sample creates a custom context menu from class cCJContextMenu, then sets the Floating_Menu_Object property to the FloatingPopupMenu object name.

Incidentally, this is the code for the default Default_dbFloating_Menu_ID object used for data-aware ojbects (DEOs).

Use Windows.pkg
Use cCJStandardMenuItemClasses.pkg
Use cCJDeoMenuItemClasses.pkg

Object oDEOEditContextMenu is a cCJContextMenu

    Object oUndoMenuItem is a cCJUndoMenuItem
    End_Object

    Object oCutMenuItem is a cCJCutMenuItem
        Set pbControlBeginGroup to True
    End_Object

    Object oCopyMenuItem is a cCJCopyMenuItem
    End_Object

    Object oPasteMenuItem is a cCJPasteMenuItem
    End_Object

    Object oDeleteItem is a cCJDeleteEditMenuItem
    End_Object

    Object oSelectAllMenuItem is a cCJSelectAllMenuItem
        Set pbControlBeginGroup to True
    End_Object

    Object oPromptMenuItem is a cCJPromptMenuItem
        Set pbControlBeginGroup to True
    End_Object

    Object oFindNextMenu is a cCJFindNextMenuItem
        Set pbControlBeginGroup to True
    End_Object

    Object oFindPreviousMenu is a cCJFindPreviousMenuItem
    End_Object

    Object oClearMenuItem is a cCJClearMenuItem
        Set pbControlBeginGroup to True
    End_Object

    Object oClearAllMenu is a cCJClearAllMenuItem
    End_Object

    Object oSaveMenu is a cCJSaveMenuItem
    End_Object

    Object oDeleteMenu is a cCJDeleteMenuItem
    End_Object

End_Object

Set Floating_Menu_Object to oDEOEditContextMenu