Ejemplo n.º 1
0
        public RibbonGroup(string Name, RibbonMenu menu)
            : base(menu)
        {
            label = new Label(Name, 8f, Color.Gray, menu);

            label.Size = label.GetPreferredSize();
            this.Name = Name;
            Layout = new FlowLayout(false);
            this.menu = menu;
            this.PreferredSize = new System.Drawing.Size(20, 66);
            this.MaxSize = new Size(Renderer.Instance.RenderSize.Width, 66);
        }
Ejemplo n.º 2
0
        public RibbonMenuItem(string name, RibbonMenu main)
            : base(name, main)
        {
            this.main = main;

            FlowLayout flow = new FlowLayout(true);
            flow.Margin = 10;

            // Set up panel area
            panel = new Panel(main);
            panel.Layout = flow;
            panel.Position = new Dimension(10, 23);
            panel.Size = new Size(Renderer.Instance.RenderSize.Width - 20, 77);

            //sprite = new Sprite(Renderer.Instance.device);
        }