Lazarus

Programming => Packages and Libraries => LazReport => Topic started by: JanRoza on April 16, 2020, 04:02:11 pm

Title: [SOLVED] How to open lazReport window maximized
Post by: JanRoza on April 16, 2020, 04:02:11 pm
I notice that whatever I do the report window always opens in a fixed size window and I have to maximize it manually.
Is there a property or a way to get the report window opening maximized after a ShowReport?
Title: Re: How to open lazReport window maximized
Post by: JanRoza on April 18, 2020, 10:16:32 pm
Anyone?
Title: Re: How to open lazReport window maximized
Post by: GAN on April 19, 2020, 12:03:25 am
Hi, I did not found nothing, so may be that we not have this option. I've also searched the source code.
Title: Re: How to open lazReport window maximized
Post by: eljo on April 19, 2020, 12:07:52 am
As far as I remember lazreport (or better freeReport that lazaREport is based on) was using a ini file in the windows directory to save those kind of settings so the next time you open the viewer it comes up in the size it had last closed.

I do not remember ever needed to force a maximized preview when used it though so I'll need to take a look on the code to see how things work, well in two days time, holidays and family time and all.
Title: Re: How to open lazReport window maximized
Post by: JanRoza on April 19, 2020, 12:55:20 am
I solved it for now by adding "WINDOWSTATE=wsMaximized" in file lr_view.lfm and recompiling component lazReport, so it now always opens maximized when I use Showreport.
But it would be much nicer if lazReport had WindowState as property in the object inspector, so you can decide per report what you want.
CodeTyphon's next release will have this option, would be nice if Lazarus has it too.
Title: Re: [SOLVED] How to open lazReport window maximized
Post by: itgiu on June 07, 2020, 11:26:15 am
in which part you have modified lr_view ??
TinyPortal © 2005-2018