Changeset 46 for trunk/src


Ignore:
Timestamp:
Nov 30, 2007, 5:45:51 PM (18 years ago)
Author:
lpino
Message:
  • Added the constants needed for the implementation of the Menu class
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plugins/org.eclipse.swt/Eclipse SWT PI/pm/org/eclipse/swt/internal/pm/OS.java

    r29 r46  
    19761976   public static final int BKA_FOREGROUNDMINORCOLOR      = 0x000A;
    19771977
     1978      /* Menu control styles */
     1979   
     1980   public static final int MS_ACTIONBAR               = 0x00000001;
     1981   public static final int MS_TITLEBUTTON            =  0x00000002;
     1982   public static final int MS_VERTICALFLIP            = 0x00000004;
     1983   
     1984   public static final int MS_CONDITIONALCASCADE      = 0x00000040;
     1985           
     1986   /* Menu control messages */
     1987   
     1988   public static final int MM_INSERTITEM              = 0x0180;
     1989   public static final int MM_DELETEITEM              = 0x0181;
     1990   public static final int MM_QUERYITEM               = 0x0182;
     1991   public static final int MM_SETITEM                 = 0x0183;
     1992   public static final int MM_QUERYITEMCOUNT          = 0x0184;
     1993   public static final int MM_STARTMENUMODE           = 0x0185;
     1994   public static final int MM_ENDMENUMODE             = 0x0186;
     1995   public static final int MM_REMOVEITEM              = 0x0188;
     1996   public static final int MM_SELECTITEM              = 0x0189;
     1997   public static final int MM_QUERYSELITEMID          = 0x018a;
     1998   public static final int MM_QUERYITEMTEXT           = 0x018b;
     1999   public static final int MM_QUERYITEMTEXTLENGTH     = 0x018c;
     2000   public static final int MM_SETITEMHANDLE           = 0x018d;
     2001   public static final int MM_SETITEMTEXT             = 0x018e;
     2002   public static final int MM_ITEMPOSITIONFROMID      = 0x018f;
     2003   public static final int MM_ITEMIDFROMPOSITION      = 0x0190;
     2004   public static final int MM_QUERYITEMATTR           = 0x0191;
     2005   public static final int MM_SETITEMATTR             = 0x0192;
     2006   public static final int MM_ISITEMVALID             = 0x0193;
     2007   public static final int MM_QUERYITEMRECT           = 0x0194;
     2008   
     2009   public static final int MM_QUERYDEFAULTITEMID      = 0x0431;
     2010   public static final int MM_SETDEFAULTITEMID        = 0x0432;
     2011
     2012   public static final int MIT_END                   =  -1;
     2013   public static final int MIT_NONE                   = -1;
     2014   public static final int MIT_MEMERROR               = -1;
     2015   public static final int MIT_ERROR                  = -1;
     2016   public static final int MIT_FIRST                  = -2;
     2017   public static final int MIT_LAST                   = -3;
     2018//   public static final int MID_NONE                   
     2019   public static final int MID_ERROR                  = -1;
     2020   
     2021   /* Menu item styles & attributes */
     2022   
     2023   public static final int MIS_TEXT                   = 0x0001;
     2024   
     2025   public static final int MIS_BITMAP                 = 0x0002;
     2026   public static final int MIS_SEPARATOR              = 0x0004;
     2027   
     2028   public static final int MIS_OWNERDRAW             =  0x0008;
     2029   
     2030   public static final int MIS_SUBMENU                = 0x0010;
     2031   public static final int MIS_MULTMENU               = 0x0020;      /* multiple choice submenu     */
     2032   public static final int MIS_SYSCOMMAND             = 0x0040;
     2033   public static final int MIS_HELP                   = 0x0080;
     2034   public static final int MIS_STATIC                 = 0x0100;
     2035   public static final int MIS_BUTTONSEPARATOR        = 0x0200;
     2036   public static final int MIS_BREAK                 =  0x0400;
     2037   public static final int MIS_BREAKSEPARATOR        =  0x0800;
     2038   public static final int MIS_GROUP                  = 0x1000;      /* multiple choice group start */
     2039   /* In multiple choice submenus a style of 'single' denotes the item is a
     2040   ** radiobutton.  Absence of this style defaults the item to a checkbox.       */
     2041   public static final int MIS_SINGLE                 = 0x2000;
     2042   
     2043   public static final int MIA_NODISMISS              = 0x0020;
     2044   public static final int MIA_FRAMED                 = 0x1000;
     2045   public static final int MIA_CHECKED                = 0x2000;
     2046   public static final int MIA_DISABLED               = 0x4000;
     2047   public static final int MIA_HILITED                = 0x8000;
     2048
     2049   public static final int PU_POSITIONONITEM          = 0x0001; /* Need idItem parameter */
     2050   
     2051   public static final int PU_HCONSTRAIN              = 0x0002; /* Keep menu on left and right edge */
     2052   public static final int PU_VCONSTRAIN              = 0x0004; /* Keep menu on top and bottom edge */
     2053   
     2054   public static final int PU_NONE                    = 0x0000; /* If invoked by keyboard */
     2055   public static final int PU_MOUSEBUTTON1DOWN        = 0x0008; /* If invoked by button 1 */
     2056   public static final int PU_MOUSEBUTTON2DOWN        = 0x0010; /* If invoked by button 2 */
     2057   public static final int PU_MOUSEBUTTON3DOWN        = 0x0018; /* If invoked by button 3 */
     2058   
     2059   public static final int PU_SELECTITEM              = 0x0020; /* Set selected item (use with kbd) */
     2060   
     2061   public static final int PU_MOUSEBUTTON1            = 0x0040; /* If button1 use allowed */
     2062   public static final int PU_MOUSEBUTTON2            = 0x0080; /* If button2 use allowed */
     2063   public static final int PU_MOUSEBUTTON3            = 0x0100; /* If button3 use allowed */
     2064   public static final int PU_KEYBOARD                = 0x0200; /* If keyboard use allowed */
     2065
    19782066/* PM macros */
    19792067
Note: See TracChangeset for help on using the changeset viewer.