Exemplo n.º 1
0
 public CarbonHICommand(uint commandID, HIMenuItem item)
 {
     windowRef       = controlRef = IntPtr.Zero;
     this.commandID  = commandID;
     this.menuItem   = item;
     this.attributes = CarbonHICommandAttributes.FromMenu;
 }
Exemplo n.º 2
0
        public static uint GetMenuItemReferenceConstant(HIMenuItem item)
        {
            uint val;

            CheckResult(GetMenuItemRefCon(item.MenuRef, item.Index, out val));
            return(val);
        }
Exemplo n.º 3
0
        public static uint GetMenuItemCommandID(HIMenuItem item)
        {
            uint id;

            CheckResult(GetMenuItemCommandID(item.MenuRef, item.Index, out id));
            return(id);
        }
Exemplo n.º 4
0
 public static void SetMenuItemReferenceConstant(HIMenuItem item, uint value)
 {
     CheckResult(SetMenuItemRefCon(item.MenuRef, item.Index, value));
 }
Exemplo n.º 5
0
 public static void ChangeMenuItemAttributes(HIMenuItem item, MenuItemAttributes toSet, MenuItemAttributes toClear)
 {
     CheckResult(ChangeMenuItemAttributes(item.MenuRef, item.Index, toSet, toClear));
 }
Exemplo n.º 6
0
 public static void DisableMenuItem(HIMenuItem item)
 {
     CheckResult(DisableMenuItem(item.MenuRef, item.Index));
 }