Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to have more than one modal dialog?
#4
Hi Dan and thanks for your suggestions! Your suggestions do not work right away if I apply it to the ShowModal method in my base frame, I still get the same rendering error. But I found the example you referred to and saw that they use the same TIWModalWindow instance for different purposes. So I tried to move the component from the frame to the form (so that there is a single instance) and let the base frame have a ModalWindow property instead. This was not enough however, I also had to make sure that I removed the previously showed frame from its parent control before showing the other. I have not had time to investigate why this is so, although I suspect it could have something to do that we have more than one control named IWFrameRegion (inside the frames) that we use as ContentElement. I attach a new version of my test program which functionally seems to be working OK now. I will check if I can apply this kind of change to my real world application as well.

/Magnus


Attached Files
.zip   ModalDialogTest2.zip (Size: 9.91 KB / Downloads: 4)
Reply


Messages In This Thread
RE: How to have more than one modal dialog? - by magosk - 09-17-2019, 10:57 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)