Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem while minimizing vfp window

Status
Not open for further replies.

adcounsel1

Programmer
Jan 27, 2005
46
PK
Dear All

when i minimize vfp program window, i am unable to restore/maximize the vfp program window. Also sometime it happen that Esc key dont work. I have test this on all o/s i.e. win98, win200opro, xp but problem remain the same.

Also if i dont minimize vfp program windows, it works fine.

Thanks

Hashim
 
SET ESCAPE OFF in the program will disable the escape key.

As for the resize problem, do the forms have maximise and restore buttons? If they have the buttons and the forms won't resize then there may be some code in the Resize event that's failing.

Geoff Franklin
 
Are you by chance messing with the MinHeight or MinWidth settings somewhere?
Try testing these settings in a timer and see if it changes:
Thisform.WindowState(0)
Thisform.WindowState(1)
Thisform.WindowState(2)


-Dave Summers-
[cheers]
Even more Fox stuff at:
 
Force Window to Front (not blink in taskbar) faq184-4262

boyd.gif

 
I normally dont use frames, i am useto design screen in code, it gave me somehow better control:

DEFINE WINDOW bigwind ;
AT 0, 0.000 ;
SIZE 29,80 ;
TITLE client_hd + " - " + sys_name ;
FONT "ms sans serif", 10 ;
MINI ;
STYLE "B" IN desktop ICON FILE PLANE

it works fine untill or unless, i dont minimize but when i do, it misbehave, sometime start blinking in task bar, but dont maximize or sometime maximize and screen is white and program is working in background.

What will be the reason, Thanks

Hashim
 
Hashim,
I believe you need to add either ZOOM or SYSTEM to this Window definition to prevent this situation. Essentially you've created to allow Mini(mize), but not to restore or maximize.

Rick
 
adcounsel1,

To avoid the blinking and see the reason for it, please read the FAQ I posted for you above.

As to the screen being white while your app is processing code, this is caused by the form not repainting. This can happen when heavy processing is happening as the form is not able to get to it's message queue and receive the repaint messages it needs. Try adding a few well placed DOEVENTS calls in your code and see if that improves the overall responsiveness of the form repainting. In the end there is no way to completely avoid this, but it can be greatly improved.

boyd.gif

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top