static void Start() { var generator = Platform.Get(Platforms.Gtk2); generator.Add<TabControlPlus.IHandler>(() => new TabControlPlusHandler()); //Style.Add<ButtonHandler>(null, h => //{ // h.Size = new Eto.Drawing.Size(80, 27); //}); //Style.Add<DropDownHandler>(null, h => //{ // h.Size = new Eto.Drawing.Size(120, 25); //}); //Style.Add<ComboBoxHandler>(null, h => //{ // h.Size = new Eto.Drawing.Size(120, 25); //}); //Style.Add<TextBoxHandler>(null, h => //{ // h.Size = new Eto.Drawing.Size(120, 25); //}); //Temporary Solutions, Eto.Form's bug Style.Add<Dialog>(null, h => { h.Resizable = true; }); var app = new AltmanApplication(generator); app.Run(); }
static void Start() { var generator = Platform.Get(Platforms.Gtk2); generator.Add <TabControlPlus.IHandler>(() => new TabControlPlusHandler()); //Style.Add<ButtonHandler>(null, h => //{ // h.Size = new Eto.Drawing.Size(80, 27); //}); //Style.Add<DropDownHandler>(null, h => //{ // h.Size = new Eto.Drawing.Size(120, 25); //}); //Style.Add<ComboBoxHandler>(null, h => //{ // h.Size = new Eto.Drawing.Size(120, 25); //}); //Style.Add<TextBoxHandler>(null, h => //{ // h.Size = new Eto.Drawing.Size(120, 25); //}); //Temporary Solutions, Eto.Form's bug Style.Add <Dialog>(null, h => { h.Resizable = true; }); var app = new AltmanApplication(generator); app.Run(); }
static void Start() { var generator = Platform.Get(Platforms.Gtk2); generator.Add<TabControlPlus.IHandler>(() => new TabControlPlusHandler()); Style.Add<ButtonHandler>(null, h => { h.Size = new Eto.Drawing.Size(80, 27); }); Style.Add<DropDownHandler>(null, h => { h.Size = new Eto.Drawing.Size(120, 25); }); Style.Add<ComboBoxHandler>(null, h => { h.Size = new Eto.Drawing.Size(120, 25); }); Style.Add<TextBoxHandler>(null, h => { h.Size = new Eto.Drawing.Size(120, 25); }); var app = new AltmanApplication(generator); app.Run(); }
static void Start() { var generator = Platform.Get(Platforms.Gtk2); generator.Add <TabControlPlus.IHandler>(() => new TabControlPlusHandler()); Style.Add <ButtonHandler>(null, h => { h.Size = new Eto.Drawing.Size(80, 27); }); Style.Add <DropDownHandler>(null, h => { h.Size = new Eto.Drawing.Size(120, 25); }); Style.Add <ComboBoxHandler>(null, h => { h.Size = new Eto.Drawing.Size(120, 25); }); Style.Add <TextBoxHandler>(null, h => { h.Size = new Eto.Drawing.Size(120, 25); }); var app = new AltmanApplication(generator); app.Run(); }
static void Start() { var generator = Platform.Get(Platforms.WinForms); Style.Add <Eto.WinForms.Forms.Controls.GridViewHandler>(null, h => { h.Control.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; h.Control.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; h.Control.BackgroundColor = System.Drawing.SystemColors.Window; }); Style.Add <FormHandler>(null, h => { h.Control.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; }); Style.Add <MenuBarHandler>(null, h => { h.Control.BackColor = System.Drawing.SystemColors.Control; }); Style.Add <DropDownHandler>(null, h => { h.Control.Font = new System.Drawing.Font(h.Control.Font.FontFamily, 10.5F, System.Drawing.FontStyle.Regular); }); Style.Add <ComboBoxHandler>(null, h => { h.Control.Font = new System.Drawing.Font(h.Control.Font.FontFamily, 10.5F, System.Drawing.FontStyle.Regular); }); Style.Add <TextBoxHandler>(null, h => { h.Control.Font = new System.Drawing.Font(h.Control.Font.FontFamily, 9.5F, System.Drawing.FontStyle.Regular); //h.Control.ImeMode = System.Windows.Forms.ImeMode.Disable; }); //Style.Add<Eto.WinForms.ButtonHandler>(null, h => //{ // h.Control.Font = new System.Drawing.Font(h.Control.Font.FontFamily, 9.5F, System.Drawing.FontStyle.Regular); //}); generator.Add <TabControlPlus.IHandler>(() => new TabControlPlusHandler()); var app = new AltmanApplication(generator); app.Run(); }
static void Start() { var generator = Platform.Get(Platforms.WinForms); Style.Add<Eto.WinForms.Forms.Controls.GridViewHandler>(null, h => { h.Control.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; h.Control.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; h.Control.BackgroundColor = System.Drawing.SystemColors.Window; }); Style.Add<FormHandler>(null, h => { h.Control.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; }); Style.Add<MenuBarHandler>(null, h => { h.Control.BackColor = System.Drawing.SystemColors.Control; }); Style.Add<DropDownHandler>(null, h => { h.Control.Font = new System.Drawing.Font(h.Control.Font.FontFamily, 10.5F, System.Drawing.FontStyle.Regular); }); Style.Add<ComboBoxHandler>(null, h => { h.Control.Font = new System.Drawing.Font(h.Control.Font.FontFamily, 10.5F, System.Drawing.FontStyle.Regular); }); Style.Add<TextBoxHandler>(null, h => { h.Control.Font = new System.Drawing.Font(h.Control.Font.FontFamily, 9.5F, System.Drawing.FontStyle.Regular); //h.Control.ImeMode = System.Windows.Forms.ImeMode.Disable; }); //Style.Add<Eto.WinForms.ButtonHandler>(null, h => //{ // h.Control.Font = new System.Drawing.Font(h.Control.Font.FontFamily, 9.5F, System.Drawing.FontStyle.Regular); //}); generator.Add<TabControlPlus.IHandler>(() => new TabControlPlusHandler()); var app = new AltmanApplication(generator); app.Run(); }