Re: Win32 Modal dialog problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Purely as a workaround, call gtk_window_presenton your main window from a callback connected to the "destroy" event on the dialog. Something like this (untested):

void on_dialog_destroyed(GtkWidget *dialog, gpointer data)
{
    gtk_window_present(GTK_WINDOW(data));
}
...
g_signal_connect(myDlg, "destroy", on_dialog_destroyed, _mainwnd);

--
Tim Evans
Applied Research Associates NZ
http://www.aranz.com/


Thanks Tim,
That worked a treat.
I do have another question regarding dialogs on Win32, I can't seem to get rid of
the minimise and maximise buttons on the dialogu title bar. This has the unfortunate
effect, that if the user clicks the minimise button, the dialog is hidden on
the desktop by other open applications, even though my application remains
open. Any work arounds for this?
Thanks,
Clive


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.643 / Virus Database: 411 - Release Date: 25/03/2004
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux