Re: [Fxruby-users] (Non)modal dialogues.
Status: Inactive
Brought to you by:
lyle
From: Hugh S. S. E. E. <hg...@dm...> - 2003-07-18 13:48:28
|
On Fri, 18 Jul 2003, Lyle Johnson wrote: > Hugh Sasse Staff Elec Eng wrote: > > > FXDialogBoxes can be modal or nonmodal, and if they are model it > > makes sense to use ID_ACCEPT or ID_CANCEL to effect the return value > > of execute, otherwise one makes them disappear with hide. > > > > So, how does code in a subclassed FXDialogBox test whether the box > > is modal or not? > > You should be able to use: > > getApp().modal?(theDialogBox) > > Hope this helps, Yes, that helps. I'm puzzled about this design though: the Dialog box would have to ask the application to ask the dialog box? This runs counter to "Tell, don't ask", IMO, if I understood that philosophy correctly. > > Lyle > Thank you, Hugh > |