Centered to MDI


Pavel Mencl
 

I have a batch task that opens its window and is set StartupPosition=CenteredToMDI.
Which it does when run from the Studio but when it's run from the Runtime engime, it ignores this setting.
Any idea why?
It's xpa 3.1.

Thanks
Pavel


Steven Burrows
 

Maybe Persistent Form State is on and you have previously moved it ?

 

Steven Burrows

 

From: main@magicu-l.groups.io <main@magicu-l.groups.io> On Behalf Of Pavel Mencl via groups.io
Sent: 17 January 2023 14:56
To: main@magicu-l.groups.io
Subject: [magicu-l] Centered to MDI

 

I have a batch task that opens its window and is set StartupPosition=CenteredToMDI.
Which it does when run from the Studio but when it's run from the Runtime engime, it ignores this setting.
Any idea why?
It's xpa 3.1.

Thanks
Pavel


Pavel Mencl
 

Bingo!  I've thought PersistantFormState doesn't apply to Batch tasks but obviously it does.
Thanks!