Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File Chooser doesn't want to disappear
Message
 
 
To
15/11/2001 11:43:31
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00581793
Message ID:
00582180
Views:
27
Steve,

The problem fixed by setting property nLastActivePage to 1 in design-time.

Thanks a lot for your help.

After I removed pageframe from this form, it works just fine. So, the pageframe is a culrpit. I'll try pageframe without objects to see, if pageframe indeed causes the problem. However, I still need a solution... and getting rid of pageframe would not be it :)

Later tests indicated, that the problem indeed in this particular pageframe. So, now I have to examine it closely...

This code in Page.Activate causes this problem:
********************************************************************
*  Description.......: Page1.Activate()
*  Calling Samples...:
*  Parameter List....:
*  Created by........:
*  Modified by.......: Nadya Nosonovsky 05/31/2000 05:38:35 PM
********************************************************************
with thisform
	if .nLastActivePage<>1
<b>		.lockscreen=.t.</b> && Causes this whole problem...
		.dataenvironment.initialselectedalias='DataDict'
		select DataDict
		this.refresh()
		.navstand.navupdate()
		.navstand.lstOrders.enable()
		.navstand.lstOrders.refresh()
		lockscreen=.f. 
		.nLastActivePage = 1
	endif
endwith	
Thanks again for your help.



>Nadya,
>
>I created an .exe file with a non-modal form, with a button that launches a modal form. On the modal form, there is a button which launches the file_chooser code. Each form is based on VFP base classes.
>
>I had no problem running the .exe under W2K or Windows 98 (outside of development environment).
>
>You have no problem running modal form by itself, so I would be strip most of the stuff out of first form to see if it starts working. Did lockscreen not fix it?
>
>
>>Steve,
>>
>>Just found, that the first form was modal too. But making it non-modal doesn't make a difference. I'm sending you a picture of the screen, after I clicked open button on File_Chooser dialog, so you can see this weird problem yourself. BTW, I found, that this behavior is only the first time. After second time it disappears just fine...
>>
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform