[Gtk-sharp-list] alter TypeHint GTK.Window to GTK.Dialog

Baltasar García Perez-Schofield baltasarq at gmail.com
Fri Jan 20 15:19:13 UTC 2017


You need to change the class itself to derive from GTK.Dialog. create a new
dialog and copy the contents from the window to the dialog, that will do
the trick.

El vie., 20 ene. 2017 13:50, salvadorRenato <renato at star2.com.br> escribió:

> Hi, I'm changing the typeHint of a GTK window for dialog.
> I would like to know how I use run () after this change?
>
>
> Using System;
> Using Gtk;
> Using Pango;
> Using System.IO;
> Using System.Threading;
> Using System.Threading.Tasks;
>
> Namespace StarCheckOut
> {
> Public partial class frmInicial: Gtk.Window
> {
> Public frmInicial ():
> Base (Gtk.WindowType.Toplevel)
> {
> This.Build ();
> This.Deletable = false;
> This.TypeHint = Gdk.WindowTypeHint.Dialog;
>
> }
>          }
> }
>
> On another screen I declare the same
>
> FrmInicial frm = new frmInicial ();
>
> Frm.Show ();
>
> But does not have this funccion
>
> Frm.run ()
>
> How do I activate or pick up the return of this screen.
>
>
>
> --
> View this message in context:
> http://mono.1490590.n4.nabble.com/alter-TypeHint-GTK-Window-to-GTK-Dialog-tp4669755.html
> Sent from the Mono - Gtk# mailing list archive at Nabble.com.
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.dot.net
> http://lists.dot.net/mailman/listinfo/gtk-sharp-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/gtk-sharp-list/attachments/20170120/bfb42589/attachment.html>


More information about the Gtk-sharp-list mailing list