Mike,
Let me describe that steps I did and tell me, how can I acheive my goal:
1) I had a form with Pageframe1 (based on VFP pageframe class) with 8 pages.
2) Almost in all pages Page.Activate method I had code this.Refresh()
3) In all pages Page.RightClick method I had thisform.BTC_PageRClick(this)
4) I opened form.scx as a table and changed for PageFrame: class mhTab, classLoc mhTab.vcx
5) Now I opened my form and found, that RightClick doesn't fire or doesn't work...
6) Now I'm asking, what do I need to do, if I want to use your class.
TIA
>>I hate to say this (quote :)), but I'm afraid, that your mhTab class has one disadvantage, that make it almost unuseful in some cases :( I mean, if I have code in Pages methods (in my particular case I have Page.Activate and Page.RightClick), that will happen after substitution with optiongroup? I let you guess :)
>
>Did you test this? You are right in thinking that the Click event should not work when pushing thje option button, but the PageFrames ActivePage_Assign will fire so you can do that code there. And the Activate will work.
>
>I think the Assign Method gives you even more control than the other properties you had anyway:
>
>1. Deactivate will fire if the form deactivates, even if the page stays the same, with this method your safe.
>
>2. Activate will fire if the form Activates, even if the page stays the same, with this method your safe.
>
>3. Click and RightClick will form if you Click or RightClick anywhere on the page, not just the tabs, therefore there maybe a loophole in testing it this way.
>
>Do any of these remedy your situation? I noticed you sent it to me twice, so you must be pretty mad (;-) Let me know if you need more help :-)
If it's not broken, fix it until it is.
My Blog