[Gambas-user] Report.Layout
Fabien Bodard
gambas.fr at gmail.com
Mon Aug 1 22:29:50 CEST 2022
Layout is for compute all the content arrangement before being able to draw
it.
The paint fonction call it automatically
But sometime it is usefull to layout in advance liké for the preview
Le lun. 1 août 2022 à 21:53, T Lee Davidson <t.lee.davidson at gmail.com> a
écrit :
> On 8/1/22 07:09, gian via User wrote:
> > Hi,
> >
> > in my relentless progressive senile stupor, in trying to figure out what
> the Report.Layout method is for (I think it should not
> > have changed from the old gb.report
> http://gambaswiki.org/wiki/comp/gb.report/report/layout ), I came across
> this, I think
> > bizarre, behavior of DataCount
> http://gambaswiki.org/wiki/comp/gb.report2/reportcontainer/datacount .
> >
> > Here the report keeps loading pages until the stack overflows.
> >
> > Could someone kindly explain to me what I am doing wrong and what
> Report.Layout is for ?
> > See attached project
> >
> > Thank you for your attention & Regards
> >
> > Gianluigi
> I don't think you're doing anything wrong. I think it's a bug.
>
> The Data event for the ReportImage is raised 6 times when it should be
> raised only 3 given that ReportHBox2.DataCount = 3. The
> Data events for the ReportLabels that have been given text in the IDE are
> never raised. And, the Data events for the other two
> labels continually recycle through the index 0-2, again and again.
>
> And, sorry, I have no idea what Report.Layout() is for. I moved it around
> to a couple different locations in the code, and it
> did not appear to change the behavior.
>
>
> --
> Lee
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220801/9c6c5cea/attachment-0001.htm>
More information about the User
mailing list