Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to have more than one modal dialog?
#3
I took a quick look at your code.  Please see the IW demo "ModalWindow" on github.

The code to show a region looks like this:


Code:
with IWModalWindow1 do begin
    Reset;
    Buttons.CommaText := '&OK,&Cancel';
    Title := ATitle;
    ContentElement := ARegion;
    OnAsyncClick := WindowDoOnAsyncClick;
    FriendlyName := 'mydlg';
    CloseButtonVisible := False;
    CloseOnEscKey := False;
    Show;
  end;

I see you are using "showmodal".  You should do a reset, then load the elements and show as in the demo.

Dan
Reply


Messages In This Thread
RE: How to have more than one modal dialog? - by DanBarclay - 09-16-2019, 09:59 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)