Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP9 report preview with search ability
Message
From
18/08/2005 18:44:06
 
 
To
18/08/2005 01:37:23
Dorin Vasilescu
ALL Trans Romania
Arad, Romania
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
SAMBA Server
Miscellaneous
Thread ID:
01041840
Message ID:
01042118
Views:
24
Dorin -

I tried to higlight the portion of preview area using shape, lines, Box().
Nothing worked. I only see a flash when the shape around text is drawn, then the page is redrawn without it. Any other ideas about highlighting an area in preview page? Maybe with GDI+.


The "quick and dirty" way that I have done it this: You need to put your BOX() call in a ReportPreview ExtensionHandler's Paint() event. This will cause looping, so you need to implement a timeout after which your BOX() code is not executed. If you choose, say, 3 seconds, this means that the area of the page is highlighted for 3 seconds, after which the highlight goes away and does not appear again.

During those three seconds, the paint is being called over and over again. That's why it's a good idea to limit the time duration.

...I said it was quick and dirty. But the effect is actually quite pleasing. It is by no means the best or only way to do it.

- Colin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform