Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Make my own modal window
#16
(05-31-2019, 03:20 AM)DanBarclay Wrote: Depending on the one you want to show, assign the region for that dialog to the TIWModalWindow.ContentElement instance on your form.  You can make/change that assignment during execution.

Note that the RenderInvisibleControls must be set prior to creating the form itself, not when you try to show the dialog if you are async.

Sorry for the short answers.  I don't have any simple code to post, and I'm reworking my machine right now anyway.  SSD's are wonderful.


 
Code:
    with IWModalWindow1 do
       begin
        Reset;
        Buttons.CommaText := '&Ok,&Cancel';
        Title := 'Filter';
        if FiltroStuff then 
          begin
            ContentElement :=FFrameFiltro.IWFrameRegion;
            OnAsyncClick := FrameFiltroDoOnAsyncClick;
          end
         else
          begin
            ContentElement :=SomeOtherDialog.IWFrameRegion;
            OnAsyncClick := SomeOtherDialogClick;
           end;
        Show;
       end;

Dan

The problem is that I assign to ContentElement the FFrameFiltro.IWFramaRegion, but is displayed the FFrameInput.IWFrameRegion....
It looks that creation and initialization of more than a frame gives problems....
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)