Fake modal dialog using Show?

前端 未结 3 696
我寻月下人不归
我寻月下人不归 2020-12-17 04:19

My application have several modules, each in one tab on the mainform. When using a dialog it is convenient to call ShowModal because you know when the dialog is finished. Bu

3条回答
  •  离开以前
    2020-12-17 04:31

    You will have to do the following:

    1. Have an identity for each module
    2. Have a flag that is active or inactive for each module
    3. Have a flag that stores the modality of the attached dialog. If it is modal and the module is active, then call the show method in the appropriate eventhandler. Remember to update these values in the onshow and onclose events of each dialog.

    You may have to fine tune this suggestion till you achieve the exact functionality that you require.

提交回复
热议问题