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] TForm.Icon - How to set from TimageList?

2016-05-01 Thread Martin Schreiber
On Sunday 01 May 2016 00:14:09 Krzysztof wrote:
> It is a puzzler. I have almost all code in mainform commented. I'm
> also removing local binnary files (exec, ppu, o). Placed TIcon on main
> form and this code:
>
>   ticon1.imagelist := IconMng.imlstDyn16;
>   ticon1.imagenum := iICO16_MAIN;
>
> ... is working fine. Heaptrc is not detecting any memory leak. Moved
> code from "afterconstruction" to mouse button and same error. Button
> is executing "Test" method. Here is stack trace (as you can see,
> finall error message is different compared to afterconstruction):
>
> 0 SYSTEM_SYSGETMEM_VAR$QWORD$$POINTER() 0 0041C43C
> 1 ??() 0 0940
> 2 ??() 0 F7FDB740
> 3 INIT_MSETYPES_QWORDARTY() 0 009E931B
> 4 ??() 0 0920
> 5 ??() 0 04A0
> 6 SYSTEM_SYSGETMEM$QWORD$$POINTER() 0 0041C5B1
> 7 ??() 0 D8B0
> 8 ??() 0 F7FDB740
> 9 ??() 0 F7F9D3E8
> 10 SYSTEM_GETMEM$POINTER$QWORD() 0 0041B4D4
> 11 ??() 0 009E9310
> 12 fpc_dynarray_setlength() 0 004144BD
> 13 GUI_SETWINDOWICON(ID=88080967, ICON=88081056, MASK=88081054)
> /home/dibo/programowanie/mse_git/lib/common/kernel/linux/mseguiintf.pas
> 1948 00504BB8

I still can not reproduce. It is possible that the memory manager data is 
invalid. Please try to build and send a testproject.

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