05-31-2019, 06:01 AM
(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....