Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pages in a Pageframe
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00614217
Message ID:
00614227
Views:
31
This message has been marked as the solution to the initial question of the thread.
>I have a pageframe class where I want to programmatically set the backcolor of the Active page to 1 color and all the inactive pages to another color. IN general this is quite easy. However, I am looking for a way to do this without having to drop all the pages and add my own page subclass that has the code in it. I have tried ActivePage_Assign method in the pageframe, but this does not fire when you click on the various pages. Putting it in the UIEnable of the pageframe does not fire either.
>
>Currently, I have a SETPAGE method in the pageframe class, and I just put This.Parent.SetPage() in each of the Page Activate methods. I would like to do something at the PageFrame level that truly traps when the activepage changes and fires my SetPage method.
>
>TIA!

Mark, you may take a look at my Page Tab Chameleon class (file#9211) which handles the page caption appearance and may be modified for page color. It uses the UIenable() event and supposed to be dropped on each page. Not exactly that you want on the PageFrame level, but it needs only to be added to the page, which could be done in PageFrame.Init()
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform