General information
Category:
Forms & Form designer
>>>>>>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
Ed,
I think this might be user intervention that he is trying to avoid. Wouldn't it be better to somehow determine where the Click Event is occurring and IF not in the PageFrame, set .PageFrame.ActivePage to equal preferred page?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only