本文整理汇总了C#中Entry.Show方法的典型用法代码示例。如果您正苦于以下问题:C# Entry.Show方法的具体用法?C# Entry.Show怎么用?C# Entry.Show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Entry
的用法示例。
在下文中一共展示了Entry.Show方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: HelloWorld
public HelloWorld()
{
win = new Window();
win.Title = "Hello World";
win.Name = "EWL_WINDOW";
win.Class = "EWLWindow";
win.SizeRequest(200, 100);
win.DeleteEvent += winDelete;
win.Show();
lbl = new Entry();
//lbl.SetFont("/usr/share/fonts/ttf/western/Adeventure.ttf", 12);
//lbl.SetColor(255, 0 , 0 , 255);
//lbl.Style = "soft_shadow";
//lbl.SizeRequest(win.Width, win.Height);
//lbl.Disable();
lbl.ChangedEvent += new EwlEventHandler(txtChanged);
lbl.Text = "Enlightenment";
Console.WriteLine(lbl.Text);
Console.WriteLine(lbl.Text);
lbl.TabOrderPush();
win.Append(lbl);
lbl.Show();
}
示例2: HandleTbStaffClicked
void HandleTbStaffClicked(object sender, EventArgs e)
{
//set up search input
tbSearch=new Entry ();
tbSearch.KeyReleaseEvent+= HandleTbSearchKeyReleaseEvent;
viewPortLeft.Remove(viewPortLeft.Child);
hboxSearch = new HBox ();
vboxVpLeft = new VBox ();
Button btSearchGo = new Button ();
btSearchGo.Clicked+= HandleBtSearchGoClicked;
btSearchGo.Label="Go";
viewPortLeft.Remove(viewPortLeft.Child);
Label lbStaff = new Label ();
lbStaff.Text="im the staff bit";
viewPortLeft.Add(vboxVpLeft);
hboxSearch.PackStart(tbSearch,true,true,1);
hboxSearch.PackStart(btSearchGo,false,false,1);
vboxVpLeft.PackStart(hboxSearch,false,false,1);
viewPortLeft.Show();
lbStaff.Show();
tbSearch.Show();
vboxVpLeft.ShowAll();
Console.WriteLine("staff clicked");
}
示例3: MakeStringItem
Widget MakeStringItem (BuildServices services, string prompt, MBString res) {
HBox box = new HBox ();
box.Show ();
Label label = new Label (prompt);
label.Show ();
label.Xalign = 1.0F;
Entry entry = new Entry (res.Value);
entry.Show ();
entry.Data[result_key] = res;
entry.Data[services_key] = services;
entry.Changed += new EventHandler (OnStringChanged);
box.PackStart (label, true, true, 2);
box.PackStart (entry, false, true, 2);
return box;
}
示例4: Agregar
void Agregar( object o, EventArgs args )
{
// crear dialogo
Dialog dialog = new Dialog ("Agregar", window, Gtk.DialogFlags.DestroyWithParent);
dialog.Modal = true;
dialog.AddButton ("Aceptar", ResponseType.Ok);
dialog.AddButton ("Cerrar", ResponseType.Close);
Label lab = new Label("Información que desea agregar:");
lab.Show();
dialog.VBox.PackStart (lab , true, true, 5 );
Table table = new Table (2, 2, false);
Label labNombre = new Label("Nombre:");
labNombre.Show();
table.Attach(labNombre , 0, 1, 0, 1);
entryNombre = new Entry();
entryNombre.Show();
table.Attach(entryNombre, 1, 2, 0, 1);
Label labApe = new Label("Apellidos:");
labApe.Show();
table.Attach(labApe , 0, 1, 1, 2);
entryApe = new Entry();
entryApe.Show();
table.Attach(entryApe , 1, 2, 1, 2);
table.Show();
dialog.VBox.PackStart (table, true, true, 5 );
dialog.Response += new ResponseHandler (on_dialog_agregar);
dialog.Run ();
dialog.Destroy ();
}
示例5: UrlDialog
public UrlDialog(Gtk.
Window
par)
: base(Catalog.
GetString
("Open URL"),
par,
DialogFlags.
Modal,
Catalog.
GetString
("Cancel"),
ResponseType.
Cancel,
Catalog.
GetString
("Open"),
ResponseType.
Accept)
{
urlEntry = new Entry ();
urlEntry.WidthChars = 80;
urlEntry.Show ();
VBox.PackStart (urlEntry, true, true,
4);
}
示例6: UserShortcutDialog
public UserShortcutDialog (Gtk.Window parent, string binding_string) : base (null, parent, DialogFlags.DestroyWithParent)
{
Title = "KeyGrabber";
Modal = true;
HasSeparator = false;
AddButton ("Ok", ResponseType.Ok);
AddButton ("Cancel", ResponseType.Cancel);
binding = binding_string;
ctrl_button = new CheckButton ("Ctrl");
int i = binding_string.IndexOf ("<ctrl>", StringComparison.InvariantCultureIgnoreCase);
if (i != -1) {
ctrl_button.Active = true;
binding_string = binding_string.Remove (i, 6);
}
alt_button = new CheckButton ("Alt");
i = binding_string.IndexOf ("<alt>", StringComparison.InvariantCultureIgnoreCase);
if (i != -1) {
alt_button.Active = true;
binding_string = binding_string.Remove (i, 5);
}
entry = new Entry ();
entry.Text = binding_string;
HBox box = new HBox (false, 0);
box.PackEnd (ctrl_button, true, false, 0);
ctrl_button.Show ();
box.PackEnd (alt_button, true, false, 0);
alt_button.Show ();
box.PackEnd (entry, true, false, 0);
entry.Show ();
VBox.PackStart (box, true, false, 0);
box.Show ();
}