Re: issues about modal dialogs



Hi Paul,
thank you for your reply
Unfortunately i've run into one little problem

On Monday 14 January 2002 15:14, Paul Davis wrote:
> >- How can I make modal dialogs "always-on-top" between my application
> >windows? Just like Win32's modals, that won't allow hiding the dialog
> >under another window of the same application.
>
> gdk_window_set_transient_for()   <= asks the WM to keep one window on
> 				     top of another
> gdk_window_set_decorations()     <= asks the WM to avoid various
> decorations such as the delete button,
> 				     raise/lower etc.
>

I checked it out and tested it..
Yes, it resembles what i wanted to do, but:
1) (more important) If I have window "main_window", and window 
"edit_entry_window", and one of them pops up a question dialog, i can set the 
dialog transient only for one of them, and the other window will be 
able to hide the question dialog...
2) (less important) It keeps the window ontop, but allows the user to focus 
another window (always speaking within the same application process), that 
differs from win32's behaviour and it is weird because it looks more a 
"always on top" situation instead of a "modal" situation.


I thought that a hack for the first trouble would be making edit_entry_window 
transient for main_window, and the question dialog transient for 
main_window.. but it would be really a poor hack..

Regards

-- 
Johnny



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