Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"cannot make a visible window modal"

228 views
Skip to first unread message

timbo...@gmail.com

unread,
Jul 1, 2013, 11:23:22 AM7/1/13
to
I'm now getting this message when trying to display a simple options dialog. It was previously working fine, and I'm not conscious of having changed anything relevant. I've tried all the solutions suggested here and elsewhere, but none seems to be relevant. Originally the form was auto-created but set invisible and not enabled, in a vain attempt to fix the problem I've changed it to be created on the fly, as below:

SiamOpt:=TSIAMOpt.Create(Self);
with SiamOpt do
begin
visible:=false;
try
if ShowModal= idOK
then begin
LogScore:=LogBox.Checked;
Beeping:=SoundBox.Checked;
waitonerror:= WaitBox.Checked;
ClockRunning:=ClockBox.Checked;
SoundVolume:=100-VolumeBar.Position;
end
finally
Free;
end;
end;

Any ideas, please?

Thanks.

Regards,
Tim.

timbo...@gmail.com

unread,
Jul 1, 2013, 12:15:24 PM7/1/13
to
On Monday, July 1, 2013 4:23:22 PM UTC+1, timbo...@gmail.com wrote:
> I'm now getting this message when trying to display a simple options dialog. It was previously working fine, and I'm not conscious of having changed anything relevant. <

OK, solved. When I first got this message, it was due to finger trouble when cloning an existing application, but while tracing that one, one helpful person said the cause could be if the form was either visible or enabled. I therefore disabled it. I now know that advice was wrong; the form MUST be enabled.

Regards,
Tim.

0 new messages