Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simplest way to prevent Deactivate in the page's Click
Message
From
30/06/2005 14:02:50
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01027764
Message ID:
01027796
Views:
22
>>>Since you cannot prevent the Deactivate event itself from happening, one way would be to store the current active page number/name in a property in Activate() event, then in Deactivate() compare and conditionally execute/not execute the other Deactivate() code.
>>
>>This is what I'm trying to do, but it's not working. In the Deactivate you're still on that page. When you finish the Deactivate, you switch.
>>
>>Do you have other ideas?
>>
>>I have an idea of using shape or some controls like mhTab, etc., but it's too much work and I'd rather avoid this kind of complexity...
>>
>>You see, I need to work around a bug from MS. It seems like no simple workaround exist... I tried to code in the Click event, it doesn't help.
>>
>>Can you play with it a little bit, if you have a minute? Perhaps you can invent an elegant and simple solution.
>>
>>Thanks a lot in advance.
>
>Have you tried code in the UIEnable event of one of the controls on the page?

Not yet. There is a special class in the framework, which is added in the form's run-time. I haven't looked deep into its code.

Anyway, could you please elaborate more on your idea? I think it should work, but I'm not sure I see it clearly in my mind.

Thanks a million in advance.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform