What I’d like is to be able to nest modal windows:
auto A = new BWindow(…) // Main app window
A->Show()
auto B = new BWindow(…) // First dialog
B->SetFeel(B_MODAL_SUBSET_WINDOW_FEEL)
B->AddToSubset(A)
B->Show()
auto C = new BWindow(…) // Second dialog
C->SetFeel(B_MODAL_SUBSET_WINDOW_FEEL)
C->AddToSubset(B)
C->Show()
But in this case, C doesn’t appear when I call Show. Am I not understanding how it should work? My code is expecting that each dialog blocks the previous windows until it’s closed. It’s not the “Haiku” way of doing things but it’d be helpful to have until I can make the underlying code more Haiku friendly. The use case I’m looking at the moment is in i.Disk where the main window is “A” and “B” is the replication dialog which asks the user for various source and destination folders. Which then spawns “C” a folder selection dialog. If I remove all the SetFeel/AddToSubset calls the dialogs all show up.