Reply
Thread Tools
Posts: 23 | Thanked: 8 times | Joined on Apr 2009 @ Germany
#1
Hi!

Suppose I have one window in my application and I open another window. Normally I make this window "transient" for the first one, but the second window completely covers the parent. What shall I specify for the second window so that it takes only half height of the screen leaving the other half for parent? Something similar to what virtual keyboard does when it pops up?
 
Posts: 654 | Thanked: 664 times | Joined on Feb 2009 @ Germany
#2
If you're using Gtk/Hildon, then use a GtkDialog instead of a GtkWindow. A dialog is usually scaled depending on its content, but it could also be possible to set the size with gtk_widget_size_request(). If not, just add something which takes up some space. Probably you want to add something to the window anyways
 
Posts: 23 | Thanked: 8 times | Joined on Apr 2009 @ Germany
#3
Hm, but GtkDialog implies that the window is split into vbox and action_area. I don't want this split. I just need a normal window that allows user to do some other actions. Should I use gtk_window_resize for both parent and child? But then I have to know how much to resize. Anyone knows how the virtual keyboard does its work? Or maybe there are sources available?
 
Reply


 
Forum Jump


All times are GMT. The time now is 13:30.