Re: [fltk/fltk] fl_choice() doesn't tell you if the dialog was closed (#282)

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.issues  ]
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] fl_choice() doesn't tell you if the dialog was closed (#282) Albrecht Schlosser Oct 15, 2021 top right image

FTR: I've implemented something as described above in my attempt to fix STR 3242 and this issue together. Tests look good but I'll need some more tests and I'm now working on improving the docs. That said, ...

@CendioOssman Would you also like to distinguish closing the window with the Escape key or the window close button?

Another option would be to use a new function name like fl_choice2 that returns e.g. -1 for Escape and -2 for window close (or vice versa). Both new return values would be negative to simplify handling so you can use ret <= 0 to check if one of these occurred.

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

Direct Link to Message ]
bottom left image   bottom right image
Previous Message ]New Message | Reply ]Next Message ]

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