FLTK logo

[fltk.general] Re: how to restore position of hidden modeless form

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: how to restore position of hidden modeless form Ian MacArthur Dec 14, 2021  
 

On Monday, 13 December 2021 at 20:57:09 UTC Mo wrote:
make_modal() just calls Fl_Window::set_modal and set_non_modal depending on the flag. 

OK - but for the avoidance of any doubt here, I feel it is worth emphasising that the "modal-ness" of a window has three states, not two, so a binary true/false option may not cover it. Does the Rust port also provide a method to remove the "modality" altogether and set the window back to normal?  (cf;  Fl_Window::clear_modal_states(); )

For those following along who may be unfamiliar with the (somewhat odd, in my opinion) terminology, it comes out as something like:

modal - a window that remains on top of its parent, and grabs the focus so that all interactions go to that window rather than the parent (menus, alert dialogs, etc.)

non-modal -  a window that remains on top of its parent, but DOES NOT grab the focus so  that the parent can still be used (toolboxes, typically and other types of dialog)

normal - a regular window, that does not remain on top or prevent access to its peers: this is the default for a window


So... I'm still not really clear on why Mark had a non-modal window at all; it seemed like a normal window would have been what was wanted?

Anyway, notwithstanding, it sounds like it has been sorted out anyway, which is good.

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/bd46d477-8f55-4495-a9a1-588cb99e0d51n%40googlegroups.com.
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'.