GetEditWidget() 공개 메소드

Edits the property's value. Must be overridden if InPlaceEdit is true.
public GetEditWidget ( ) : Gtk.Widget
리턴 Gtk.Widget
예제 #1
0
        private void DisplayEditWidget()
        {
            if (propertyValueEventBox.Child != null)
            {
                propertyValueEventBox.Child.Destroy();
            }

            if (!editing)
            {
                editing = true;
            }

            Widget editWidget = editor.GetEditWidget();

            propertyValueEventBox.Child = editWidget;

            if (editWidget.SizeRequest().Width > 50)
            {
                editWidget.WidthRequest = 50;
                //TODO: Display tooltip of full text when truncated
            }

            propertyValueEventBox.ShowAll();
            editWidget.GrabFocus();
        }