protected override void AddChildElements()
        {
            Button editButton;

            movementControlsGroupBox = new AltGroupBox(textImageButtonFactory.GenerateGroupBoxLabelWithEdit(new TextWidget("Movement Controls".Localize(), pointSize: 18, textColor: ActiveTheme.Instance.SecondaryAccentColor), out editButton));
            editButton.Click        += (sender, e) =>
            {
                if (editManualMovementSettingsWindow == null)
                {
                    editManualMovementSettingsWindow         = new EditManualMovementSpeedsWindow("Movement Speeds".Localize(), GetMovementSpeedsString(), SetMovementSpeeds);
                    editManualMovementSettingsWindow.Closed += (popupWindowSender, popupWindowSenderE) => { editManualMovementSettingsWindow = null; };
                }
                else
                {
                    editManualMovementSettingsWindow.BringToFront();
                }
            };

            movementControlsGroupBox.Margin    = new BorderDouble(0);
            movementControlsGroupBox.TextColor = ActiveTheme.Instance.PrimaryTextColor;
            movementControlsGroupBox.HAnchor  |= Agg.UI.HAnchor.ParentLeftRight;
            movementControlsGroupBox.VAnchor   = Agg.UI.VAnchor.FitToChildren;



            jogControls        = new JogControls(new XYZColors());
            jogControls.Margin = new BorderDouble(0);
            {
                manualControlsLayout         = new FlowLayoutWidget(FlowDirection.TopToBottom);
                manualControlsLayout.HAnchor = Agg.UI.HAnchor.ParentLeftRight;
                manualControlsLayout.VAnchor = Agg.UI.VAnchor.FitToChildren;
                manualControlsLayout.Padding = new BorderDouble(3, 5, 3, 0) * TextWidget.GlobalPointSizeScaleRatio;
                {
                    FlowLayoutWidget leftToRightContainer = new FlowLayoutWidget(FlowDirection.LeftToRight);



                    manualControlsLayout.AddChild(GetHomeButtonBar());
                    manualControlsLayout.AddChild(CreateSeparatorLine());
                    manualControlsLayout.AddChild(jogControls);
                    //manualControlsLayout.AddChild(leftToRightContainer);
                    manualControlsLayout.AddChild(CreateSeparatorLine());

                    //manualControlsLayout.AddChild(GetManualMoveBar());
                }

                movementControlsGroupBox.AddChild(manualControlsLayout);
            }

            this.AddChild(movementControlsGroupBox);
        }
		protected override void AddChildElements()
		{
			Button editButton;
			movementControlsGroupBox = new AltGroupBox(textImageButtonFactory.GenerateGroupBoxLabelWithEdit(new TextWidget("Movement Controls".Localize(), pointSize: 18, textColor: ActiveTheme.Instance.SecondaryAccentColor), out editButton));
			editButton.Click += (sender, e) =>
			{
				if (editManualMovementSettingsWindow == null)
				{
					editManualMovementSettingsWindow = new EditManualMovementSpeedsWindow("Movement Speeds".Localize(), GetMovementSpeedsString(), SetMovementSpeeds);
					editManualMovementSettingsWindow.Closed += (popupWindowSender, popupWindowSenderE) => { editManualMovementSettingsWindow = null; };
				}
				else
				{
					editManualMovementSettingsWindow.BringToFront();
				}
			};

			movementControlsGroupBox.Margin = new BorderDouble(0);
			movementControlsGroupBox.TextColor = ActiveTheme.Instance.PrimaryTextColor;
			movementControlsGroupBox.HAnchor |= Agg.UI.HAnchor.ParentLeftRight;
			movementControlsGroupBox.VAnchor = Agg.UI.VAnchor.FitToChildren;

			jogControls = new JogControls(new XYZColors());
			jogControls.Margin = new BorderDouble(0);
			{
				manualControlsLayout = new FlowLayoutWidget(FlowDirection.TopToBottom);
				manualControlsLayout.HAnchor = Agg.UI.HAnchor.ParentLeftRight;
				manualControlsLayout.VAnchor = Agg.UI.VAnchor.FitToChildren;
				manualControlsLayout.Padding = new BorderDouble(3, 5, 3, 0) * TextWidget.GlobalPointSizeScaleRatio;
				{
					FlowLayoutWidget leftToRightContainer = new FlowLayoutWidget(FlowDirection.LeftToRight);

					manualControlsLayout.AddChild(GetHomeButtonBar());
					manualControlsLayout.AddChild(CreateSeparatorLine());
					manualControlsLayout.AddChild(jogControls);
					//manualControlsLayout.AddChild(leftToRightContainer);
					manualControlsLayout.AddChild(CreateSeparatorLine());
					manualControlsLayout.AddChild(GetHWDestinationBar());
					manualControlsLayout.AddChild(CreateSeparatorLine());
				}

				movementControlsGroupBox.AddChild(manualControlsLayout);
			}

			this.AddChild(movementControlsGroupBox);
		}