Главная страница | назад





Article #16234: Multiple open dialogs

 Question and Answer Database

FAQ1234C.txt   Multiple open dialogs
Category   :OWL
Platform    :All
Product    :BC++  5.x

Question:


Does anyone know how one goes about keeping more than one 
dialog box open at a time ?

For example, open a dialog box complete with its own clickable
buttons, clicking a nominated button within this first dialog
opens another dialog. The second dialog has its own clickable
buttons. Essentially both dialogs need to be active as do all of 
the associated buttons.

Answer:

What you need are modeless dialogs. Rather than displaying your 
dialogs with Execute() use Create(). If you are talking about 
something other than modeless dialogs (multiple dialogs open and
the main window deactivated, for instance) then you are going to
have to do a little more work. You might find 
TApplication::BeginModal() and EndModal() handy in that case.

5/18/98 8:43:26 AM
 

Last Modified: 01-SEP-99