Skip to content

Class: cCJExitMenuItem

Properties | Events | Methods | Index of Classes

A menu item which is used to exit the application

Hierarchy

cObject > DfComAutomationObject > cComAutomationObject > cCJCommandBarAction > cCJAction > cCJMenuItem > cCJExitMenuItem

Show full hierarchy and direct subclasses

Library: Windows Application Class Library

Package: cCJStandardMenuItemClasses.pkg

Description

cCJExitMenuItem is a menu item class, which is used to exit the application. When executed, OnExecute sends the Exit_Application message to the desktop object.

An object based on this class can be added to any popup menu, toolbar or context menu.

Object oFileMenu is a cCJMenuItem

    Set peControlType to xtpControlPopup          
    Set psCaption   to "&File"
    Set psTooltip   to "File"
    Set psDescription to "Find, Save, Delete, Clear information or quit this application."

    :

    Object oExitMenu is a cCJExitMenuItem
        Set pbControlBeginGroup to True
    End_Object

End_Object