Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Odd Preview Window Behavior
Message
From
02/06/2005 20:22:36
 
 
To
02/06/2005 16:27:34
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01017308
Message ID:
01019640
Views:
23
Brian -

I hate to say this... I think this is a bug in VFP9's window stack handling.

For a start, the preview comes up fine in a separate topform if you trace through the code line-by-line.

Secondly, it also comes up fine if you put the following commands around the report form command:
deactivate Window myform 
REPORT FORM HOME(1) + "Tools\Filespec\60SCX1.frx" OBJECT loListener
activate Window myform same
Unfortunately, this is not an ideal workaround, as you'll see.
Another workaround is to do this:
define window dummy from 1,1 to 10,10
activate window dummy
REPORT FORM HOME(1) + "Tools\Filespec\60SCX1.frx" OBJECT loListener
This succeeds in forcing the preview back to its own topform, but also shows the main VFP window (_SCREEN). If you make _SCREEN.Visible=.F. then it fails to have the desired effect.

I am fairly sure that VFP9 introduced at least one bug in the window stack handling. This looks like another set of repro steps.

This is not as helpful as I would have liked to have been.
- Colin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform