Re: [MSEide-MSEgui-talk] Child form position - main form center?

2016-05-01 Thread Martin Schreiber
On Saturday 30 April 2016 12:41:10 Krzysztof wrote:
> 2016-04-30 8:06 GMT+02:00 Martin Schreiber :
> > I'll take a look. How do you show the form?
>
> Like this:
>
> var f: TfrmEditLibraryDirs;
> begin
>   f := TfrmEditLibraryDirs.Create(nil);
>   try
> f.show(True);
>   finally
> f.Free;
>   end;
> end;
>
> If there will be some kind of fo_ownerformcenter then I could pass
> owner form instead of nil
>
Git master 36918157eeb535bca33709abfbe9d9ca6dec391c has 
fo_transientforcentered, fo_mainwindowcentered. Please use:
"
 f.show(true,TheTransientForWidget.window);
"
for fo_transientforcentered. If "transientfor" parameter is nil the last 
active window is the base window.

Martin

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Child form position - main form center?

2016-04-30 Thread Krzysztof
2016-04-30 8:06 GMT+02:00 Martin Schreiber :
> I'll take a look. How do you show the form?

Like this:

var f: TfrmEditLibraryDirs;
begin
  f := TfrmEditLibraryDirs.Create(nil);
  try
f.show(True);
  finally
f.Free;
  end;
end;

If there will be some kind of fo_ownerformcenter then I could pass
owner form instead of nil

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Child form position - main form center?

2016-04-30 Thread Martin Schreiber
On Friday 29 April 2016 23:19:24 Krzysztof wrote:
> Hi Martin,
>
> I have modal form with option fo_screencentered but is it possible to
> center on main form? Second useful option could be "center on owner
> window". Options I'm talking about in LCL are named as TForm.Position
> = [poScreenCenter, poMainFormCenter, poOwnerFormCenter]
>
I'll take a look. How do you show the form?

Martin

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


[MSEide-MSEgui-talk] Child form position - main form center?

2016-04-29 Thread Krzysztof
Hi Martin,

I have modal form with option fo_screencentered but is it possible to
center on main form? Second useful option could be "center on owner
window". Options I'm talking about in LCL are named as TForm.Position
= [poScreenCenter, poMainFormCenter, poOwnerFormCenter]

Regards

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk