Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Window contents while dragging / resizing
Message
From
06/02/2014 03:53:51
 
 
To
06/02/2014 03:42:20
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01593391
Message ID:
01593394
Views:
43
>>>Hi All,
>>>
>>>You know there is a setting in Windows display options called "Show window contents while dragging" - this shows the window's contents when you move or resize the window, dynamically resizing the contents if necessary. Is there a way to switch that off from VFP or, at least, tell my VFP app to ignore that setting. When this setting is off only the border of the window is moved or resized and once the operation is complete only then does the window contents refresh.
>>
>>You can set .Dockable to 1 instead of the default 0 (2 doesn't do what you want). However, border redraw performance on Vista and Win7 is abysmal and sometimes leaves trailing screen artifacts on my system (Win7) (dunno about 8/8.1).
>
>Sorry, Al, I was not clear. I'm talking about at run-time. When a user resizes one of my application's windows I don't want Windows to send the window any re-draw messages. Instead I want it to behave as if "Show window contents while dragging" is off, let the user resize the window, and when he has finished resizing it then Windows should send the window a resize complete message and only at that point do I want to refresh my window's contents. And I would like to do this regardless of what setting the user has chosen on his machine.
>
>If need be, I would be happy with a solution whereby I can switch off this Windows feature via an API call. I want to do this for a terminal services environment setup where I want to reduce traffic. The alternative is to find some way to switch off this feature for all users under a TS / RDP session but I haven't been able to find that setting. Even if I switch if off under the admin account, the individual user accounts default to this feature being on.

1. My understanding is the BITMAP=OFF setting in CONFIG.FPW is specifically designed to reduce screen redraws and associated traffic in RDP environments - you could try that if you're not using it already

2. Group Policy on the TS (or domain) is probably your friend if you want to turn off that Windows behaviour for all users. Sorry I don't know the specific setting, you'll need to do some Googling e.g. ["show contents while dragging" group policy]
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