FLTK logo

Re: de-activate a window

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: de-activate a window Albrecht Schlosser Nov 30, 2009  
 
Jason Cumiskey wrote:
> I am writing an application that contains one main window and when you
> select a specific radio button, I want a new, smaller window to pop-up
> and take user input.  While this is happening, I want the main window to
> be totally de-activated (users can't interact it with it at all). I
> tried calling set_modal() on the new window

that's okay

> and set_non_modal() on the main window

that's bad

>  but it doesn't seem to work.  I am running FLTK 1.1.9 on
> Ubuntu 9.10

You must not set non-modal() on the main window. It's strange,
but non-modal is another kind of modal (thanks to MS).

I think that you must call set_modal() before you show() the
window for the first time. Maybe you did it after show()?

Albrecht
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.