Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Phantom Vertical Scroll Bars
Message
From
02/07/2011 15:16:36
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01517074
Message ID:
01517160
Views:
70
>Okay, thanks (that was easy), I totally forgot about that function. Anyway, attached is a screen shot where the scroll bars appear. I might add they go away when you select another page and then go back to where they were. Also, in case it matters, these only occur after I programmatically cut and paste the contents of the various edit boxes in the form and paste them into MS Word for spell checking.

OK, you've got controls "bleeding through" from different pageframe pages. My first thought would be a video driver issue. One quick way to check for this is if you have another, different computer with a different video adapter on which you could run the app, and see if it exhibits the same problem. If no problem with the other computer, you likely have a video driver issue with the first one. If it also displays the problem, likely it's something else.

If you don't have a computer with a different video adapter handy, you could check that the driver in use is exactly correct for the actual hardware, and update it. If it's nVidia or AMD/ATI, they are constantly releasing updated drivers.

If the video driver appears correct and is up-to-date, you could go into the Display applet in Control Panel and look at any advanced properties of the driver. For example, many drivers offer the ability to vary the level of hardware acceleration. By default, this is usually set to maximum. For test purposes, you could reduce the level, even to zero, to see if that has any effect.

The idea is, VFP doesn't use standard Windows techniques for drawing/painting controls on-screen. If VFP's non-standard methods are not handled properly, or too aggressively (e.g. bitmap caching), by the video driver, this sort of thing can result.

If that doesn't fix it, I'd next look at exactly how you're doing the copy/paste/Word interface tasks. Hopefully you're using OLE automation, and not actually injecting keystrokes or calling the VFP menu's Cut/Copy/Paste functions. I could see the latter potentially causing focus or other issues if you have, for example, .KeyPress code in effect in various places.

Having said that, one thing you could try as a workaround would be to wrap your copy/paste/Word stuff in .LockScreen:
MyForm.LockScreen = .T.

* Copy/Paste/Word stuff goes here

MyForm.LockScreen = .F.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform