Exemplo n.º 1
0
 void colorButton_MouseButtonClick(Widget source, EventArgs e)
 {
     ColorMenu.ShowColorMenu(source.AbsoluteLeft, source.AbsoluteTop + source.Height, color =>
     {
         this.color = color;
         syncColorToButton();
         setValue();
     });
 }
Exemplo n.º 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();
            };
        }
Exemplo n.º 3
0
 void colorButton_MouseButtonClick(Widget source, EventArgs e)
 {
     ColorMenu.ShowColorMenu(this.Left, this.Top, (c) => { });
 }