Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatically set pageframe's activepage
Message
From
25/11/1997 16:48:14
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00061633
Message ID:
00062285
Views:
41
>>>>>Is there a way to set the Activepage property WHEN certain page in a pageframe looses focus? There isn't a LostFocus event for a page in a pageframe so how? I have a 2 page pageframe and when one of the page looses focus I would like to set the Activepage to the other page without manually clicking something (e.g. pageframe tab, command button, etc.).
>>>>>
>>>>>TIA
>>>>>John.
>>>>You can use the deactivate event of the page...
>>>Ken,
>>>I've tried using deactivate event of the pageframe w/o success. How would you do this?
>>>
>>>John.
>>When you say 'Loses Focus', do you mean if the user Tabs out of the last control of the page, clicks on an object not contained in the page, or clicks on the next page tab? Knowing better about what you are trying to accomplish, would be help to me.
>
>Ken.
>When I said 'loses focus' I meant in my case when the user clicks on an object not in the pageframe container. I apologize for not being more clear Ken.
>
>John.

Sorry for interruption. This sould give an idea to proceed:
***Page.Deactivate event
if messagebox("Change Page?",4+32)<>6
this.parent.activepage=this.pageorder
nodefault
endif
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform