コード例 #1
0
        void AddExtraControl(ProjectConfigurationControl control)
        {
            var extraRow = new ExtraControlTableRow {
                Row   = projectConfigurationTable.NRows,
                Label = new Label(control.Label ?? string.Empty)
                {
                    Xpad    = 5,
                    Xalign  = 1,
                    Justify = Justification.Left
                },
                MainWidget = (Widget)control
            };

            CreateTooltip(control, extraRow);

            AddExtraControl(extraRow);
        }
コード例 #2
0
        void CreateTooltip(ProjectConfigurationControl control, ExtraControlTableRow extraRow)
        {
            if (string.IsNullOrEmpty(control.InformationTooltip))
            {
                return;
            }

            var hbox            = new HBox();
            var paddingEventBox = new EventBox();

            paddingEventBox.ModifyBg(StateType.Normal, leftHandBackgroundColor);
            hbox.PackStart(paddingEventBox, true, true, 0);

            var tooltipEventBox = new EventBox {
                HeightRequest = 16,
                WidthRequest  = 16,
                VisibleWindow = false
            };

            hbox.PackStart(tooltipEventBox, false, false, 0);

            extraRow.InformationTooltipWidget = hbox;
            extraRow.InformationTooltip       = CreateTooltip(tooltipEventBox, control.InformationTooltip);
        }
コード例 #3
0
		void CreateTooltip (ProjectConfigurationControl control, ExtraControlTableRow extraRow)
		{
			if (string.IsNullOrEmpty (control.InformationTooltip))
				return;

			var hbox = new HBox ();
			var paddingEventBox = new EventBox ();
			paddingEventBox.ModifyBg (StateType.Normal, leftHandBackgroundColor);
			hbox.PackStart (paddingEventBox, true, true, 0);

			var tooltipEventBox = new EventBox {
				HeightRequest = 16,
				WidthRequest = 16,
				VisibleWindow = false
			};

			hbox.PackStart (tooltipEventBox, false, false, 0);

			extraRow.InformationTooltipWidget = hbox;
			extraRow.InformationTooltip = CreateTooltip (tooltipEventBox, control.InformationTooltip);
		}
コード例 #4
0
		void AddExtraControl (ProjectConfigurationControl control)
		{
			var extraRow = new ExtraControlTableRow {
				Row = projectConfigurationTable.NRows,
				Label = new Label (control.Label ?? string.Empty) {
					Xpad = 5,
					Xalign = 1,
					Justify = Justification.Left
				},
				MainWidget = (Widget)control
			};

			CreateTooltip (control, extraRow);

			AddExtraControl (extraRow);
		}