Re: new user problem, Please Help me

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

 



Here's some sample code I posted on www.gtkforums.com in response to somebody asking about modal dialogs:

http://www.gtkforums.com/about826.html

I show 3 types of a dialog window.

One other thing you might want to read about when to use modal and how your dialogs and windows should act, read the Gnome Human Interface Guidelines: http://library.gnome.org/devel/hig-book/stable/
- Micah Carrick

  Developer - http://www.micahcarrick.com
  GTK+ Forums - http://www.gtkforums.com


Michael Lamothe wrote:
Hi Watchara,

I think the concept that you are looking for is called "modal".
Usually, the window on top is called the "child" window and the one
behind the child is called the "parent" window.

The child needs to be modal and have a transient window set to be that
of the parent.  Look at the "Modal:" and "Transient window for:"
properties under the "General" tab of the window properties in Glade.
Also, I found that I had to set the "Type hint:" to "Dialog".

Also, I think that there's a function gtk_dialog_run() that should be
called to display the child window in your case.

For more background reading see gtk_window_set_modal() and
gtk_window_set_transient_for().

Hope that helps a bit.

Thanks,

Michael

On 27/11/2007, Watchara Kangkun <watchara.kangkun@xxxxxxxxx> wrote:
  
Hello,

I am new GTK+ user.
I use glade to create UI.

and now i have the problem

- i make "window" and "AccountLayout" . Now, when i call my program it
will show "window" and "AccountLayout" and can click/move "window" and
"AccountLayout". but i want to when "AccountLayout" is show , i want
to can't move/click/etc outside "AccountLayout" like when i click on
"Browse" i can't do anything outside Browse window, i don't know
concept.

- "AccountLayout" have 2 button "ok" and "cancel" and 4 GtkEntry. i
want to when i click on cancel button. "AccountLayout" will destroy.
and when i click on ok button. i will show text in 4 GtkEntry and
"AccountLayout" will destroy.

Are you understand my problem? My english is very poor :-(

Thank You Very Much
Watchara Kangkun
Stupid Man
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

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

  
_______________________________________________
gtk-list mailing list
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