Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Make my own modal window
#2
(03-19-2018, 09:24 PM)davenovo Wrote: Is there a way that I can make my own IWForm, and do something like I would do in Delphi, i.e. just call Form.ShowModal.

I have found the IWModalWindow component, but the annoying thing about it is that if I want to do something fancy, I put it on a region, and set the IWModalWindow.ContentElement.

That is simple, but it means that on my main form, I have all the stuff for my main form, then I also have a region that contains the components for the modal window. So the form has tons of components on it. I would like to move the components I need for the modal window onto a separate modal window to not clutter up my main form. Especially if the main form can launch 5 or 6 modal windows it would get crazy.

Can I make a new IWFrame and put the IWFrame as the ContentElement?

That's a design issue.  You should not show the user the dialog contents before the dialog is displayed.  You should hide those regions behind your main region.  Set their visible property to false so they are not showing at runtime.  When you need to work on a dialog content region at design-time, just select it and choose Bring To Front from the Edit menu.
Reply


Messages In This Thread
Make my own modal window - by davenovo - 03-19-2018, 09:24 PM
RE: Make my own modal window - by DanielFields - 03-19-2018, 10:56 PM
RE: Make my own modal window - by davenovo - 03-19-2018, 10:59 PM
RE: Make my own modal window - by DanielFields - 03-19-2018, 11:31 PM
RE: Make my own modal window - by davenovo - 03-20-2018, 04:30 AM
RE: Make my own modal window - by DanBarclay - 03-22-2018, 06:37 AM
RE: Make my own modal window - by Francesco - 05-30-2019, 03:32 PM
RE: Make my own modal window - by davenovo - 03-20-2018, 03:27 PM
RE: Make my own modal window - by davenovo - 03-22-2018, 07:55 AM
RE: Make my own modal window - by davenovo - 03-29-2018, 04:14 AM
RE: Make my own modal window - by DanBarclay - 03-29-2018, 07:24 PM
RE: Make my own modal window - by davenovo - 03-29-2018, 07:54 PM
RE: Make my own modal window - by DanBarclay - 05-31-2019, 03:20 AM
RE: Make my own modal window - by Francesco - 05-31-2019, 06:01 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)