User Tools

Site Tools


std_set_standard_behavior_.htm
Navigation:  Language Reference > 9 -  Window and Report Attributes > Window and Report Attributes >====== STD (set standard behavior) ====== Previous pageReturn to chapter overviewNext page

NewC7.jpg

STD(behavior)

blk2blue.jpg

STD Specifies standard Windows behavior.
behavior An integer constant or EQUATE specifying the identifier of a standard windows behavior.

The STD attribute (PROP:STD) specifies the control activates some standard Windows action. This action is automatically executed by the runtime library and does not generate any events (that is, the control does not receive an EVENT:Accepted).

EQUATE statements for the standard Windows actions are contained in the EQUATES.CLW file. The following list is a representative sample of these (see EQUATES.CLW for the complete list):

STD:WindowList List of open MDI windows
STD:TileWindow Tile Windows
STD:CascadeWindow Cascade Windows
STD:ArrangeIcons Arrange Icons
STD:HelpIndex Help Contents
STD:HelpSearch Help Search dialog

Example:

MDIChild WINDOW('Child One'),MDI,SYSTEM,MAX

     MENUBAR

      MENU('Edit'),USE(?EditMenu)

       ITEM('Undo'),USE(?UndoText),KEY(CtrlZ),STD(STD:Undo)

       ITEM('Cu&t'),USE(?CutText),KEY(CtrlX),STD(STD:Cut)

       ITEM('Copy'),USE(?CopyText),KEY(CtrlC),STD(STD:Copy)

       ITEM('Paste'),USE(?PasteText),KEY(CtrlV),STD(STD:Paste)

      END

     END

     TOOLBAR

      BUTTON('Cut'),USE(?CutButton),ICON(ICON:Cut),STD(STD:Cut)

      BUTTON('Copy'),USE(?CopyButton),ICON(ICON:Copy),STD(STD:Copy)

      BUTTON('Paste'),USE(?PasteButton),ICON(ICON:Paste),STD(STD:Paste)

     END

    END

std_set_standard_behavior_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1