Thanks for the ideas Glenn!
Tracy
>Just a quick guess...
>
>Could you change your base classes...
>
>change your pageframe:page:activate to loop through the controls it contains and see if they have a property...glsetfocustoME
>
>In you case you have a listbox...add a property to its baseclass
>glsetfocustoME = .F.
>
>and in the instance you want to get focus change it to .T.
>
>It shouldnt matter then how the page activates you will always set focus to the correct object.
>
>I also noticed that you have several ways to change which page is active and you want to know which way the user was navigating through the pages
>
>You could alter the same code and have two properties...glsetfocustoME_First and glsetfocustoME_Last...then assign method attached to the activepage you should be able to determine which direction they navigated and setfocus to the appropriate object...
>
>hope it helps!
>
>Mike
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"