09-16-2019, 09:59 PM
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:
I see you are using "showmodal". You should do a reset, then load the elements and show as in the demo.
Dan
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