public Widget ResolveEditor(PropertyItem item = null) { HBox hBox = new HBox(); this.table = new Table(1u, 2u, false); this.combox = new ComboBox(); this.entry = new EntryCallBackEx(); this.combox.WidthRequest = 90; this.entry.WidthRequest = 115; this.combox.HeightRequest = 22; this.entry.HeightRequest = 22; this.table.Attach(this.combox, 0u, 1u, 0u, 1u, AttachOptions.Fill, AttachOptions.Fill, 0u, 0u); this.table.Attach(this.entry, 1u, 2u, 0u, 1u, AttachOptions.Expand | AttachOptions.Fill, AttachOptions.Fill, 0u, 0u); this.table.ShowAll(); Alignment alignment = new Alignment(0.5f, 0.5f, 1f, 1f); alignment.RightPadding = 30u; alignment.Add(this.table); alignment.ShowAll(); this.entry.Show(); hBox.Add(alignment); Box.BoxChild boxChild = hBox[alignment] as Box.BoxChild; boxChild.Position = 1; boxChild.Expand = true; boxChild.Fill = true; hBox.ShowAll(); this.SetControl(); this.table.ColumnSpacing = 10u; this.combox.Changed += new EventHandler(this.combox_Changed); this.entry.KeyReleaseEvent += new KeyReleaseEventHandler(this.entry_KeyReleaseEvent); this.entry.FocusOutEvent += new FocusOutEventHandler(this.entry_FocusOutEvent); this.ReadLanuageConfigFile(); return(hBox); }
public Widget ResolveEditor(PropertyItem item = null) { HBox hbox = new HBox(); this.entry = new EntryCallBackEx(); Alignment alignment = new Alignment(0.5f, 0.5f, 1f, 1f); alignment.RightPadding = 30U; alignment.Add((Widget)this.entry); alignment.ShowAll(); this.entry.Show(); hbox.Add((Widget)alignment); Box.BoxChild boxChild = hbox[(Widget)alignment] as Box.BoxChild; boxChild.Position = 1; boxChild.Expand = true; boxChild.Fill = true; hbox.ShowAll(); this.SetControl(); this.entry.KeyReleaseEvent += new KeyReleaseEventHandler(this.entry_KeyReleaseEvent); this.entry.FocusOutEvent += new FocusOutEventHandler(this.entry_FocusOutEvent); return((Widget)hbox); }