Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with Previews Paint
Message
De
07/08/2006 05:13:52
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Problem with Previews Paint
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
Visual FoxPro
Divers
Thread ID:
01143382
Message ID:
01143382
Vues:
73
Hi All,

I have something with the new preview container that I don't understand.

Within the previewcontainer (as in xsource: frxpreviewform OF ....\frxpreview.vcx) there is some use of paint. I understand why paint is used. I understand that the forms paint fires after _SCREEN.Paint fires.
Now I have the stupid problem that after changing the zoomlevel via the toolbar or the L key I run in an Paint loop.
The same problem also happens after scrolling and sometimes moving the a page. It doesn't matter if I see 1,2 or 4 pages.

_SCREEN.Paint fires, then the form.Paint doing is repainting of the output. If the forms paint ends the _SCREEN.Paint fires again. So the preview is repaintet over and over.
Sometimes this happens a smal number, sometimes it does not stop until a change of the preview.

The following is a snappet from my eventlog:
35084,964, frxpreviewform.Resize()
35084,970, frxpreviewform.Resize()
35084,970, frxpreviewform.KeyPress(108,00, 0,00)
35084,970, frxpreviewform.Paint()
35085,566, screen.Paint()
35085,573, frxpreviewform.Paint()
35086,155, screen.Paint()
35086,161, frxpreviewform.Paint()
35086,743, screen.Paint()
The Coverage looks like
   0.002295,frxpreviewform,frxpreviewform.renderpage,15,c:\..\reportpreview\frxpreview.vct,18
   0.001241,frxpreviewform,frxpreviewform.renderpage,17,c:\..\reportpreview\frxpreview.vct,18
           ,frxpreviewform,frxpreviewform.renderpages,20,c:\..\reportpreview\frxpreview.vct,17
   0.004185,frxpreviewform,frxpreviewform.renderpages,26,c:\..\reportpreview\frxpreview.vct,17
   0.001153,frxpreviewform,frxpreviewform.paint,21,c:\..\reportpreview\frxpreview.vct,16
   0.001314,frxpreviewform,frxpreviewform.paint,36,c:\..\reportpreview\frxpreview.vct,16
   0.002485,frxpreviewform,frxpreviewform.paint,9,c:\..\reportpreview\frxpreview.vct,16
   0.564606,frxpreviewform,frxpreviewform.paint,14,c:\..\reportpreview\frxpreview.vct,16
   0.001294,frxpreviewform,frxpreviewform.renderpages,1,c:\..\reportpreview\frxpreview.vct,17
   0.001045,frxpreviewform,frxpreviewform.renderpages,9,c:\..\reportpreview\frxpreview.vct,17
   0.001175,frxpreviewform,frxpreviewform.renderpages,10,c:\..\reportpreview\frxpreview.vct,17
The pain is the change from Line 36 to line 9 in PAINT. There is no loop or the like. In the example above the line 36 is RETURN. There is a DOEVENTS in the Paint but it has no influence.

What else? The problem mostly occurs if I switch the zoomlevel from 300% to 200%.

Can someboy reproduce the failure or have any solution?

TIA

Agnes

Update:
It seems that the problem goes harder if I change _REPORTPREVIEW.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform