示例#1
0
        private FlowLayoutWidget CreateZButtons()
        {
            FlowLayoutWidget zButtons = JogControls.CreateZButtons(RGBA_Bytes.White, 4, out zPlusControl, out zMinusControl);

            // set these to 0 so the button does not do any movements by default (we will handle the movement on our click callback)
            zPlusControl.MoveAmount  = 0;
            zMinusControl.MoveAmount = 0;
            zPlusControl.Click      += new EventHandler(zPlusControl_Click);
            zMinusControl.Click     += new EventHandler(zMinusControl_Click);
            return(zButtons);
        }
示例#2
0
        private FlowLayoutWidget CreateZButtons()
        {
            FlowLayoutWidget zButtons = JogControls.CreateZButtons(printer, 4, out zPlusControl, out zMinusControl, new PrinterControls.XYZColors(theme), theme, true);

            // set these to 0 so the button does not do any movements by default (we will handle the movement on our click callback)
            zPlusControl.MoveAmount   = 0;
            zPlusControl.ToolTipText += string.Format(" [{0}]", "Up Arrow".Localize());
            zPlusControl.Click       += zPlusControl_Click;

            zMinusControl.MoveAmount   = 0;
            zMinusControl.ToolTipText += string.Format(" [{0}]", "Down Arrow".Localize());
            zMinusControl.Click       += zMinusControl_Click;
            return(zButtons);
        }