05-31-2019, 03:20 AM
(This post was last modified: 05-31-2019, 03:26 AM by DanBarclay.
Edit Reason: added code hack
)
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.
Dan
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

