Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modal Form
Message
From
06/11/2007 11:46:46
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
06/11/2007 11:10:43
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01266190
Message ID:
01267012
Views:
16
>This code in Resize method make it works:
>
>
	*!*	Work around the bug with minimizing modal form
>IF this.windowstate # 1 && if this window is minimized
>	FOR EACH oForm IN _SCREEN.Forms && loop through all the formas
>			IF oForm.WindowType = 1 && if found modal form
>                            lcModalForm= oForm.Name && name of modal form			
>                            WITH &lcModalForm
>				.windowstate = 2 && Maximize modal form
>				.windowstate = 0  && put modal form in normal size
>			ENDWITH
>		ENDIF
>	ENDFOR
>ENDIF
Not quite sure what you're doing here... but, doesn't it flash? It probably doesn't have the time to show at all between the maximized and normal states, but on some machines it might.

Also, why "WITH &lcModalForm" - you already have a reference to it, the oForm itself, you can simply do "with oForm".

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform