示例#1
0
 void colorButton_MouseButtonClick(Widget source, EventArgs e)
 {
     ColorMenu.ShowColorMenu(source.AbsoluteLeft, source.AbsoluteTop + source.Height, color =>
     {
         this.color = color;
         syncColorToButton();
         setValue();
     });
 }
示例#2
0
        public override void clicked(TaskPositioner positioner)
        {
            IntVector2 location  = positioner.findGoodWindowPosition(0, 0);
            ColorMenu  colorMenu = ColorMenu.ShowColorMenu(location.x, location.y, delegate(Color color)
            {
                sceneViewController.ActiveWindow.BackColor = color;
            });

            colorMenu.Hiding += (sender, e) =>
            {
                fireItemClosed();
            };
        }
示例#3
0
 void colorButton_MouseButtonClick(Widget source, EventArgs e)
 {
     ColorMenu.ShowColorMenu(this.Left, this.Top, (c) => { });
 }