Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

labels on pageframe 1

Status
Not open for further replies.

beedubau

Programmer
Jan 7, 2003
97
AU
I have just seen my app on a PC where the labels on a pageframe show with a background color which is different than that of the 'grey' page frame.

I changed all the labels to transparent backstyle but they still appear the same.

Can I specify a colour for the background of a page frame?

Is there something I am missing in Properties?

This app has been around for 3 years and no user has mentioned this and I haven't seen it before.


Regards

Bryan
 
Bryan,

This is probably something to do with themes.

Try setting _SCREEN.Themes to .F. to see if it makes a difference.

In general, a page frame doesn't have a backcolor or a backstyle. However, the individual pages do have those properties. But you can only change the backstyle (transparent vs opaque) if you hide the tabs.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Changing labels Backstyle=0 (transparent) works for me on forms/pageframes with themes.

Pageframes have a slightly color gradient, while labels with an opaque backstyle have a single color gray background, which mathces classic NT style gray.

Sure there isn't anything else behind the label having an opaque background, eg a container?

Bye, Olaf.
 
Thanks Guys,

Mike's suggestion solved the problem.

There must be a Windows XP setting that caused the problem on PC2 as it doesn't happen on PC1.

Regards

Bryan
 
Mike as that is just one more thing to remember - can all existing Forms be set that way programmatically.

I have a fairly large number of forme to wade through?

regards

Bryan
 
Bryan,

If you do it at the _SCREEN level, you don't need to apply it in individual forms.

That said, forms have their own Themes property (as do most other visual controls) which you can set individually if you wish. If all your forms are descended from a common class, you can set the property at the class level.

I don't know any way of setting the property in bulk for a group of forms, other than to write a program to loop through them all and modify the SCX file -- probably not worth the effort.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top