>Is there a way to change the background color (usually Backcolor property) of
>a pageframe in a VCX so it is reflected throughout the application?
>
>I do not see a backcolor property for the pageframe base class in VFP6 sp3.
>I dont want the user to have to change the windows color scheme and the client
>wants to use the 'companý colors' (go figure) for the forms.
>
>I can change the forms backcolor in the VCX, but since 99% of them have pageframes, its kind of useless for this purpose :)
>
>I also have the same problem for the commandbuttons.
>
>Hope someone can help :)
>
>Thanks in advance
>
>Pascal Charbonneau
If you have teh pageframe class, you can add the property to it, say,
cPageBackColor
set it to the desired color, for example
cPageBackColor = "RGB(255,0,0)" && no quotes if enter in the Property Sheet
and add the line
this.SetAll("Backcolor", EVAL(this.cPageBackColor), "Page")
to you pageframe class Init() method. If you dynamically change the number of pages at runtime you will need to call pageframe.Init() after the change again.
There are many variations to that cPageBackColor may be a property of your application object for example.
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