Beispiel #1
0
        public KButton NewMenuItemButton(bool multiline = false)
        {
            // multiline: nothing to worry about in macOS version
            var itemButton = new MacButton(new NSButtonPlus(), this.nsMenuButtonText, this.nsMenuButtonDeselected, this.nsMenuButtonSelected);

            itemButton.SetFont(MacGui.macGui.GetFont(this.pointSize, this.fixedWidth));
            return(itemButton);
        }
Beispiel #2
0
        public KButton NewMenuSection(int level = 1)
        {
            var sectionButton = new MacButton(new NSButtonPlus(), MacControls.nsMenuButtonHotText, this.nsMenuButtonDeselected, this.nsMenuButtonSelected);

            sectionButton.SetFont(MacGui.macGui.GetFont(this.pointSize - (level - 1), this.fixedWidth));
            sectionButton.Hover(false); //### should give a hover argument to new NSButtonPlus()
            return(sectionButton);
        }